Moonchild
c2ae3266c2
[DOM] Check worker script size
...
Abort loading worker scripts if they are ridiculously huge.
2026-01-14 19:50:08 +01:00
Francis Dominic Fajardo
f1f6c5b5cf
Issue #2736 - Follow-up: Stop using worker thread-only functions for checking if CSP is enabled
...
Should stop the barrage of worker thread assertions on debug builds.
2025-07-14 17:40:12 +02:00
Moonchild
d0fa41e25a
Issue #2736 - Follow-up: Remove erroneous workerthread CSP check.
...
In `OnStreamCompleteInternal` an incorrect workerthread CSP enabled check
was added. This was a duplicate check and this is actually on the main
thread so asserts the wrong thread for a `WorkerPref`.
2025-05-22 13:18:43 +02:00
Moonchild
ca34a2ba47
Issue #2736 - Part 14: Make CSP-enabled available to workers.
2025-05-13 16:35:35 +02:00
Moonchild
118bc5ff5d
Issue #2692 - Part 6: Don't #include js/SourceBufferHolder.h in jsapi.h.
...
Instead, require users to do so. This is a minor translation-unit size
improvement for anyone who never has to use SourceBufferHolder other than
by reference.
2025-03-04 20:16:54 +01:00
Moonchild
8e4ce9b800
Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy)
...
Resolves #2641
2024-10-21 12:37:01 +02:00
Moonchild
1fe46b057e
[DOM] Clean up ReportLoadError and normalize error messages.
2024-05-21 13:24:45 +02:00
Brian Smith
3dd8bc0ddb
Issue #2402 - CSP Violation events should have the correct sample for inline contexts.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1473587
Add preference to increase max length of CSP report source sample.
https://bugzilla.mozilla.org/show_bug.cgi?id=1415352
Return valid columnNumber value in CSP violation events.
https://bugzilla.mozilla.org/show_bug.cgi?id=1418246
2024-01-08 07:46:11 -06:00
Brian Smith
0fe8ac9349
Issue #2402 - Workers.setTimeout/setInterval must handle CSP rejections.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1490165
Has some namespace issues adding the files, so differs slightly.
2024-01-08 03:22:44 -06:00
Brian Smith
6b00d13010
Issue #2402 - Require ServiceWorkerGlobalScope.importScripts() to only accept JavaScript MIME types.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1354577
Require ServiceWorkerContainer.register() to only accept JavaScript MIME types.
2024-01-07 07:37:47 -06:00
Brian Smith
80207d6d3f
Issue #2402 - importScripts should be governed by script-src in Web Workers.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1322111
Add TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS content policy.
Update the Cache API schema to account for new nsIContentPolicy type.
2024-01-06 15:32:04 -06:00
Brian Smith
f4a49d6063
Issue #2402 - Move WorkerPrivate::SetPrincipal() logic into a WorkerLoadInfo method.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1333573
Make worker SetPrincipalOnMainThread fallible.
https://bugzilla.mozilla.org/show_bug.cgi?id=1338523
2024-01-06 15:32:04 -06:00
Brian Smith
86d22c2135
Issue #2402 - Persist response headers for offlined service worker scripts.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-06 15:32:04 -06:00
Brian Smith
dfbf2aef81
Issue #2402 - Apply CSP headers to ServiceWorker when loading offlined script.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-06 15:32:03 -06:00
Brian Smith
db049fa0cd
Issue #2402 - Factor out code to set WorkerPrivate CSP from headers.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-06 15:32:03 -06:00
Brian Smith
27f416684f
Issue #2402 - Improve ServiceWorker asserts and verify load principal does not inherit CSP.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-06 15:32:03 -06:00
Brian Smith
8a45238908
Issue #1442 - Part 14 - Starting body consuming and passing the JSContext down
...
from the binding entrypoints to where the ReadableStream could be read.
https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
2023-09-28 19:35:59 -05:00
Moonchild
07a26bff17
[DOM] Consistent error messages for scripts which failed to load.
2022-05-30 08:25:20 +00:00
Moonchild
a95439db61
Issue #1822 - Part 3: Remove LOAD_CLASSIFIER_URI and various
...
helper functions.
2022-04-01 16:03:01 +02:00
Moonchild
a680bdc637
Issue #1656 - Part 1: Nuke most vim config lines in the tree.
...
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-23 13:55:00 +00:00
Moonchild
e655ce397d
[dom] Fix a spec compliance issue with the HTML LS regarding script loading.
...
This fixes a spec compliance issue with section 8.1.4.2 Fetching scripts.
2020-07-29 11:55:30 +00:00
Moonchild
84cb854842
Issue #1587 Part 11 (followup 1): Implement multithreaded signals for workers.
2020-07-24 11:09:54 +00:00
Moonchild
c45b7ee3a9
Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElement
...
- Moves scripting parts of DOM into 'dom/script'
- Renames nsScript{Loader/Element} to Script{Loader/Element}
- Adjusts all callers
2020-06-30 11:51:11 +00:00
janekptacijarabaci
a80267e9e8
Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status
2018-07-05 13:04:44 +02:00
Matt A. Tobin
5f8de423f1
Add m-esr52 at 52.6.0
2018-02-02 04:16:08 -05:00