Commit Graph

27 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 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 703f809bf9 import from UXP: Issue #2282 - - Properly implement Performance Timeline Level 2 w3c spec. https://bugzilla.mozilla.org/show_bug.cgi?id=1539006 Do not throw from PerformanceObserver.observe when none of the entryTypes are known. https://bugzilla.mozilla.org/show_bug.cgi?id=1403027 Implement PerformanceObserver::takeRecords(). https://bugzilla.mozilla.org/show_bug.cgi?id=1436692 "server" is not a valid PerformanceEntry type. https://bugzilla.mozilla.org/show_bug.cgi?id=1463065 Fix a null ptr crash in PerformanceObserver::Observe. https://bugzilla.mozilla.org/show_bug.cgi?id=1631346 (dd4c0a44) 2023-08-08 10:21:59 +08:00
roytam1 c4462d5202 ported from custom branch of UXP: Bug 1159003 - setResourceTimingBufferSize shouldn't affect user timing, but we should clean user markers if we have memory pressure, r=bz (bc3eb89d) 2023-04-13 16:48:29 +08:00
roytam1 e29e66d024 ported from UXP: Issue #2197 - Part 2b: Implement StructuredSerializeOptions for Worker (158784cb) 2023-04-10 08:35:44 +08:00
roytam1 396a35005d ported from UXP: Issue #2197 - Part 1b: Transferables should be arrays of objects (47147d58)
with some changed lines of ServiceWorkerPrivate.cpp from original bugzilla #1336020
2023-04-10 08:16:48 +08:00
roytam1 5d8b2ff9f7 ported from UXP: Issue #2197 - Part 1a: postMessages should have transferable as [] by default (438cdbd9)
with some changed lines of ServiceWorkerPrivate.cpp from original bugzilla #1336020
2023-04-10 08:05:39 +08:00
roytam1 0cb16f52b5 import from UXP: [DOM] worker cleanup. (a94d8514) 2022-04-29 22:36:14 +08:00
roytam1 51b10d5fe7 ported from UXP: Issue #1797 - Implement WindowOrWorkerGlobalScope.origin (13c48d24) 2022-04-28 22:59:53 +08:00
roytam1 50a8df46b4 import from UXP: [DOM] Try to avoid slow shrinking GC during sync calls (8630e4f6) 2022-04-22 22:37:35 +08:00
roytam1 4fc962f774 import from UXP: Add missing call to WaitForIsDebuggerRegistered (d4b247ab) 2022-04-06 10:24:09 +08:00
roytam1 c0064d118f import from UXP: Send worker-runnables destined for the main thread actually to the main thread. (5a03a408) 2022-03-28 15:43:40 +08:00
roytam1 11ae7b632e import from UXP: Bug 1283712 - Part 8: Add WorkerErrorBase, WorkerErrorNote, and WorkerErrorReport. (624a2f1b) 2022-03-17 17:19:01 +08:00
roytam1 85f63e3f6e import from UXP: Bug 1288768 - Better error reporting for network errors in workers (12f3d030) 2022-03-17 17:12:48 +08:00
roytam1 960bdb954d import change from tenfourfox:
- closes #646: M1720568 M1720031 M1666184 M1722204 +TLDs HSTS (0f33324c8)
2021-08-13 12:22:52 +08:00
roytam1 f63e51e471 revert most of "Switch working copy to Goanna 4" (https://github.com/MoonchildProductions/moebius/commit/c4895374053ab93b4f365d3e690e99a30ffa1a2f) in order to keep upstream patch applicable 2019-02-20 00:30:25 +08:00
roytam1 1786a387c3 cherry-picked mozilla upstream changes:
bug1357022, bug1364513, bug1366203, bug1344034, bug1375708, bug1322896, bug1370869, bug1354796, bug1364189, bug1342417, bug1369386, bug1353312, bug1364870, bug1365333, bug1372063, bug1373970, bug1374148, bug1338646, bug1359477, bug1375198, bug1355168, bug1308820, bug1305036, bug1371259
2018-06-19 22:25:06 +08:00
roytam1 89ff1ebc22 Initial import from https://github.com/MoonchildProductions/moebius/commit/16fa730b3332a750e047aac26ebe65ea8c513849 2018-03-03 17:47:54 +08:00