Commit graph

1427 commits

Author SHA1 Message Date
Jens Stutte
b36e63a521 Bug 1880231 - Add names to WorkerDebuggeeRunnable and WorkerDebuggerRunnable derived runnables. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D201805
2024-02-14 10:24:15 +00:00
Chris H-C
b5c79e4aa7 Bug 1877273 - Remove Telemetry-based Use Counters r=emilio
Glean-based Use Counter metrics are cheaper and work as well,
so let's use them instead.

Though we do have metric name strings available in a string table in GleanJSMetrics.cpp,
access is through metric_entry_t which has information not available to usecounters.py.
So for now we return char* literals from the use counter increment fns.

Differential Revision: https://phabricator.services.mozilla.com/D199933
2024-02-01 19:45:33 +00:00
Sandor Molnar
19b88eb274 Backed out changeset 2ee5ce9b3c67 (bug 1877273) for causing build bustage at UseCounterMetrics CLOSED TREE 2024-02-01 00:35:37 +02:00
Chris H-C
670de7a078 Bug 1877273 - Remove Telemetry-based Use Counters r=emilio
Glean-based Use Counter metrics are cheaper and work as well,
so let's use them instead.

Though we do have metric name strings available in a string table in GleanJSMetrics.cpp,
access is through metric_entry_t which has information not available to usecounters.py.
So for now we return char* literals from the use counter increment fns.

Differential Revision: https://phabricator.services.mozilla.com/D199933
2024-01-31 21:37:29 +00:00
Iulian Moraru
15ff5d41d3 Backed out changeset f334593f5b54 (bug 1877273) for causing non-unified build bustages on UseCounterMetrics.cpp. 2024-01-31 19:26:17 +02:00
Chris H-C
0a63903f6c Bug 1877273 - Remove Telemetry-based Use Counters r=emilio
Glean-based Use Counter metrics are cheaper and work as well,
so let's use them instead.

Though we do have metric name strings available in a string table in GleanJSMetrics.cpp,
access is through metric_entry_t which has information not available to usecounters.py.
So for now we return char* literals from the use counter increment fns.

Differential Revision: https://phabricator.services.mozilla.com/D199933
2024-01-31 16:04:45 +00:00
Joshua Marshall
e756f1ac2f Bug 1805613 - Add a mutable status to WorkerRefs for logging. r=dom-worker-reviewers,asuth
In DEBUG mode, add a settable string to WorkerRefs.  Record what we're doing in
the XHR request worker, and log the status if we seem to be hanging (see
WorkerPrivate::DumpCrashInformation).

Differential Revision: https://phabricator.services.mozilla.com/D190054
2024-01-28 14:28:44 +00:00
Jens Stutte
0f9a661364 Bug 1867982 - Check if WorkerRunnable::Run runs on top of WorkerThreadPrimaryRunnable::Run in a worker thread. r=dom-worker-reviewers,smaug,asuth
Differential Revision: https://phabricator.services.mozilla.com/D199247
2024-01-26 16:10:30 +00:00
Butkovits Atila
27a222eca4 Backed out changeset 59caf3ade866 (bug 1867982) for causing failures at WorkerRunnable.cpp. CLOSED TREE 2024-01-25 10:47:02 +02:00
Jens Stutte
2dc17b8cea Bug 1867982 - Check minimum nesting level on worker thread of WorkerRunnable::Run. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D199247
2024-01-25 07:52:47 +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
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
Jens Stutte
7f6caf9136 Bug 1872913 - Ensure mMainThreadDebuggeeEventTarget is not paused during canceling of a worker. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D197908
2024-01-13 08:45:08 +00:00
Narcis Beleuzu
053e2e93b7 Backed out changeset eb1eeea41f02 (bug 1872913) for crashes on iframe-append-2.https.html . CLOSED TREE 2024-01-12 10:25:02 +02:00
Jens Stutte
2766795843 Bug 1872913 - Ensure mMainThreadDebuggeeEventTarget is not paused during canceling of a worker. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D197908
2024-01-12 06:52:03 +00:00
Tom Ritter
68cae289a0 Bug 1851816: Pass PBM Status into RFPIsEnabledFor r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D192501
2023-12-18 18:39:33 +00:00
Kagami Sascha Rosylight
406c01bc16 Bug 1862244 - Add GlobalTeardownHelper r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D193295
2023-11-23 17:17:39 +00:00
Eden Chuang
012317c310 Bug 1865774 - Add WorkerPrivate::mWorkerLoopIsIdle to indicate the Worker is idle and could be GCed. r=asuth
After this patch, the Worker can be GCed while it is idle for events.

I want to point out the difference from the BusyCount implementation.
Compared to the BusyCount implementation, BusyCount implementation allows the Worker to be GCed during WorkerRunnable execution iff the WorkeRunnable does not modify BusyCount.

