roytam1
500c2ab8d9
Revert "workaround of microtask cleanup to prevent a crash"
...
This reverts commit c75d50adde .
2024-01-18 10:16:55 +08:00
roytam1
c75d50adde
workaround of microtask cleanup to prevent a crash
2024-01-13 21:03:58 +08:00
roytam1
80c4f1d745
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-11 09:52:46 +08:00
Moonchild
bd723aac28
Issue #2401 - Part 3: Don't toggle focus-within state past the nearest common flattened tree ancestor.
...
Resolves #2401
2024-01-11 09:52:02 +08:00
Moonchild
d375578415
Issue #2401 - Part 2: Add GetCommonFlattenedTreeAncestor.
...
Passing GetFlattenedTreeParent() as the "get parent" function.
This way we can reduce the complexity in our EventStateManager by simply
calling out to the templatized function from Part 1.
2024-01-11 09:51:40 +08:00
Moonchild
a73c8e93d6
Issue #2401 - Part 1: Templatize GetCommonAncestor.
2024-01-11 09:51:25 +08:00
Brian Smith
b842a1937a
Issue #2402 - Fill in column in CSP Report.
2024-01-11 09:51:07 +08:00
Brian Smith
e21d466d13
Issue #2402 - Print Related JS-Line on CSP Violation (if any). https://bugzilla.mozilla.org/show_bug.cgi?id=1100630
2024-01-11 09:50:49 +08:00
Brian Smith
5b068f3726
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-11 09:50:12 +08:00
Brian Smith
e74612e23e
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-11 09:47:22 +08:00
Brian Smith
0e0ec8cb20
Issue #2402 - CSP should throw EvalError when blocking eval() and Function(). https://bugzilla.mozilla.org/show_bug.cgi?id=1473024 https://bugzilla.mozilla.org/show_bug.cgi?id=1490165
2024-01-11 09:47:08 +08:00
Brian Smith
9cd8aafeaa
Issue #2402 - CSP violation: blockedURI inline/eval. https://bugzilla.mozilla.org/show_bug.cgi?id=1418241 CSP: Blocked URI should be empty for inline violations. https://bugzilla.mozilla.org/show_bug.cgi?id=1236222
2024-01-11 09:46:53 +08:00
Brian Smith
811bcbefd4
Issue #2402 - Optionally strictly enforce the MIME type of scripts loaded by importScripts(). https://bugzilla.mozilla.org/show_bug.cgi?id=1514680 This is default on in Firefox 67 but Moonchild requested it be set off by default.
2024-01-11 09:46:39 +08:00
Brian Smith
b7abd4a127
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-11 09:46:26 +08:00
Brian Smith
5202c08cfb
Issue #2402 - Don't call WorkerPrivate::WorkerName() to get service worker scope. https://bugzilla.mozilla.org/show_bug.cgi?id=1350433
2024-01-11 09:46:06 +08:00
Brian Smith
6979441734
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-11 09:45:52 +08:00
Brian Smith
f8a174e19f
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-11 09:45:35 +08:00
Brian Smith
b723bb60ad
Issue #2402 - Persist response headers for offlined service worker scripts. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-11 09:45:19 +08:00
Brian Smith
14f0bc5e7c
Issue #2402 - Move code to fill InternalHeaders from an nsIChannel response into utility method. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-11 09:45:02 +08:00
Brian Smith
15875f3d8c
Issue #2402 - Apply CSP headers to ServiceWorker when loading offlined script. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-11 09:44:42 +08:00
Brian Smith
37d4df19a8
Issue #2402 - Factor out code to set WorkerPrivate CSP from headers. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-11 09:44:25 +08:00
Brian Smith
971fc4b838
Issue #2402 - Improve ServiceWorker asserts and verify load principal does not inherit CSP. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-11 09:44:11 +08:00
Brian Smith
1703d936af
Issue #2402 - ServiceWorker should not inherit CSP from registration principal. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-11 09:43:57 +08:00
Brian Smith
bfa8ea9368
Issue #2402 - Sanitize the nsIPrincipal used to register a service worker to ensure CSP is not persisted. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543
2024-01-11 09:43:42 +08:00
Brian Smith
1e0851158e
Issue #2402 - Fix SecurityPolicyViolationEvent.violatedDirective. https://bugzilla.mozilla.org/show_bug.cgi?id=1418243
2024-01-11 09:43:27 +08:00
Brian Smith
ec29404083
Issue #2402 - Implement security policy violation event. https://bugzilla.mozilla.org/show_bug.cgi?id=1037335
2024-01-11 09:43:10 +08:00
Brian Smith
1349cf2d01
Issue #2402 - Remove child-src deprecation warning. https://bugzilla.mozilla.org/show_bug.cgi?id=1486331
2024-01-11 09:42:51 +08:00
Brian Smith
bfabbcd311
Issue #2402 - Ignore empty CSP directives. https://bugzilla.mozilla.org/show_bug.cgi?id=1439425
2024-01-11 09:42:36 +08:00
roytam1
d4a80aa2c4
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-09 12:01:14 +08:00
Martok
90eb83819c
Issue #2435 - Re-Implement rejected Promises events according to spec
...
Own implementation; upstream gets several things wrong.
2024-01-09 12:00:53 +08:00
Martok
9126a4836f
Issue #2435 - Implement notifying of rejected promises
...
Based-on: m-c 1362272
2024-01-09 12:00:33 +08:00
Martok
65d72c5682
Issue #2435 - Add onrejectionhandled and onunhandledrejection EventHandler
...
Based-on: m-c 1362272
2024-01-09 12:00:14 +08:00
Martok
511a9376e3
Issue #2435 - Declare PromiseRejectionEvent WebIDL
...
Based-on: m-c 1338059
2024-01-09 11:59:55 +08:00
Martok
f059bb0a59
Issue #2240 - Align Microtasks and promises scheduling with spec
...
Microtasks, resolved Promises and Observers are handled after the sync
task that caused them, in the order they were generated.
Also simplifies reentrancy handling.
Based-on: m-c 1193394
2024-01-09 11:59:32 +08:00
Martok
73b14eae31
Issue #2435 - Make CycleCollectedJSContext.h dependency explicit
2024-01-09 11:59:09 +08:00
roytam1
ab563f9387
Revert "No issue - Allow embedded search module in HYPE_ICEDOVE project"
...
This reverts commit f3d37946be .
2024-01-07 07:55:05 +08:00
roytam1
fa72b197d9
Merge remote-tracking branch 'origin/tracking' into custom
2024-01-05 10:11:42 +08:00
Martok
c451531d54
Issue #2430 - No longer force tcp send buffer size on HTTP/2 uploads > 128KB
...
With connection-level and stream-level flow control, it is not needed.
On fast connections with large-ish BWP, this can improve upload speed by > 5x
2024-01-05 10:11:19 +08:00
Martok
3e65ae353a
Issue #2430 - Allow network.http.spdy.chunk-size to be larger than 16K
...
According to https://datatracker.ietf.org/doc/html/rfc7540#section-4.2 The size of a frame payload is limited by the maximum size that a
receiver advertises in the SETTINGS_MAX_FRAME_SIZE setting. This
setting can have any value between 2^14 (16,384) and 2^24-1
(16,777,215) octets, inclusive.
2024-01-05 10:10:50 +08:00
Gaming4JC
f3d37946be
No issue - Allow embedded search module in HYPE_ICEDOVE project
2024-01-05 10:10:25 +08:00
Gaming4JC
644b8680b2
Debug: Remove assertion for nsDOMNavigationTiming.
...
As mentioned in issue #2410 , this aggressive assertion can cause an uneeded crash during debug build runs.
2024-01-05 10:10:01 +08:00
Gaming4JC
10a37ae467
Issue #1442 Follow-up: Fix debug assertion in JSFun
...
Change in d5020b69bd introduced a debug build crash, this fixes the crash by properly porting the changes to an assertion as mentioned in issue #2410 .
2024-01-05 10:09:09 +08:00
Moonchild
0bcbbafa73
No issue - Tighten default script time-outs and expose stop_slow_scripts
...
The timings here are still slightly more lenient than the hard-coded
fallback timings in code (10/20 for content/chrome respectively) but
we definitely should not need very long time-outs by default on Chrome
scripts anymore.
Also exposes dom.always_stop_slow_scripts to about:config since we're
making it also UI-configurable in Pale Moon and it just makes sense not
to hide this option.
2024-01-05 10:08:15 +08:00
Moonchild
b47cb0f6a4
Issue #2407 - Rename full-screen-api.ignore-widgets
...
Renames to full-screen-api.restrict-to-window and clarifies comments for
its intended use.
Resolves #2407 .
2024-01-05 10:07:43 +08:00
Matheus Marinho
2e330af8c4
No Issue - Fix syntax in js/src/jsapi-tests/moz.build
2024-01-05 10:07:09 +08:00
Moonchild
dc425fc3e8
Revert "[XPCOM] Compare return value of readlink in nsLocalFileUnix::GetNativeTarget"
...
This reverts commit 66b07ce6991160e768b5113f8adcd0b47be58791.
2024-01-05 10:06:34 +08:00
roytam1
3039da2cb2
websocket: workaround of mSocketThread use-after-free when application is terminating
2023-12-27 19:18:18 +08:00
roytam1
a907bc3c17
Merge remote-tracking branch 'origin/tracking' into custom
2023-12-21 10:19:16 +08:00
Kershaw Chang
600142110d
Bug 1736385 - Make sure thread is alive in CacheIOThread::ThreadFunc
2023-12-21 10:18:53 +08:00
Moonchild
bcbe73119f
[dom] Better handling of aborted websocket workers.
...
Catch the case where we are in worker-shutdown but are still connecting
and make filing and closing connections a bit more robust with a RefPtr.
2023-12-21 10:18:28 +08:00