Jan Varga
67a8ed7ac0
Bug 1855142 - Ensure IndexedDabaseManager::mLocale separately; r=dom-storage-reviewers,jari
...
mLocale is currently initialized in IndexedDatabaseManager::Init which is
called from IndexedDatabaseManager::GetOrCreate if the manager doesn't exist.
This can be a problem when IndexedDatabaseManager::GetOrCreate is called very
early,for example in nsLayoutStatics::Initialize in the parent process.
This is a preparation for moving IndexedDatabaseManager::GetOrCreate from
FactoryOp::Open to InitializeQuotaManager.
Differential Revision: https://phabricator.services.mozilla.com/D189891
2024-02-29 15:28:47 +00:00
Jon Coppeard
917ca0077d
Bug 1881303 - Part 2: Expose eager nursery collection tunables as prefs r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D202476
2024-02-23 09:20:31 +00:00
Jon Coppeard
4f5ae54919
Bug 1875304 - Enable parallel marking on workers r=sfink
...
This adds a per-process count of helper threads 'reserved' for parallel
marking. This means reserved with respect to parallel marking but not anything
else, so helper threads can still be used for other tasks (including GC
parallel tasks) but the number of runtimes that can mark in parallel is
limited.
The main runtime reserves threads when parallel marking is enabled to
priviledge it over worker runtimes. Workers reserve threads only for the
duration of collection. Failure to reserve threads means parallel marking is
not used.
I don't love the term 'reserved' beacuse it implies the threads cannot be used
for anything else, but I couldn't think of anything better. I've added comments
to describe what it actually means.
Differential Revision: https://phabricator.services.mozilla.com/D201695
2024-02-19 15:45:02 +00:00
Cristian Tuns
5f68f357b0
Backed out 2 changesets (bug 1821250) for causing dt failures in Mutex_posix.cpp CLOSED TREE
...
Backed out changeset d46945ada9ec (bug 1821250)
Backed out changeset 94145877428a (bug 1821250)
2024-02-14 16:58:46 -05:00
Alexandre Poirot
30ddb29c25
Bug 1821250 - Use a timer on debugger control runnable to ensure running them even if worker uses Atomics.wait. r=asuth
...
Atomics.wait prevent WorkerDebuggerRunnable's from running by blocking the event loop.
While dispatching these runnables, also spawn a short timer which would interrupt the worker
and tentatively try to drain the debugger queue and resume any debugger runnable which may be blocked.
Differential Revision: https://phabricator.services.mozilla.com/D194081
2024-02-14 17:18:44 +00:00
Jens Stutte
a2709c2f0e
Bug 1875800 - Add name support to WorkerRunnable. r=dom-worker-reviewers,asuth,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D199228
2024-01-24 16:00:26 +00:00
Daniel Holbert
570fa09edf
Bug 1875430 part 2: Convert 'static UniquePtr' global vars to use StaticAutoPtr, in dom/workers. r=dom-worker-reviewers,smaug
...
Depends on D199167
Differential Revision: https://phabricator.services.mozilla.com/D199168
2024-01-23 19:00:49 +00:00
Cristian Tuns
741982b984
Backed out changeset f3efca74da0f (bug 1875800) for causing build bustages in WorkerPrivate.cpp CLOSED TREE
2024-01-23 11:20:38 -05:00
Jens Stutte
2594dc03cd
Bug 1875800 - Add name support to WorkerRunnable. r=dom-worker-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D199228
2024-01-23 11:23:41 +00:00
Tooru Fujisawa
8c59289f4f
Bug 1864168 - Part 1: Use 1-origin column number in nsIContentSecurityPolicy. r=smaug,devtools-reviewers,ochameau,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D193369
2023-11-22 12:31:30 +00:00
Natalia Csoregi
705aa81869
Backed out 14 changesets (bug 1865005, bug 1864168, bug 1864155, bug 1862814, bug 1862693) for causing bustage on nsRFPService.cpp. CLOSED TREE
...
Backed out changeset a4f3e7625abf (bug 1865005)
Backed out changeset ab38141e470b (bug 1862814)
Backed out changeset a679b50dc4a9 (bug 1862814)
Backed out changeset e340886ce62a (bug 1862814)
Backed out changeset 1378502e64b0 (bug 1862814)
Backed out changeset 8ee94e5e79c2 (bug 1862814)
Backed out changeset 6d4ef1cdfabb (bug 1864168)
Backed out changeset 2c30c4d757fc (bug 1864168)
Backed out changeset d4db9576559b (bug 1864168)
Backed out changeset 8ffec0d83028 (bug 1864168)
Backed out changeset fa77d852b494 (bug 1864168)
Backed out changeset f6646771a26a (bug 1864168)
Backed out changeset 7bd0ff6986df (bug 1864155)
Backed out changeset 39867b503289 (bug 1862693)
2023-11-22 14:01:55 +02:00
Tooru Fujisawa
a4a513ad86
Bug 1864168 - Part 1: Use 1-origin column number in nsIContentSecurityPolicy. r=smaug,devtools-reviewers,ochameau,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D193369
2023-11-22 11:13:54 +00:00
Eden Chuang
76d6e6b69c
Bug 1836700 - Remove BusyCount of WorkerPrivate. r=asuth,ipc-reviewers,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D182718
2023-11-13 04:00:40 +00:00
Tooru Fujisawa
c8916f8e8e
Bug 1862692 - Part 16: Use 1-origin column number type in JS::DescribeScriptedCaller. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D193029
2023-11-09 11:41:10 +00:00
Tooru Fujisawa
357b9c51d8
Bug 1847469 - Part 24: Use column number types in JS::DescribeScriptedCaller. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185762
2023-08-16 17:31:42 +00:00
Cristian Tuns
4fe9ed8f30
Backed out 27 changesets (bug 1847469) for causing spidermonkey bustages in Script.cpp CLOSED TREE
...
Backed out changeset 9d6e2651a013 (bug 1847469)
Backed out changeset 9b72d668efd2 (bug 1847469)
Backed out changeset 86abf5cf0a22 (bug 1847469)
Backed out changeset 46833087f8ac (bug 1847469)
Backed out changeset f3e2207fdeec (bug 1847469)
Backed out changeset aed75776cfff (bug 1847469)
Backed out changeset 8292a38bd99f (bug 1847469)
Backed out changeset 1320f83fb8c7 (bug 1847469)
Backed out changeset df9f925f9837 (bug 1847469)
Backed out changeset 69f32cf1862a (bug 1847469)
Backed out changeset b2ddddec8818 (bug 1847469)
Backed out changeset 056eed7abc97 (bug 1847469)
Backed out changeset 5df4f43ac0bf (bug 1847469)
Backed out changeset cb57923f6532 (bug 1847469)
Backed out changeset a0993f2a2195 (bug 1847469)
Backed out changeset 782499fbedf2 (bug 1847469)
Backed out changeset cf84fb98c5e1 (bug 1847469)
Backed out changeset 1fa5ab59814b (bug 1847469)
Backed out changeset f5f78944df81 (bug 1847469)
Backed out changeset aa14337bf5c6 (bug 1847469)
Backed out changeset 6757db4575d7 (bug 1847469)
Backed out changeset 236ff135701e (bug 1847469)
Backed out changeset 9b4d5b435020 (bug 1847469)
Backed out changeset a0f789621bc8 (bug 1847469)
Backed out changeset c19b81f48055 (bug 1847469)
Backed out changeset b4521e546d7e (bug 1847469)
Backed out changeset f26a10289316 (bug 1847469)
2023-08-16 07:08:01 -04:00
Tooru Fujisawa
5c4dc17c44
Bug 1847469 - Part 24: Use column number types in JS::DescribeScriptedCaller. r=iain
...
Differential Revision: https://phabricator.services.mozilla.com/D185762
2023-08-16 10:26:33 +00:00
Tom Schuster
7906e7f340
Bug 1843841 - Make navigator.appName constant. r=dom-worker-reviewers,webidl,smaug,timhuang
...
This is supposed to constant per https://html.spec.whatwg.org/#client-identification .
Differential Revision: https://phabricator.services.mozilla.com/D183723
2023-07-19 17:00:53 +00:00
Barret Rennie
6f54ea73bd
Bug 1786885 - Remove OS.Constants r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D179384
2023-07-12 03:57:12 +00:00
Eden Chuang
f4a08bbee6
Bug 1800659 - P2 remove nsICancelableRunnable inheriting form WorkerRunnable. r=asuth
...
This patch is only remove the inheriting, but keeping Cancel() implmentation.
The Cancel() is needed in some special cases, such as Worker enters Canceling when WorkerScope is not created.
Depends on D176915
Differential Revision: https://phabricator.services.mozilla.com/D173850
2023-06-06 06:36:50 +00:00
Jens Stutte
99112b51a1
Bug 1830278 - CC on worker shutdown until there remains nothing we can collect. r=dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D176651
2023-04-27 12:58:38 +00:00
Jens Stutte
d750aa996c
Bug 1826416 - Avoid the use of strong references to check if global scope is alive. r=dom-worker-reviewers,mccr8,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D174743
2023-04-12 08:54:09 +00:00
Cristina Horotan
9b84fc74f1
Backed out changeset 0825b12caee2 (bug 1826416) for causing multiple failures at RuntimeService.cpp
2023-04-12 10:40:45 +03:00
Jens Stutte
991535fe21
Bug 1826416 - Avoid the use of strong references to check if global scope is alive. r=dom-worker-reviewers,mccr8,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D174743
2023-04-12 07:04:08 +00:00
Jens Stutte
8433b62e54
Bug 1825589 - Relax globalScopeAlive assertion to happen after potentially deferred CC release have happened on JS context destruction. r=dom-worker-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D174496
2023-04-03 18:44:40 +00:00
Butkovits Atila
c71cfb0024
Backed out changeset b5217784536c (bug 1777921) for causing assertion failures at WorkerPrivate.h. CLOSED TREE
2023-03-31 18:36:39 +03:00
Jens Stutte
1706e4b98c
Bug 1777921 - Assert that StrongWorkerRefs are not lazily released during final GC/CC. r=dom-worker-reviewers,smaug,asuth
...
And relax the check if someone carries away a stale reference to our global scope to happen after the JS context has gone out of scope.
Differential Revision: https://phabricator.services.mozilla.com/D150942
2023-03-31 14:33:15 +00:00
Joshua Marshall
af586cf84d
Bug 1805613 - Dump worker info on shutdown hang r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D173430
2023-03-30 13:44:34 +00:00
Yulia
5231b910c8
Bug 1540913 - Part 2: Clear and shutdown ModuleLoader at worker termination; r=asuth,jonco
...
When running an infinitely-looping dynamic import, it is possible for the module loader to still be
holding on to that module at shutdown. Shutdown on the worker means that we will no longer run the
event loop, which will execute the dynamic import promises necessary to clear the global. The result
is that the global is kept alive. By calling `Shutdown()` we prevent this partially. We additionally
need to address the failure in the module code (next patch).
Differential Revision: https://phabricator.services.mozilla.com/D171683
2023-03-14 18:16:31 +00:00
Jon Coppeard
624da0ed61
Bug 1817757 - Part 1: Remove support for parallel marking from workers r=sfink
...
Depends on D170374
Differential Revision: https://phabricator.services.mozilla.com/D170375
2023-02-22 08:56:28 +00:00
Nika Layzell
9d6bb19c23
Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
...
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.
We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.
I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.
Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Sandor Molnar
41b78439d0
Backed out 6 changesets (bug 1809752, bug 1809753) for causing perma failures in browser/components/firefoxview/tests/browser/browser_feature_callout_position.js
...
Backed out changeset ea05784d74c4 (bug 1809753)
Backed out changeset 7c9b20eebcc8 (bug 1809753)
Backed out changeset d0267ac2256d (bug 1809753)
Backed out changeset aa9f2971bd6f (bug 1809753)
Backed out changeset f0d9fcfaa6f8 (bug 1809752)
Backed out changeset 6d58c799cffe (bug 1809752)
2023-01-17 03:19:24 +02:00
Nika Layzell
f7772bb6ae
Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
...
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.
We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.
I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.
Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Jan Varga
fd1df5b54d
Bug 1809044 - Implement WorkerEventTarget::RegisterShutdownTask and WorkerEventTarget::UnregisterShutdownTask; r=dom-worker-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D166309
2023-01-11 18:52:36 +00:00
Tom Schuster
bf618bbc4a
Bug 1774866 - Always allow cloning error stacks. r=nika,sfink,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D164577
2022-12-15 19:03:53 +00:00
Nika Layzell
8351f7cc2d
Bug 1804093 - Part 5: Eliminate WorkerPrincipal and WorkletPrincipals, r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D163856
2022-12-12 22:08:36 +00:00
Jon Coppeard
641c66c5a4
Bug 1802897 - Part 1: Add a pref for parallel marking, disabled by default r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D163461
2022-12-07 12:58:49 +00:00
Jens Stutte
7065a015e4
Bug 1803540 - Process all events caused as side effect by GCCC during worker shutdown. r=dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D163916
2022-12-07 08:45:44 +00:00
Cristian Tuns
58e3b12e8a
Backed out 13 changesets (bug 1802897) for causing build bustages on Marking.cpp CLOSED TREE
...
Backed out changeset 61a336a6d2c9
Backed out changeset 5c3c2afd76af (bug 1802897)
Backed out changeset 1b2d9c4afee8 (bug 1802897)
Backed out changeset bf236f6a197c (bug 1802897)
Backed out changeset b3e82a32e13e (bug 1802897)
Backed out changeset 9fcff7ae8aac (bug 1802897)
Backed out changeset f21b54985888 (bug 1802897)
Backed out changeset d6c6eaa2508a (bug 1802897)
Backed out changeset ab00bd1ada69 (bug 1802897)
Backed out changeset f98def4568e6 (bug 1802897)
Backed out changeset 68880308ca96 (bug 1802897)
Backed out changeset 73ad67b6e4f6 (bug 1802897)
Backed out changeset 28c061eb2993 (bug 1802897)
2022-12-06 14:44:08 -05:00
Jon Coppeard
0c7ec55801
Bug 1802897 - Part 1: Add a pref for parallel marking, disabled by default r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D163461
2022-12-06 18:19:28 +00:00
Simon Friedberger
3c5991df13
Bug 1549057 - Rename (Gg)etCSP to (Gg)etCsp - r=freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D159268
2022-10-24 20:38:11 +00:00
Jon Coppeard
0ebad143ef
Bug 1770768 - Part 3: Add browser prefs for the new GC parameters r=mccr8,sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D152864
2022-08-02 10:05:05 +00:00
Muhammad
0bf10d70ab
Bug 1737829: Cut over Navigator components to fine-grained RFP Checks r=tjr,asuth
...
Whereas previously we would pass in the principal of a document,
now we will pass in the document directly. This will work for most use
cases, but not all (like Workers.)
Additionally, for the User Agent, if we do not Resist Fingerprinting
(because there is an exemption), we will fall through to getting the
User-Agent header which uses the coarse RFP check, so we fix that in
a later patch.
Differential Revision: https://phabricator.services.mozilla.com/D138778
2022-07-15 20:39:21 +00:00
Harveer Singh
db48d4e6fe
Bug 1777400: Removed expired and probably not so useful telemetry probe 'SERVICE_WORKER_LIFE_TIME'. r=dom-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D151509
2022-07-12 22:15:49 +00:00
Matthew Gaudet
d27ba71b5a
Bug 1747059 - Correctly select microtask queue when enquing a job in a ShadowRealm in a worker. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D150410
2022-06-28 22:04:19 +00:00
Csoregi Natalia
a6c7516d80
Backed out 9 changesets (bug 1747059, bug 1767525)for causing hazard failures on ShadowRealmGlobalScope.cpp. CLOSED TREE
...
Backed out changeset ed7aad37f2cf (bug 1747059)
Backed out changeset 40a257fb4788 (bug 1747059)
Backed out changeset f7b049ef3b8c (bug 1747059)
Backed out changeset aad38abc7139 (bug 1747059)
Backed out changeset 8115813e77a5 (bug 1747059)
Backed out changeset e06192e664fd (bug 1747059)
Backed out changeset a198b0893220 (bug 1767525)
Backed out changeset c083f0824619 (bug 1767525)
Backed out changeset 9a3bf794ec6d (bug 1767525)
2022-06-28 02:39:08 +03:00
Matthew Gaudet
c7369b95e1
Bug 1747059 - Correctly select microtask queue when enquing a job in a ShadowRealm in a worker. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D150410
2022-06-27 21:17:37 +00:00
Markus Stange
72a0a91cc9
Bug 1771776 - Use AUTO_PROFILER_LABEL_DYNAMIC_CSTR instead of AUTO_PROFILER_LABEL_DYNAMIC_CSTRING so that the dynamic string is captured even while the profiler is not running. r=florian
...
Differential Revision: https://phabricator.services.mozilla.com/D148949
2022-06-13 14:12:41 +00:00
Tom Schuster
4525afaf9f
Bug 1740263 - Implement the CSP checking callback for WASM. r=dom-worker-reviewers,smaug,freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D141979
2022-05-19 14:13:50 +00:00
Iulian Moraru
4d59317ca4
Backed out 6 changesets (bug 1740263) for causing bp-hybrid bustages on nsScriptSecurityManager. CLOSED TREE
...
Backed out changeset 2f5ec6ad0f81 (bug 1740263)
Backed out changeset a1e7766cdb94 (bug 1740263)
Backed out changeset 3978ccb95455 (bug 1740263)
Backed out changeset e34ba774b3f8 (bug 1740263)
Backed out changeset 8365b10be28e (bug 1740263)
Backed out changeset d923462c9cd0 (bug 1740263)
2022-05-19 03:28:08 +03:00