Differential Revision: https://phabricator.services.mozilla.com/D194333
2023-11-22 16:18:34 +00:00
Chris H-C
5e51dca5da Bug 1852098 - Increment Glean use counter metrics and submit the use-counters ping during shutdown r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193250
2023-11-21 17:09:54 +00:00
Eden Chuang
870fc77ce3 Bug 1865774 - Allow WorkerThread::HasPendingEvents() can be accessed on the parent thread. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D194221
2023-11-21 16:30:09 +00:00
Eden Chuang
369c69cb51 Bug 1864459 - WorkerPrivate::IsEligibleForCC should consider if there are any pending events. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D193984
2023-11-20 10:04:07 +00:00
Narcis Beleuzu
3f6ba0d4ad Backed out 7 changesets (bug 1852098) for bustages on UseCounterMetrics.h . CLOSED TREE
Backed out changeset 3b87419a9eea (bug 1852098)
Backed out changeset d9c7c84c82df (bug 1852098)
Backed out changeset e594c7eebb91 (bug 1852098)
Backed out changeset 15e0b0bd3bfb (bug 1852098)
Backed out changeset 220e9ee63ec3 (bug 1852098)
Backed out changeset 9edef145d1c5 (bug 1852098)
Backed out changeset 920a798dbb8a (bug 1852098)
2023-11-16 01:00:42 +02:00
Chris H-C
631097dc8d Bug 1852098 - Increment Glean use counter metrics and submit the use-counters ping during shutdown r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193250
2023-11-15 21:34:12 +00:00
Stanca Serban
1a7724cfd6 Backed out 7 changesets (bug 1852098) for causing build bustages in UseCounterMetrics.cpp. CLOSED TREE
Backed out changeset 2caabd4bfe86 (bug 1852098)
Backed out changeset 5c174b0ee1ab (bug 1852098)
Backed out changeset 05ba23510b93 (bug 1852098)
Backed out changeset 256984effaa2 (bug 1852098)
Backed out changeset 8bed08cf2a68 (bug 1852098)
Backed out changeset 16b0698a239d (bug 1852098)
Backed out changeset 6e8d54a51fb7 (bug 1852098)
2023-11-15 23:02:32 +02:00
Chris H-C
13b8454c2d Bug 1852098 - Increment Glean use counter metrics and submit the use-counters ping during shutdown r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D193250
2023-11-15 17:01:30 +00:00
Jens Stutte
21001eee69 Bug 1823391 - Have a static WorkerScriptLoader::Create and try to shutdown when the workerRef is notified. r=yulia,edenchuang,asuth
This patch does:
- use our common `Create` pattern also here to move some complexity out of the constructor and improve the error handling.
- give each strong worker ref a unique name for better diagnostics.
- add a `TryShutdown` to the life-cycle worker ref, presumably this may help if the worker dies before any DispatchLoadScript(s) has been called.

Differential Revision: https://phabricator.services.mozilla.com/D192936
2023-11-15 07:00:02 +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
Eden Chuang
c04ff2b560 Bug 1849265 - P1 Synchronize WorkerPrivate::mParentStatus with mStatus while entering Killing status. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D191633
2023-11-07 09:48:45 +00:00
Cosmin Sabou
b79adce429 Backed out changeset 3a6678776d36 (bug 1849265) for causing asan failures on browser_localStorage_snapshotting.js. CLOSED TREE 2023-11-07 22:30:00 +02:00
Eden Chuang
3eebcd33a5 Bug 1849265 - P1 Synchronize WorkerPrivate::mParentStatus with mStatus while entering Killing status. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D191633
2023-11-07 09:48:45 +00:00
Noemi Erli
a4dae64f34 Backed out 2 changesets (bug 1851816) for causing private browsing related failures CLOSED TREE
Backed out changeset d2f63b3f6342 (bug 1851816)
Backed out changeset 7d0d2fe95e67 (bug 1851816)
2023-11-07 00:18:54 +02:00
Tom Ritter
19d70df0a2 Bug 1851816: Pass PBM Status into RFPIsEnabledFor r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D192501
2023-11-06 21:02:40 +00:00
Adam Brouwers-Harries
a26eafe5c3 Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-24 15:18:12 +00:00
Narcis Beleuzu
948c7279ee Backed out changeset 714aaf6484fb (bug 1421651) for causing Bug 1860719. CLOSED TREE 2023-10-24 17:31:02 +03:00
Adam Brouwers-Harries
4cdf967b4e Bug 1421651 - Remove obseleted timeline and TimelineMarker code r=canaltinova,webidl,devtools-reviewers,saschanaz,smaug,ochameau
This patch removes the old docshell timeline and timeline markers codebase and replaces them with equivalent Gecko profiler marker. This patch also fixes Bug 1834143, which is a subset of 1421651.

