Commit Graph

84 Commits

Author SHA1 Message Date
roytam1 7614fe3db4 import from UXP: [DOM] Fix access to shared RuntimeService::mNavigatorProperties. (2f1af755) 2026-04-24 10:14:54 +08:00
roytam1 eb31645dcb ported from UXP:
- Issue #2548 - Part 1 - Implement MathML DOM and pre-requisites. https://bugzilla.mozilla.org/show_bug.cgi?id=1571487 Introduce interface mixins. https://bugzilla.mozilla.org/show_bug.cgi?id=1414372 Switch XPathEvaluator to using IDL mixins and remaining users of IDL "implements" over to mixin syntax. https://bugzilla.mozilla.org/show_bug.cgi?id=1574195 Introduce GlobalEventHandlers/DocumentAndElementEventHandlers/ElementCSSInlineStyle mixin. https://bugzilla.mozilla.org/show_bug.cgi?id=1579457 Introduce DocumentAndElementEventHandlers to more closely align with the HTML spec. https://bugzilla.mozilla.org/show_bug.cgi?id=1330457 Remove the use of IsCallerChrome in FetchRequest. https://bugzilla.mozilla.org/show_bug.cgi?id=1335368 (85600c73)
- Issue #2548 - Part 2 - Collection of WebIDL parsing updates in an attempt to fix partial interface mixin error. We should ensure, at build-time, that partial interfaces are defined in the same file as the interface they extend. Since our build system doesn't really support correct dep builds if they're placed in a different file. https://bugzilla.mozilla.org/show_bug.cgi?id=1333117 WebIDL: Better error message for trying to inherit from a mixin. https://bugzilla.mozilla.org/show_bug.cgi?id=1575384 Fix webidl identifier conflicts involving typedefs to produce saner exceptions. https://bugzilla.mozilla.org/show_bug.cgi?id=1531623 Disallow nullable types for WebIDL constants. https://bugzilla.mozilla.org/show_bug.cgi?id=1535647 Add support for extended attributes on types in Web IDL https://bugzilla.mozilla.org/show_bug.cgi?id=1359269 Allow LenientFloat to be only in a specific overload https://bugzilla.mozilla.org/show_bug.cgi?id=1020975 (81b4f0c3)
- Issue #2548 - Part 3 - Fix some MathML issues encountered since WebIDL works. https://bugzilla.mozilla.org/show_bug.cgi?id=1316616 Also added a Fetch() change that was not in the Mozilla patch. (20354b67)
- Issue #2548 - Part 4 - Fix some missed changes for ElementCSSInlineStyle. Introduce GlobalEventHandlers/DocumentAndElementEventHandlers/ElementCSSInlineStyle mixin. https://bugzilla.mozilla.org/show_bug.cgi?id=157945 (502c7047)
- Issue #2548 - Part 5 - Implement the HTMLOrForeignElement mixin. https://bugzilla.mozilla.org/show_bug.cgi?id=1577660 Add 'preventScroll' option to HTMLElement's, SVGElement's and XULElement's 'focus' method. https://bugzilla.mozilla.org/show_bug.cgi?id=1374045 (3febe21f)
2026-03-27 09:54:37 +08:00
roytam1 a480b4db23 import from UXP: [DOM] Check worker script size (d8f72029) 2026-01-15 23:00:06 +08:00
roytam1 b07afbb3ec ported from UXP: Issue #2306: Add pref-gated WeakRef with safe stub when disabled (5895253f) 2025-12-24 14:43:15 +08:00
roytam1 c9ee7fc5af import from UXP: Issue #2736 - Follow-up: Stop using worker thread-only functions for checking if CSP is enabled (c8608ad5) 2025-07-16 16:10:36 +08:00
roytam1 30992a8583 import from UXP: Issue #2736 - Follow-up: Remove erroneous workerthread CSP check. (6da047af) 2025-05-28 00:13:09 +08:00
roytam1 c2f7c83590 ported from UXP: Issue #2736 - Part 14: Make CSP-enabled available to workers. (53a6f634) 2025-05-14 16:11:22 +08:00
roytam1 3cc87110cf ported from UXP: Issue #2736 - Part 1: Provide more consistent principals to CSP. (9ad680cf) 2025-05-14 14:56:40 +08:00
roytam1 7173daa457 ported from UXP: Issue #2728 - Remove obsolete CSP referrer policy. (0331e633) 2025-04-30 23:26:26 +08:00
roytam1 654dda938d ported from UXP: Issue #2692 - Part 6: Don't #include js/SourceBufferHolder.h in jsapi.h. (2e4620b5) 2025-03-14 00:25:15 +08:00
roytam1 699ead5dfa import from UXP: No issue - Turn worker runnable assertion into something harmless in debug builds (41eb02d1) 2025-01-23 09:43:12 +08:00
roytam1 7bc855bb7c ported from UXP: Issue #2678 - Remove NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED (139e7a7a) 2025-01-20 23:04:04 +08:00
roytam1 18ed369cfc ported from UXP: Issue #2653 - Part 3: Remove support for packaged apps from asmjscache (7f086f21) 2024-11-21 23:10:17 +08:00
roytam1 d59239f54a import from UXP: Issue #2546 - Part 6: Remove canvas.imagebitmap_extensions.enabled preference. (7cc4dcb6) 2024-07-10 17:33:47 +08:00
roytam1 053aed0afd import from UXP: Issue #2546 - Part 2: Remove special FoxEye CreateImageBitmap method. (2b8d75e1) 2024-07-10 17:20:47 +08:00
roytam1 39b9d25a62 ported from UXP: Issue #2546 - Part 1: Remove BufferSource support in CreateImageBitmap. (60fbaa21) 2024-07-10 17:11:52 +08:00
roytam1 e63613265e ported from UXP: [DOM] Clean up ReportLoadError and normalize error messages. (22830d18) 2024-05-22 15:39:41 +08:00
roytam1 ef5060121d import from UXP: [DOM] Simplify WorkerRunnable sanity checks and make them more readable. (b518af4d) 2024-04-11 16:12:55 +08:00
roytam1 d5551d563c ported from UXP: [DOM] Check if WorkerRunnable::Run runs on top of WorkerThreadPrimaryRunnable::Run in a worker thread. (d1b0f59d) 2024-02-23 12:18:43 +08:00
roytam1 73395a97dc import from UXP: Issue #2453 - Follow-Up: Use hard-coded minimum timer interval in workers. (0d51adc2) 2024-02-23 12:07:55 +08:00
roytam1 e272bfef41 import from UXP: Issue #2452 - Fire events after iterating ServiceWorkerManager::mControlledDocuments is done. (0efbc454) 2024-01-18 11:41:50 +08:00
roytam1 158b68e48c import from UXP: Issue #2453 - Simplify CalculateTargetTime() code and fix typo. (aa2e80e5) 2024-01-18 11:05:45 +08:00
roytam1 c3c579650a import from UXP: Issue #2453 - Don't try to directly access pref on worker thread. (4f83e877) 2024-01-18 10:55:43 +08:00
roytam1 1e9ebad9e0 ported from UXP: 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 (5b068f37) 2024-01-11 14:55:32 +08:00
roytam1 0b800ef78a ported from UXP: 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. (e74612e2) 2024-01-11 11:17:48 +08:00
roytam1 8083aed307 ported from UXP: 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. (b7abd4a1) 2024-01-11 10:59:29 +08:00
roytam1 159d8adbcf import from UXP: Issue #2402 - Don't call WorkerPrivate::WorkerName() to get service worker scope. https://bugzilla.mozilla.org/show_bug.cgi?id=1350433 (5202c08c) 2024-01-11 10:57:42 +08:00
roytam1 35e21b5369 import from UXP: 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. (69794417) 2024-01-11 10:57:05 +08:00
roytam1 a32b138825 ported from UXP: 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 (f8a174e1) 2024-01-11 10:49:36 +08:00
roytam1 b9a78efdb1 import from UXP: Issue #2402 - Persist response headers for offlined service worker scripts. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543 (b723bb60) 2024-01-11 10:33:13 +08:00
roytam1 8c6e548ff6 import from UXP: Issue #2402 - Apply CSP headers to ServiceWorker when loading offlined script. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543 (15875f3d) 2024-01-11 10:30:02 +08:00
roytam1 9e77293e3b ported from UXP: Issue #2402 - Factor out code to set WorkerPrivate CSP from headers. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543 (37d4df19) 2024-01-11 10:29:21 +08:00
roytam1 bb249e10af import from UXP: Issue #2402 - Improve ServiceWorker asserts and verify load principal does not inherit CSP. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543 (971fc4b8) 2024-01-11 10:25:00 +08:00
roytam1 86697f651b import from UXP: Issue #2402 - ServiceWorker should not inherit CSP from registration principal. https://bugzilla.mozilla.org/show_bug.cgi?id=1337543 (1703d936) 2024-01-11 10:23:09 +08:00
roytam1 f94f822303 ported from UXP: 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 (bfa8ea93) 2024-01-11 10:22:25 +08:00
roytam1 48c48f4ab8 import from UXP: Issue #2435 - Add onrejectionhandled and onunhandledrejection EventHandler (65d72c56) 2024-01-09 15:17:35 +08:00
roytam1 c21b0785e8 ported from UXP: Issue #2240 - Align Microtasks and promises scheduling with spec (f059bb0a)
some more portions (in ServiceWorkerPrivate.cpp) from original bug1193394.
2024-01-09 15:03:07 +08:00
roytam1 4e09c971d0 ported from UXP: Issue #2435 - Make CycleCollectedJSContext.h dependency explicit (73b14eae) 2024-01-09 14:15:59 +08:00
roytam1 92adcb2f94 import from UXP: [DOM] Drop mWrappedRunnable early in workers. (aae586639) 2023-10-26 11:42:41 +08:00
roytam1 ad38fffcae ported from UXP: Issue #1721 - Implement GlobalPrivacyControl (50ad0873) 2023-10-18 14:58:17 +08:00
roytam1 f7ff490c5c ported from UXP: Issue #1442 Follow-up: Stop pretending proxies have a JSNative call/construct hook. https://bugzilla.mozilla.org/show_bug.cgi?id=1471924 Part 1 Also remove an erroneous debug assert and guard against future issues. This fixes crashes on vk.com but still does not behave correctly. (46024cd8) 2023-10-18 12:17:24 +08:00
roytam1 4821a765a0 ported from UXP: Issue #1442 - Part 16 - Report stream errors during consumption. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959 (529bc13f) 2023-10-05 09:58:58 +08:00
roytam1 2a63ffbdfc import from UXP: 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 (842b9d47) 2023-10-05 09:52:09 +08:00
roytam1 d7b6554b15 import from UXP: Issue #1442 - Part 12a - Allow idle worker shutdown to begin for an opt-in WorkerHolder mode. https://bugzilla.mozilla.org/show_bug.cgi?id=1362444 Pre-requisite for Part 13. (41216b88) 2023-10-05 09:27:29 +08:00
roytam1 7fb23ef4bd import from UXP: Issue #1442 - Part 8: Fetch implementation of streams. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959 +worker-friendly pref checking for the DOM API. (bff1f3bc) 2023-10-04 17:19:58 +08:00
roytam1 aefba3d7f3 ported from mozilla: Bug 1373555 - Move the Fetch consume body login in a separate class - part 3 - Move the consuming body logic from FetchBody to FetchBodyConsumer, r=bkelly (f5b120a0b4)
and also sync FetchConsumer.* with UXP.
2023-10-04 16:58:56 +08:00
roytam1 b80db24030 ported from UXP: Issue #1442 - Part 2: Add a run-time preference for toggling the streams API. https://bugzilla.mozilla.org/show_bug.cgi?id=1272697 (62467428) 2023-10-04 10:46:58 +08:00
roytam1 efe9ce4bb9 import from UXP: Issue #2323 - Part 3: Exclude chrome workers from worker timer clamping. (2ca57151) 2023-10-03 22:33:36 +08:00
roytam1 28e325ff80 import from UXP: Issue #2323 - Part 2: Implement timer nesting and clamping for workers. (1b7df316) 2023-10-03 22:28:44 +08:00
roytam1 955efc1a59 ported from UXP: Issue #2321 - Fall back to 0 if setInterval interval not supplied (e0e15429) 2023-10-03 22:22:01 +08:00