Emilio Cobos Álvarez
e1ad6294bf
Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
...
Afaict the source lines are not exposed anywhere in the UI.
Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Christian Holler
5d618d3e71
Bug 1905284 - Mark triggering principal as not nullable in BlobURLDataRequest. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D215183
2024-07-31 12:14:55 +00:00
Eden Chuang
01b678f42d
Bug 1894231 - P9 Remove FileReaderSync ReadCallback::mWorkerPrivate. r=dom-worker-reviewers,asuth
...
Depends on D213944
Differential Revision: https://phabricator.services.mozilla.com/D213945
2024-06-24 22:20:53 +00:00
Eden Chuang
da208da98f
Bug 1894231 - P3 Remove WorkerPrivate* in WorkerMainThreadRunnable. r=dom-worker-reviewers,extension-reviewers,smaug,rpl
...
Remove mWorkerPrivate from WorkerMainThreadRunnable. Instead, using a ThreadSafeWorkerRef to keep Worker alive until the created syncLoop is destroyed.
In general, WorkerMainThreadRunnable::mWorkerPrivate is only used for dispatching the MainThreadStopSyncLoopRunnable back to the Worker thread. Because of the syncLoop, the Worker is supposed to be kept alive until the created syncLoop is destroyed.
RefPtr<ThreadSafeWorkerRef> WorkerMainThreadRunnable::mWorkerRef is introduced to ensure a valid WorkerPrivate during WorkerMainThreadRunnable's execution.
WorkerMainThreadRunnable::mWorkerRef is allocated just before creating a syncLoop in WorkerMainThreadRunnable::Dispatch. And released after the created syncLoop::Run() finishes.
Depends on D212556
Differential Revision: https://phabricator.services.mozilla.com/D212557
2024-06-24 22:20:51 +00:00
Tom Schuster
904797487d
Bug 1896509 - Implement bytes() method on Blob. r=saschanaz,webidl
...
Differential Revision: https://phabricator.services.mozilla.com/D211615
2024-05-31 16:43:11 +00:00
Tom Schuster
557f9f7819
Bug 1896475 - Make BodyConsumer::ConsumeType an enum class. r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D210635
2024-05-23 10:13:29 +00:00
Iulian Moraru
89bb26c301
Backed out 2 changesets (bug 1896475) for causing assertions on Interpreter.cpp. CLOSED TREE
...
Backed out changeset deb6dfcd6d8c (bug 1896475)
Backed out changeset b9d4c74f4162 (bug 1896475)
2024-05-22 22:34:55 +03:00
Tom Schuster
3be41a4970
Bug 1896475 - Make BodyConsumer::ConsumeType an enum class. r=saschanaz
...
Differential Revision: https://phabricator.services.mozilla.com/D210635
2024-05-22 17:47:59 +00:00
Thomas Wisniewski
c86ad01b33
Bug 1895272 - do blob type validation in some constructors where we are not yet doing so; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D209607
2024-05-07 20:53:57 +00:00
Eden Chuang
2f65cf28ae
Bug 1769913 - P3 Remove WorkerRunnable::mWorkerPrivate. r=dom-worker-reviewers,asuth
...
WorkerRunnable no longer keeps a raw pointer(mWorkerPrivate) for the associated WorkerPrivate in this patch.
Removing the WorkerRunnable::mWorkerPrivate needs to fix the following problems.
1. Thread assertions in WorkerRunnable::Dispatch()
To fix this problem, the associated WorkerPrivate is as a parameter and passed to WorkerRunnable::Dispatch() for the dispatching thread assertions. This associated WorkerPrivate is also propagated to PreDispatch() and PostDispatch() for the children classes of WorkerRunnable()
2. Get the associated WorkerPrivate in WorkerRunnable::Run() for environment setup(GlobabObject, JSContext setting for the runnable)
- For WorkerThreadRunnable
Since WorkerThreadRunnable is supposed to run on the worker thread, it does not need to keep a raw pointer to WorkerPrivate as its class member. GetCurrentThreadWorkerPrivate() should always get the correct WorkerPrivate for WorkerThreadRunnable.
- For WorkerParentThreadRunnable
WorkerParentRef is introduced to keep a RefPtr<WorkerPrivate> for WorkerParentThreadRunnable instead of using a raw pointer.
Checking the associated WorkerPrivate existence by WorkerParentRef at the beginning of WorkerParentThreadRunnable::Run(). If the Worker has already shut down, WorkerParentThreadRunnable cannot do anything with the associated WorkerPrivate, so WorkerParentThreadRunnable::Run() will return NS_OK directly but with a warning.
The associated WorkerPrivate is also passed into WorkerRun(), PreRun(), and PostRun(), so the majority of implementations of child classes of WorkerRunnable do not need to be changed.
If there are any cases in which the child classes of WorkerThreadRunnable/WorkerParentThreadRunnable want to keep the associated WorkerPrivate, they should use WorkerRefs instead of raw pointers.
Depends on D205679
Differential Revision: https://phabricator.services.mozilla.com/D207039
2024-04-19 09:41:58 +00:00
Jens Stutte
81762982da
Bug 1889080 - Use overloaded Unused operator to leak runnable in RemoteLazyInputStreamThread::Dispatch. r=dom-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D206341
2024-04-02 12:12:55 +00:00
abhishekmadan30
fbae1edd30
Bug 1886661 - Remove telemetry probe for Blob URL Partitioning.r=anti-tracking-reviewers,timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D205484
2024-03-26 14:44:19 +00:00
Thomas Wisniewski
7c31f0e0ae
Bug 1847358 part 2: create and use nsIBaseChannel to reduce code debt and better-encapsulate logic for range-requests on nsBaseChannel classes; r=dlrobertson,necko-reviewers,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D203379
2024-03-04 21:34:27 +00:00
Thomas Wisniewski
820f1c6cb8
Bug 1847358 part 1: move nsBaseChannel::ContentRange content out into its own class as mozilla::net::ContentRange; r=dlrobertson,necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D203378
2024-03-04 21:34:27 +00:00
Dave Townsend
6a99b2e0d4
Bug 1864896: Autofix unused function arguments (dom). r=emilio,media-playback-reviewers,dom-storage-reviewers,padenot,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D202962
2024-03-04 15:44:59 +00:00
Gijs Kruitbosch
ff17e7fc68
Bug 1780071 - Manual fixes/disabling of no-comparison-or-assignment-inside-ok for exceptional cases, r=Standard8,devtools-reviewers,anti-tracking-reviewers,places-reviewers,dom-storage-reviewers,pbz,asuth,nchevobbe
...
Differential Revision: https://phabricator.services.mozilla.com/D198979
2024-02-19 23:30:40 +00:00
Jens Stutte
a242ac1c0f
Bug 1880235 - Add names to WorkerSyncRunnable derived runnables. r=dom-worker-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D201813
2024-02-14 16:13:47 +00:00
Mark Banner
30b1ef027d
Bug 1876988 - Enable remaining ESLint rules on dom/file/ipc. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D199813
2024-01-29 11:23:59 +00:00
Mark Banner
2cdfd413a4
Bug 1876988 - Enable ESLint rules no-undef and no-unused-vars. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D199812
2024-01-29 11:23:59 +00:00
Gijs Kruitbosch
6f0d4c37bc
Bug 1780071 - autofix dom/ and layout/ violations of no-comparison-or-assignment-inside-ok r=media-playback-reviewers,dom-storage-reviewers,layout-reviewers,dom-core,emilio,mccr8,aosmond,tschuster,padenot,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D198976
2024-01-25 22:18:55 +00:00
Nika Layzell
ad9bb1e2c4
Bug 1867360 - Require toplevel protocols to specify which processes they expect to be bound in, r=decoder,ipc-reviewers,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,aosmond,rkraesig,mccr8,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D195485
2024-01-18 23:07:18 +00:00
Natalia Csoregi
b2289eef93
Backed out changeset 9c4ce17422de (bug 1867360) for causing crashes on PRemoteQuotaObjectChild. CLOSED TREE
2024-01-08 23:18:19 +02:00
Nika Layzell
c4aa6e4813
Bug 1867360 - Require toplevel protocols to specify which processes they expect to be bound in, r=decoder,ipc-reviewers,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,aosmond,rkraesig,mccr8,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D195485
2024-01-08 19:48:23 +00:00
Jens Stutte
9fc1a8a71a
Bug 1870423
- Take always ownership of aRunnable in RemoteLazyInputStreamThread::Dispatch. r=dom-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D196765
2023-12-19 07:37:58 +00:00
Butkovits Atila
a28566bdd4
Backed out changeset 30210e0efac1 (bug 1867360) for causing failures at PIPDLUnitTestChild.cpp. CLOSED TREE
2023-12-19 02:28:52 +02:00
Nika Layzell
3bf610ffc2
Bug 1867360 - Require toplevel protocols to specify which processes they expect to be bound in, r=decoder,ipc-reviewers,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,aosmond,rkraesig,mccr8,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D195485
2023-12-18 23:24:26 +00:00
Randell Jesup
55cad8d48f
Bug 1847298: IPC constructor cleanup r=nika,padenot,dom-storage-reviewers,necko-reviewers,cookie-reviewers,asuth,Jamie
...
Differential Revision: https://phabricator.services.mozilla.com/D185472
2023-12-08 15:56:39 +00:00
Joel Maher
28be3ac6b4
Bug 1859890 - batch 14 convert xpcshell.ini -> .toml. r=aryx,dom-storage-reviewers,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D194162
2023-11-28 01:02:01 +00:00
Peter Van der Beken
a86f38d65b
Bug 1866220 - Prevent refcounted non-WrapperCached DOM objects. r=farre,extension-reviewers,rpl
...
Differential Revision: https://phabricator.services.mozilla.com/D194469
2023-11-24 10:38:18 +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
sunil mayya
8ce40ef93d
Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
...
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-27 13:30:11 +00:00
Mark Banner
6119729476
Bug 1860988 - Enable ESLint rule no-useless-return on all of dom/*. r=dom-core,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D191848
2023-10-27 12:43:03 +00:00
Narcis Beleuzu
722f6a1679
Backed out 6 changesets (bug 1851992) for DT failure on browser_net_image_cache.js . CLOSED TREE
...
Backed out changeset 3ceaf46f8f55 (bug 1851992)
Backed out changeset c9d322362e22 (bug 1851992)
Backed out changeset 673df3f83249 (bug 1851992)
Backed out changeset 46e18c56dd39 (bug 1851992)
Backed out changeset f9f9143ac713 (bug 1851992)
Backed out changeset 38c40d735ab7 (bug 1851992)
2023-10-24 13:16:40 +03:00
sunil mayya
1acfb3f11f
Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
...
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-24 01:48:09 +00:00
Cristina Horotan
ea9336a2ca
Backed out 5 changesets (bug 1851992) for causing multiple failures
...
Backed out changeset d28399b3d947 (bug 1851992)
Backed out changeset 95e4df69007a (bug 1851992)
Backed out changeset fa61d4e76827 (bug 1851992)
Backed out changeset 79969d9eb5cd (bug 1851992)
Backed out changeset 03c17255f1af (bug 1851992)
2023-10-17 14:48:23 +03:00
sunil mayya
f350089afd
Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
...
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-17 08:27:49 +00:00
Mark Banner
e43869f6d6
Bug 1857866 - Enable ESLint rule mozilla/reject-importGlobalProperties on all of dom/. r=dom-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D190434
2023-10-13 08:56:11 +00:00
Noemi Erli
e5c9fdc125
Backed out 6 changesets (bug 1857866) for causing mochitest failures in test_bug403852.html CLOSED TREE
...
Backed out changeset d3a20047a9d3 (bug 1857866)
Backed out changeset ac8e95c253a9 (bug 1857866)
Backed out changeset c2d4c9575248 (bug 1857866)
Backed out changeset 521a5e8cb17e (bug 1857866)
Backed out changeset 8d812ea48f5c (bug 1857866)
Backed out changeset de9146469632 (bug 1857866)
2023-10-13 00:27:57 +03:00
Mark Banner
3ad8e86d7c
Bug 1857866 - Enable ESLint rule mozilla/reject-importGlobalProperties on all of dom/. r=dom-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D190434
2023-10-12 16:49:47 +00:00
Kagami Sascha Rosylight
6c47c349c8
Bug 1857949 - Move AutoSuppressGCAnalysis to StreamBlobImpl::GetAllocationSize r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D190476
2023-10-10 11:48: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
Tom Marble
1ca03b1818
Bug 1855295 convert .ini manifests to .toml: batch 8 dom/[a-l]**/mochitest.ini r=jmaher,jgilbert,extension-reviewers,credential-management-reviewers,robwu,sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D189381
2023-10-02 17:18:28 +00:00
Gregory Pappas
62a62f0934
Bug 1851211
- Remove privacy.partition.bloburl_per_agent_cluster pref r=amadan,timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D187291
2023-09-26 20:59:01 +00:00
Tom Marble
a99a113414
Bug 1853244 - convert .ini manifests to .toml: batch 6 {caps,devtools,dom}/**/browser.ini r=jmaher,media-playback-reviewers,devtools-reviewers,profiler-reviewers,alwu,nchevobbe,canaltinova
...
Differential Revision: https://phabricator.services.mozilla.com/D188856
2023-09-22 20:42:14 +00:00
Peter Van der Beken
c49b5c3f78
Bug 1690111 - Use new TypedArray APIs for creating a container with a copy of the data. r=necko-reviewers,farre,kershaw
...
Depends on D152496
Differential Revision: https://phabricator.services.mozilla.com/D152497
2023-09-20 09:42:02 +00:00
Cosmin Sabou
680b4364c7
Backed out 13 changesets (bug 1690111) for causing fetch related crashes.
...
Backed out changeset 5f2c25d194ad (bug 1690111)
Backed out changeset 76c408bcd053 (bug 1690111)
Backed out changeset 6d0649fdafff (bug 1690111)
Backed out changeset c1330b5e8c43 (bug 1690111)
Backed out changeset 5fa36d8fd2a5 (bug 1690111)
Backed out changeset daf7d747853a (bug 1690111)
Backed out changeset f70e09a7f5c6 (bug 1690111)
Backed out changeset 40c6d6eed7f8 (bug 1690111)
Backed out changeset 692f2a759573 (bug 1690111)
Backed out changeset 7140866dd9f6 (bug 1690111)
Backed out changeset 2865fe682139 (bug 1690111)
Backed out changeset 9dcd2416f8a5 (bug 1690111)
Backed out changeset 9c411bf84079 (bug 1690111)
2023-09-11 17:55:24 +03:00
Peter Van der Beken
176d24acb3
Bug 1690111 - Use new TypedArray APIs for creating a container with a copy of the data. r=necko-reviewers,farre,kershaw
...
Depends on D152496
Differential Revision: https://phabricator.services.mozilla.com/D152497
2023-09-11 12:52:20 +00:00
Abhishek Madan
00b18fa30a
Bug 1843158 - Added telemetry to track partition mechanism uses. r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D185368
2023-08-29 17:47:00 +00:00
Abhishek Madan
4eb05bf7b0
Bug 1843155 - Added secondary partition key to blob urls. r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D184158
2023-08-24 18:45:26 +00:00
Cristian Tuns
07548591c7
Backed out 3 changesets (bug 1843155, bug 1843152, bug 1843154) for causing bc failures in browser_blobURLIsolation.js CLOSED TREE
...
Backed out changeset 346583cca204 (bug 1843154)
Backed out changeset acbab8770373 (bug 1843155)
Backed out changeset 12098afb766c (bug 1843152)
2023-08-23 19:53:47 -04:00