Emilio Cobos Álvarez
e4ddf24147
Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen
...
Sorry for the massive patch but I found it hard to split without
introducing a bunch of copies around...
This mostly makes necko and DOM agree on which strings to use, which
should result on less copies and conversions.
Differential Revision: https://phabricator.services.mozilla.com/D205601
2024-04-04 11:49:57 +00:00
Gijs Kruitbosch
2bb8c173e0
Bug 1881800 - chrome/system-privileged fetch should not use credentials, r=necko-reviewers,barret,valentin,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D203258
2024-03-26 16:50:44 +00:00
Iulian Moraru
cfcfadac08
Backed out 2 changesets (bug 1881800) for causing non unified build bustages on nsIPrincipal.h. CLOSED TREE
...
Backed out changeset 1710585070f0 (bug 1881800)
Backed out changeset 9da17ae527f3 (bug 1881800)
2024-03-26 15:46:50 +02:00
Gijs Kruitbosch
5f2c0a2ab5
Bug 1881800 - chrome/system-privileged fetch should not use credentials, r=necko-reviewers,barret,valentin,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D203258
2024-03-26 12:38:54 +00:00
sunil mayya
af4b1f34a6
Bug 1871374 - add keepalive setters and getters in InternalRequest. r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D204896
2024-03-20 13:14:52 +00:00
sunil mayya
85b00417e6
Bug 1871373 - Add keepalive attribute in Request.webidl. r=necko-reviewers,webidl,smaug,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D204895
2024-03-20 13:14:51 +00:00
Thomas Wisniewski
64e64191cb
Bug 1847358 part 3: add a fullMimeType attribute to nsIBaseChannel and use it to make our Data URI content-type header parsing standards-compliant for XHR and Fetch; r=dlrobertson,necko-reviewers,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D203380
2024-03-04 21:34:27 +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
Peter Van der Beken
8af72124cd
Bug 1640839 - Stop using RequestMode::EndGuard_, RequestCredentials::EndGuard_ and RequestCache::EndGuard_. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D201341
2024-03-02 07:50:23 +00:00
Peter Van der Beken
2c8bf85445
Bug 1640839 - Add IPC serializer for WebIDL enums. r=mccr8,jgilbert,media-playback-reviewers,dom-storage-reviewers,janv,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201339
2024-03-02 07:50:22 +00:00
Peter Van der Beken
6d4c6fde36
Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-02 07:50:21 +00:00
Natalia Csoregi
8c2521e9d5
Backed out 13 changesets (bug 1640839) for causing bustage on Element.cpp CLOSED TREE
...
Backed out changeset 179ceb82c9e5 (bug 1640839)
Backed out changeset 73f498a821f0 (bug 1640839)
Backed out changeset dc2d3d0e0365 (bug 1640839)
Backed out changeset ddc989ac0509 (bug 1640839)
Backed out changeset e595bb3feea8 (bug 1640839)
Backed out changeset c85aca04e27f (bug 1640839)
Backed out changeset 98e8e3a4047a (bug 1640839)
Backed out changeset 59ef180517db (bug 1640839)
Backed out changeset af2f5e293662 (bug 1640839)
Backed out changeset 89aa6d9dc598 (bug 1640839)
Backed out changeset 67b722a722f9 (bug 1640839)
Backed out changeset 24a9665c6ced (bug 1640839)
Backed out changeset d93f199385e9 (bug 1640839)
2024-03-01 18:23:08 +02:00
Peter Van der Beken
ab3e4ec36b
Bug 1640839 - Stop using RequestMode::EndGuard_, RequestCredentials::EndGuard_ and RequestCache::EndGuard_. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D201341
2024-03-01 14:31:14 +00:00
Peter Van der Beken
a0448e7053
Bug 1640839 - Add IPC serializer for WebIDL enums. r=mccr8,jgilbert,media-playback-reviewers,dom-storage-reviewers,janv,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201339
2024-03-01 14:31:12 +00:00
Peter Van der Beken
a1122e9bfc
Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-01 14:31:11 +00:00
Ziran Sun
aa6bf5aefc
Bug 1839319 - Add fetchpriority support for fetch() API. r=valentin,necko-reviewers,webidl,saschanaz,fredw
...
This is to add basic fetch priority support. It introduces preference of
fetch priority adjustment as per to recent discussions. We need to refine the
fetchpriority mapping taking into account of destination, which will be
addressed in Bug 1881040.
In addition, this changes the relervant prefs type to atomic type to accommodate
the access of the prefs off the main thread in the worker case.
Differential Revision: https://phabricator.services.mozilla.com/D200778
2024-02-23 15:14:17 +00:00
Jens Stutte
a4a855b0e3
Bug 1880233 - Add names to MainThreadWorkerRunnable derived runnables. r=dom-worker-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D201812
2024-02-14 16:13:24 +00:00
Mark Banner
7aa835f970
Bug 1877940 - Enable remaining ESLint rules on dom/fetch. r=jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D200278
2024-02-12 22:28:14 +00:00
dylan
df39f3fee8
Bug 1860293 - Request::Contructor init body now takes precendence over input body. r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D200498
2024-02-09 14:47:53 +00:00
Eden Chuang
305928a56a
Bug 1871498 - Let FetchDriver::RunAbortAlogrithm() resolving FetchInstance::mPromises by calling FetchObserver::OnResponseEnd(). r=dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D198685
2024-01-29 11:02:14 +00:00
Eden Chuang
5c699915b9
Bug 1873573 - Rename PromiseWorkerProxy::WorkerPromise() to GetWorkerPromise(). r=dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D199323
2024-01-26 10:48:56 +00:00
Norisz Fay
b1727d155e
Backed out changeset 07a3a86e82ee (bug 1871498) for causing multiple leakcheck failures CLOSED TREE
2024-01-25 18:35:45 +02:00
Eden Chuang
f8c7b06b4b
Bug 1871498 - Let FetchDriver::RunAbortAlogrithm() resolving FetchInstance::mPromises by calling FetchObserver::OnResponseEnd(). r=dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D198685
2024-01-25 13:32:48 +00:00
Sandor Molnar
566db78cc5
Backed out changeset 606288b34ee6 (bug 1871498) for causing xpc crashes @ mozilla::dom::FetchService::FetchInstance::OnResponseEnd CLOSED TREE
2024-01-24 13:17:50 +02:00
Eden Chuang
7aa9b8fe4f
Bug 1871498 - Let FetchDriver::RunAbortAlogrithm() resolving FetchInstance::mPromises by calling FetchObserver::OnResponseEnd(). r=dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D198685
2024-01-24 08:55:43 +00:00
Kagami Sascha Rosylight
2f3b882374
Bug 1865728 - Reverse the check order in Fetch::SetBodyUsed r=smaug
...
nsIInputStream can exist and then may later go away when the stream becomes unreadable (closed/errored). Since FetchStreamReader is created only when nsIInputStream initially did not exist, the current assertion may fail.
This patch now goes LockStream way if FetchStreamReader doesn't exist, regardless of whether nsIInputStream exists or not.
Differential Revision: https://phabricator.services.mozilla.com/D194413
2023-12-01 12:37:03 +00:00
Kagami Sascha Rosylight
717e4c791d
Bug 1866078 - Add InputToReadableStreamAlgorithms::MaybeGetInputStreamIfUnread r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D194186
2023-11-27 14:34:00 +00:00
sunil mayya
e2ff65bf66
Bug 1810805 - update mObserver modifications in FetchDriver. r=necko-reviewers,edenchuang
...
Differential Revision: https://phabricator.services.mozilla.com/D194220
2023-11-27 10:31:54 +00:00
Kagami Sascha Rosylight
f6c394d464
Bug 1865640 - Part 2: Grab StrongWorkerRef in StartConsuming instead of Create r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D194090
2023-11-23 11:34:25 +00:00
Kagami Sascha Rosylight
f26d8fb5ba
Bug 1865640 - Part 1: Drop SCRIPT_HOLDER from FetchStreamReader r=smaug
...
It's not holding any JS objects anymore, probably since the migration to DOM streams.
Differential Revision: https://phabricator.services.mozilla.com/D194089
2023-11-23 11:34:25 +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
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
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
Sylvestre Ledru
0ab6c71871
Bug 1856578 - follow up - Empty Lines at end of file r=nataliaCs
...
Differential Revision: https://phabricator.services.mozilla.com/D189922
2023-10-03 11:35:36 +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
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
Peter Van der Beken
cdd05c282d
Bug 1690111 - Use new TypedArray APIs for appending data to a container. r=farre,extension-reviewers,media-playback-reviewers,kmag,alwu,padenot
...
Depends on D152494
Differential Revision: https://phabricator.services.mozilla.com/D152495
2023-09-20 09:42:01 +00:00
Peter Van der Beken
08dd6a2c2b
Bug 1690111 - Improve nsIRandomGenerator APIs. r=mccr8,necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D185067
2023-09-20 09:41:58 +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
Peter Van der Beken
39cc003472
Bug 1690111 - Use new TypedArray APIs for appending data to a container. r=farre,extension-reviewers,media-playback-reviewers,kmag,alwu,padenot
...
Depends on D152494
Differential Revision: https://phabricator.services.mozilla.com/D152495
2023-09-11 12:52:20 +00:00
Peter Van der Beken
78f126e4be
Bug 1690111 - Improve nsIRandomGenerator APIs. r=mccr8,necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D185067
2023-09-11 12:52:18 +00:00
Eden Chuang
e752b59513
Bug 1845317 - Propagate error response to Worker for PFetch before FetchDriver is created. r=dom-worker-reviewers,smaug
...
[[ https://searchfox.org/mozilla-central/rev/da1e39f50ef43145623938141c970437b226da9e/dom/fetch/FetchService.cpp#591 | fetch() in Workers when network is offline would returns a NetworkError response]], but this error response is not propagated through PFetch.
Before FetchInstance is created in the parent process, any errors should be propagated to the Worker.
This patch modifies the FetchService::NetworkErrorResponse() method to propagate the error to worker when PFetch is used.
To propagate the error, additional parameter FetchArgs is needed for FetchService::NetworkErrorResponse().
Since the propagation would only work when the FetchArgs is a WorkerFetchArgs, it gets a default parameter with UnknownArgs for other cases.
Here using UnknownArgs since it can meet errors while generating other types FetchArgs.
Differential Revision: https://phabricator.services.mozilla.com/D186125
2023-08-30 08:41:21 +00:00
Natalia Csoregi
21296ea989
Backed out 2 changesets (bug 1845317) for causing bustage on FetchService.cpp. CLOSED TREE
...
Backed out changeset 3cda108b0c50 (bug 1845317)
Backed out changeset c6322668cd35 (bug 1845317)
2023-08-29 19:53:18 +03:00
Eden Chuang
56d1a500d5
Bug 1845317 - Propagate error response to Worker for PFetch before FetchDriver is created. r=dom-worker-reviewers,smaug
...
[[ https://searchfox.org/mozilla-central/rev/da1e39f50ef43145623938141c970437b226da9e/dom/fetch/FetchService.cpp#591 | fetch() in Workers when network is offline would returns a NetworkError response]], but this error response is not propagated through PFetch.
Before FetchInstance is created in the parent process, any errors should be propagated to the Worker.
This patch modifies the FetchService::NetworkErrorResponse() method to propagate the error to worker when PFetch is used.
To propagate the error, additional parameter FetchArgs is needed for FetchService::NetworkErrorResponse().
Since the propagation would only work when the FetchArgs is a WorkerFetchArgs, it gets a default parameter with UnknownArgs for other cases.
Here using UnknownArgs since it can meet errors while generating other types FetchArgs.
Differential Revision: https://phabricator.services.mozilla.com/D186125
2023-08-29 15:08:07 +00:00