Differential Revision: https://phabricator.services.mozilla.com/D184217
2023-10-23 13:55:50 +00:00
Tim Huang
e8f8d32e61 Bug 1824222 - Make nsRFPService::IsRFPEnabledFor() to use the given OverriddenFingerprintingSettings for checking RFPTargets. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D185016
2023-10-17 22:02:30 +00:00
Tim Huang
523b214d9a Bug 1824222 - Add OverriddenFingerprintingSettings to worker loadInfo. r=tjr,dom-worker-reviewers,smaug
To allow workers to know the OverriddenFingerprintingSettings,
we populate the value to the worker loadInfo and worker private from
the document.

For service workers, we use the partitionKey in its principal to get
the OverriddenFingerprintingSettings of the given service worker.

Differential Revision: https://phabricator.services.mozilla.com/D185014
2023-10-17 22:02:28 +00:00
Tom Schuster
4d69d8826a Bug 1857431 - Use xpc::InitGlobalObjectOptions for Workers. r=dom-worker-reviewers,smaug
This introduces two slight changes of behavior:
- Workers with a system principal are now always treated as secure context, without looking at the mIsSecureContext flag.
- We now also discard sources for all types of workers with a system principal

Differential Revision: https://phabricator.services.mozilla.com/D190282
2023-10-13 08:46:32 +00:00
Emilio Cobos Álvarez
25c0d10932 Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.

I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).

Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +00:00
Kagami Sascha Rosylight
15a403f212 Bug 1836607 - Drop mWrappedRunnable early r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D188469
2023-09-19 08:09:58 +00:00
Tom Schuster
9917ffc2ef Bug 1846224 - Use RFPTarget for JS locale en-US spoofing. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D184945
2023-09-08 19:24:44 +00:00
Iulian Moraru
dd918f58bd Backed out 5 changesets (bug 1846224, bug 1845940) for causing spidermonkey build bustages on TestingUtility.cpp. CLOSED TREE
Backed out changeset fc9692101130 (bug 1846224)
Backed out changeset 61486ba55cae (bug 1846224)
Backed out changeset a85aaad7d2f8 (bug 1846224)
Backed out changeset e90bc9bc5729 (bug 1846224)
Backed out changeset 38262976d922 (bug 1845940)
2023-09-08 17:13:44 +03:00
Tom Schuster
a14c9980e2 Bug 1846224 - Use RFPTarget for JS locale en-US spoofing. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D184945
2023-09-08 13:38:11 +00:00
Benjamin VanderSloot
8acc7b239c Bug 1835907, part 5 - Refactor the window's mStorageAccessPermissionGranted variable and its Getters to a more accurate name: mUsingStorageAccess - r=anti-tracking-reviewers,pbz
This probably should have been done earlier, but became obvious with uses of Document::HasStorageAccessPermissionGrated in this stack.

Differential Revision: https://phabricator.services.mozilla.com/D184825
2023-08-15 13:04:05 +00:00
Cosmin Sabou
4f5ef3986b Backed out 6 changesets (bug 1835907) for causing multiple failures. CLOSED TREE
Backed out changeset 91ef29afec50 (bug 1835907)
Backed out changeset 989479621780 (bug 1835907)
Backed out changeset 86e3f98ceb31 (bug 1835907)
Backed out changeset 4790e44c234c (bug 1835907)
Backed out changeset bb9f48eec5bf (bug 1835907)
Backed out changeset 74f90708260a (bug 1835907)
2023-08-14 22:18:10 +03:00
Benjamin VanderSloot
d2a4578703 Bug 1835907, part 5 - Refactor the window's mStorageAccessPermissionGranted variable and its Getters to a more accurate name: mUsingStorageAccess - r=anti-tracking-reviewers,pbz
This probably should have been done earlier, but became obvious with uses of Document::HasStorageAccessPermissionGrated in this stack.

Differential Revision: https://phabricator.services.mozilla.com/D184825
2023-08-14 18:02:47 +00:00
Eden Chuang
622cdea861 Bug 1837856 - Notify WeakWorkerRefs in WorkerPrivate::RunLoopNeverRan. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D183077
2023-07-11 09:25:44 +00:00
Nika Layzell
1fdee2314c Bug 1839920 - Rename Get{ASCII,UTF}Origin to GetWebExposedOriginSerialization, r=smaug,necko-reviewers,anti-tracking-reviewers,bvandersloot,jesup
This should make uses of the type more clearly indicating where the
origin came from, and should help avoid potential confusion between this
origin and nsIPrincipal::origin in new code.

This new name is long, but explicit. The string returned from this
function corresponds to the "serialization of an origin" from the WHATWG
html spec:
https://html.spec.whatwg.org/multipage/browsers.html#ascii-serialisation-of-an-origin

Differential Revision: https://phabricator.services.mozilla.com/D181794
2023-06-27 19:59:15 +00:00
Andrew Sutherland
4bbf9407e0 Bug 1838496 - Don't assume WorkerDebuggerGlobalScope exists. r=dom-worker-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D181712
2023-06-22 06:09:04 +00:00