Kershaw Chang
f8bc1640a9
Bug 1685403 - Use NS_GetFinalChannelURI at some places, r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D164656
2023-02-13 16:01:41 +00:00
Andreu Botella
160324ff1c
Bug 1812511 - Implement `Headers.prototype.getSetCookie`. r=webidl,smaug,sunil
...
This patch implements the `getSetCookie()` method of the fetch spec's
`Headers` interface, which allows getting a list of the values in the
`Set-Cookie` header that are present in the header list. This was not
possible before, since the `get()` method would combine the values by
joining them with comma and whitespace, which is valid per the HTTP
spec, but clashes with `Set-Cookie` syntax.
The spec change that introduces this method also changes the iteration
behavior for `Headers` to have each `Set-Cookie` header show up in the
iteration, rather than having them combined, and this patch also
modifies `InternalHeaders::MaybeSortList` to implement that change.
Differential Revision: https://phabricator.services.mozilla.com/D167897
2023-02-13 10:35:59 +00:00
Kagami Sascha Rosylight
5bcfb4442b
Bug 1815431 - Remove BlobBodyStreamHolder r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D169069
2023-02-09 07:01:10 +00:00
serge-sans-paille
da45a5a7c1
Bug 1811934 - Have nsID::ToString() return an managed string instead of a raw pointer r=xpcom-reviewers,nika
...
And use nsID::ToProvidedString(...) method when suitable.
This naturally fixes a memory leak in dom/fetch/FetchParent.cpp.
Differential Revision: https://phabricator.services.mozilla.com/D167606
2023-01-31 16:44:04 +00:00
Norisz Fay
73c377bc06
Backed out changeset 7d4b830c1cf6 (bug 1811934) for causing wpt failures on pointerevent_pointerrawupdate_in_pointerlock.html CLOSED TREE
2023-01-31 21:44:59 +02:00
serge-sans-paille
2dfe139f78
Bug 1811934 - Have nsID::ToString() return an managed string instead of a raw pointer r=xpcom-reviewers,nika
...
And use nsID::ToProvidedString(...) method when suitable.
This naturally fixes a memory leak in dom/fetch/FetchParent.cpp.
Differential Revision: https://phabricator.services.mozilla.com/D167606
2023-01-31 16:44:04 +00:00
Emilio Cobos Álvarez
af31750cc0
Bug 1775062 - Fix various using statements to use properly qualified names. r=nika,necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D167710
2023-01-25 10:52:10 +00:00
Kagami Sascha Rosylight
a3c29544be
Bug 1810759 - Replace ReadableStream internal algorithm uses in Fetch r=evilpie
...
Differential Revision: https://phabricator.services.mozilla.com/D167370
2023-01-24 14:52:03 +00:00
Otto Länd
7310d9e57b
Bug 1351231, 1351231, 1351231, 1351231, 1351231: apply code formatting via Lando
...
# ignore-this-changeset
2023-01-20 09:51:36 +00:00
Eden Chuang
14ff5b1650
Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
...
Depends on D142437
Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-20 09:09:18 +00:00
Eden Chuang
2ca58b8fde
Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
...
Depends on D142436
Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-20 09:09:17 +00:00
Eden Chuang
22c302924c
Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
...
Depends on D138813
Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-20 09:09:17 +00:00
Eden Chuang
0fb09887bf
Bug 1351231 - Support conversation between InternalRequest and IPCInternalRequest. r=dom-worker-reviewers,jesup
...
Depends on D138812
Differential Revision: https://phabricator.services.mozilla.com/D138813
2023-01-20 09:09:17 +00:00
Noemi Erli
2a016fbd8d
Backed out 5 changesets (bug 1351231) for causing multiple wpt failures CLOSED TREE
...
Backed out changeset 257553919696 (bug 1351231)
Backed out changeset 4fd92351d64b (bug 1351231)
Backed out changeset 7a4e3f5f674a (bug 1351231)
Backed out changeset 9da00c1364a5 (bug 1351231)
Backed out changeset 19b78046ffef (bug 1351231)
2023-01-18 18:16:01 +02:00
Yulia Startsev
1c5ad3e91d
Bug 1247687 - Implement csp for Module Workers; r=evilpie,asuth,rpl,ckerschb
...
Depends on D155691
Differential Revision: https://phabricator.services.mozilla.com/D156102
2023-01-18 13:46:33 +00:00
Eden Chuang
473cb0ffa2
Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
...
Depends on D142437
Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-18 00:50:20 +00:00
Eden Chuang
159a61e1f2
Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
...
Depends on D142436
Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-18 00:50:20 +00:00
Eden Chuang
594d02ea78
Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
...
Depends on D138813
Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-18 00:50:19 +00:00
Eden Chuang
0493dfe7d9
Bug 1351231 - Support conversation between InternalRequest and IPCInternalRequest. r=dom-worker-reviewers,jesup
...
Depends on D138812
Differential Revision: https://phabricator.services.mozilla.com/D138813
2023-01-18 00:50:19 +00:00
Marian-Vasile Laza
1037940f5b
Backed out 5 changesets (bug 1351231) for causing multiple wpt failures. CLOSED TREE
...
Backed out changeset a41252141399 (bug 1351231)
Backed out changeset 6cbb442f4772 (bug 1351231)
Backed out changeset dbdca4661a35 (bug 1351231)
Backed out changeset ea27cd66fefd (bug 1351231)
Backed out changeset 8c21c9468949 (bug 1351231)
2023-01-17 19:53:09 +02:00
sunil mayya
cb305f0962
Bug 1802086 - remove auth header from redirected cross-origin requests. r=necko-reviewers,smaug,valentin
...
The change also updates WPT based on the discussions here https://github.com/web-platform-tests/wpt/pull/37145/files#r1042166622
Differential Revision: https://phabricator.services.mozilla.com/D163904
2023-01-17 16:13:51 +00:00
Eden Chuang
81c1e9c406
Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
...
Depends on D142437
Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-17 15:13:46 +00:00
Eden Chuang
3d02a65194
Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
...
Depends on D142436
Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-17 15:13:46 +00:00
Eden Chuang
cb31c5dd40
Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
...
Depends on D138813
Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-17 15:13:45 +00:00
Eden Chuang
bff1439c8a
Bug 1351231 - Support conversation between InternalRequest and IPCInternalRequest. r=dom-worker-reviewers,jesup
...
Depends on D138812
Differential Revision: https://phabricator.services.mozilla.com/D138813
2023-01-17 15:13:44 +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
Rob Wu
df4d1e4a94
Bug 1802385 - Use NS_GetFinalChannelURI in FetchDriver r=rpl,valentin
...
Depends on D164656
Differential Revision: https://phabricator.services.mozilla.com/D166108
2023-01-16 16:58:06 +00:00
Butkovits Atila
7855df7caf
Backed out 5 changesets (bug 1351231) for causing fetch related failures. CLOSED TREE
...
Backed out changeset da5c4a821428 (bug 1351231)
Backed out changeset 66b279e5a513 (bug 1351231)
Backed out changeset 3eb8fdd0ba6d (bug 1351231)
Backed out changeset a1fcf22a2a0e (bug 1351231)
Backed out changeset fd2a843599d1 (bug 1351231)
2023-01-12 20:20:14 +02:00
Eden Chuang
181d5d396e
Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
...
Depends on D142437
Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-12 17:24:29 +00:00
Eden Chuang
d71967bf2f
Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
...
Depends on D142436
Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-12 17:24:28 +00:00
Eden Chuang
8c605f20ce
Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
...
Depends on D138813
Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-12 17:24:28 +00:00
Eden Chuang
20a99e19ae
Bug 1351231 - Support conversation between InternalRequest and IPCInternalRequest. r=dom-worker-reviewers,jesup
...
Depends on D138812
Differential Revision: https://phabricator.services.mozilla.com/D138813
2023-01-12 17:24:27 +00:00
Stanca Serban
0d5b1d231b
Backed out 5 changesets (bug 1351231) for Fetch related failures. CLOSED TREE
...
Backed out changeset cc26eeeaf3dd (bug 1351231)
Backed out changeset c0cb3c17f246 (bug 1351231)
Backed out changeset 84162d09eef8 (bug 1351231)
Backed out changeset 5c3b5a384f2f (bug 1351231)
Backed out changeset d8fa8a006948 (bug 1351231)
2023-01-12 18:56:25 +02:00
Eden Chuang
4993cf02ca
Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
...
Depends on D142437
Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-12 15:09:45 +00:00
Eden Chuang
56ecd30a22
Bug 1351231 - FetchService integration for PFetch. r=dom-worker-reviewers,jesup
...
Depends on D142436
Differential Revision: https://phabricator.services.mozilla.com/D142437
2023-01-12 15:09:45 +00:00
Eden Chuang
1c112bdf49
Bug 1351231 - PFetch protocol declaration and implementation. r=dom-worker-reviewers,jesup
...
Depends on D138813
Differential Revision: https://phabricator.services.mozilla.com/D142436
2023-01-12 15:09:45 +00:00
Eden Chuang
6a567b78fa
Bug 1351231 - Support conversation between InternalRequest and IPCInternalRequest. r=dom-worker-reviewers,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D138813
2023-01-12 15:09:44 +00:00
Kagami Sascha Rosylight
ac006ba3c4
Bug 1803386 - Part 1: Replace ReadableStream::mNativeUnderlyingSource with GetBodyStreamHolder() r=smaug
...
The underlying source algorithms class already has strong ref, so just use it.
Differential Revision: https://phabricator.services.mozilla.com/D166533
2023-01-12 13:43:58 +00:00
Norisz Fay
8cf029b070
Backed out 15 changesets (bug 1247687) as requested by dev CLOSED TREE
...
Backed out changeset 81d052cabf84 (bug 1247687)
Backed out changeset d698041e5174 (bug 1247687)
Backed out changeset 2adf67f910e8 (bug 1247687)
Backed out changeset 0bc871906e97 (bug 1247687)
Backed out changeset 1700d5b79273 (bug 1247687)
Backed out changeset 31888ffde37a (bug 1247687)
Backed out changeset 9153182c650d (bug 1247687)
Backed out changeset 45de9ffeec19 (bug 1247687)
Backed out changeset 59207e959b7c (bug 1247687)
Backed out changeset 49f18430c465 (bug 1247687)
Backed out changeset 0ae1fd421d4f (bug 1247687)
Backed out changeset 7770ec4717fd (bug 1247687)
Backed out changeset 68b476066248 (bug 1247687)
Backed out changeset c94a9dc60dff (bug 1247687)
Backed out changeset 0ab366c6eaaf (bug 1247687)
2022-12-21 10:48:15 +02:00
Yulia Startsev
dcbacd54c8
Bug 1247687 - Implement csp for Module Workers; r=evilpie,asuth,rpl,ckerschb
...
Depends on D155691
Differential Revision: https://phabricator.services.mozilla.com/D156102
2022-12-20 20:56:15 +00:00
Csoregi Natalia
0bb5625eb3
Merge mozilla-central to autoland. a=merge CLOSED TREE
2022-12-17 11:44:38 +02:00
Csoregi Natalia
c382c6a7ca
Backed out 16 changesets (bug 1247687) for frequent string bundle related crashes with PDF viewer (bug 1806064). a=backout
...
Backed out changeset 721f612fd09f (bug 1247687)
Backed out changeset c6c5750cf713 (bug 1247687)
Backed out changeset 5d05ab0c7cde (bug 1247687)
Backed out changeset 2429599729cb (bug 1247687)
Backed out changeset 55f13fb4ee3f (bug 1247687)
Backed out changeset 354711cf113a (bug 1247687)
Backed out changeset 40b8abaf1c0b (bug 1247687)
Backed out changeset 0c9650a1ac48 (bug 1247687)
Backed out changeset e7b103c79b1a (bug 1247687)
Backed out changeset 4dbd510fb042 (bug 1247687)
Backed out changeset 9276c7e1ddd9 (bug 1247687)
Backed out changeset 6ee318df6641 (bug 1247687)
Backed out changeset 6c129bd72b61 (bug 1247687)
Backed out changeset 4b0a4fcc6894 (bug 1247687)
Backed out changeset 34680059b9f0 (bug 1247687)
Backed out changeset 85b827971a48 (bug 1247687)
2022-12-17 11:27:32 +02:00
Shrey Gupta
5d2254262c
Bug 1580495 - Changed function parameter mCredentialsMode to aCredentialsMode in InternalHeaders::CORSHeaders. r=baku
...
Depends on D60368
Differential Revision: https://phabricator.services.mozilla.com/D60369
2022-12-16 17:37:30 +00:00
Yulia Startsev
4916e53611
Bug 1247687 - Implement csp for Module Workers; r=evilpie,asuth,rpl,ckerschb
...
Depends on D155691
Differential Revision: https://phabricator.services.mozilla.com/D156102
2022-12-14 14:55:38 +00:00
sunil mayya
05dc2710d3
Bug 1793736 - Include abort signal reason for fetch. r=necko-reviewers,valentin,tschuster
...
Differential Revision: https://phabricator.services.mozilla.com/D161669
2022-11-28 10:43:05 +00:00
sunil mayya
6eabd0d3de
Bug 1574174 - add immutable guard for fetch response headers. r=edenchuang,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D162209
2022-11-25 12:27:15 +00:00
Butkovits Atila
bf0a7fa012
Backed out changeset 133c9084af25 (bug 1793736) for causing failures at browser_navigationPreload_read_after_respondWith.js.
2022-11-21 19:49:41 +02:00
sunil mayya
6222054cd4
Bug 1793736 - Include abort signal reason for fetch. r=necko-reviewers,valentin,tschuster
...
Differential Revision: https://phabricator.services.mozilla.com/D161669
2022-11-21 16:56:09 +00:00