Commit graph

2058 commits

Author SHA1 Message Date
Valentin Gosu
fd4b32aa9e Bug 1816390 - Partition the cache entries generated by cross-origin fetch requests r=necko-reviewers,kershaw,jesup
Differential Revision: https://phabricator.services.mozilla.com/D195757
2024-01-16 09:22:16 +00:00
Norisz Fay
b459a017eb Backed out changeset b595a7dfd41b (bug 1849864) for causing multiple failures CLOSED TREE 2023-12-21 13:38:06 +02:00
Tim Huang
454758c2e3 Bug 1849864 - Update the userAgent header once the AntiTracking Info is updated. r=tjr,necko-reviewers,jesup
The userAgent was decided when the channel was created, but the channel
hasn't known about whether it should exempt fingerprinting protection at
the moment. To properly set the userAgent, we need to update the
userAgent header once we know the AntiTracking info.

Differential Revision: https://phabricator.services.mozilla.com/D196953
2023-12-21 10:12:27 +00:00
Mirko Brodesser
39afb29de4 Bug 1869488: log address of nsIChannel subobject of nsHttpChannel in the constructor/destructor too. r=necko-reviewers,jesup
This allows linking `nsHttpHandler::NotifyObservers` calls to their
corresponding `nsHttpChannel`s in logan
(https://github.com/mozilla-necko/logan).

There'll be a separate patch for logan once this one accepted.

Differential Revision: https://phabricator.services.mozilla.com/D196147
2023-12-13 08:29:00 +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
Norisz Fay
2f59f81732 Backed out changeset 68ae10a38cdf (bug 1276918) for causing reftest failures on webcam-simulacrum.mjpg CLOSED TREE 2023-12-06 17:17:02 +02:00
Frederik Braun
911a588250 Bug 1276918 - restrict multipart/x-mixed-replace to non-document loads r=necko-reviewers,valentin,kershaw
Ideally, I would like to remove this for all types except images, but there
is some uncertainty wrt to other media load types and making small steps is
easier than huge strides. Especially when it's risking compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D194917
2023-12-06 14:07:34 +00:00
Julian Descottes
1a70dd3342 Bug 1826198 - [devtools] Add an optional auth prompt listener to the NetworkObserver r=bomsy,devtools-reviewers,valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189515
2023-11-27 11:27:20 +00:00
Valentin Gosu
53f37a155a Bug 1865813 - test_trr.js::test_trr_flags fails in Android/verify tests r=necko-reviewers,kershaw
The TRR request times out in chaos mode so we increase the timeout.

Differential Revision: https://phabricator.services.mozilla.com/D194222
2023-11-22 10:59:43 +00:00
Stanca Serban
18c4fedab7 Backed out 5 changesets (bug 1826198, bug 1852223) for causing dt failures in browser_networkobserver_auth_listener.js. CLOSED TREE
Backed out changeset b8d7a9ec9aa2 (bug 1852223)
Backed out changeset 0e7a2180e566 (bug 1852223)
Backed out changeset a7ad7ccbc6a3 (bug 1826198)
Backed out changeset 081fda2ff03d (bug 1826198)
Backed out changeset c50d12ac515b (bug 1826198)
2023-11-08 11:38:54 +02:00
Julian Descottes
0c166d4e6e Bug 1826198 - [devtools] Add an optional auth prompt listener to the NetworkObserver r=bomsy,devtools-reviewers,valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189515
2023-11-08 08:27:43 +00:00
Malte Juergens
84aacf5dbe Bug 1858565 - Make HTTPS-Only/First handle Superfluos Auth correctly r=freddyb,necko-reviewers,valentin
- Introduce new error `NS_ERROR_SUPERFLUOS_AUTH`
- Make `nsHttpChannelAuthProvider::CheckForSuperfluousAuth` return that new error instead of `NS_ERROR_ABORT`
- If `CheckForSuperfluosAuth` fails, set the status of the http channel to the rv of `CheckForSuperfluosAuth` (this should always be the newly introduced error)
- Add the new error code  to `nsHTTPSOnlyUtils::HttpsUpgradeUnrelatedErrorCode` to make sure HTTPS-Only/First will not think that the request failed

Differential Revision: https://phabricator.services.mozilla.com/D191276
2023-11-06 09:48:48 +00:00
sunil mayya
a085e78665 Bug 1861885 - set nsHttpChannel::mAuthRetryPending false for failed requests. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D192168
2023-10-31 23:34:58 +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
Noemi Erli
e7edea2369 Backed out 3 changesets (bug 1826198) for causing failures in browser_networkobserver_auth_listener.js CLOSED TREE
Backed out changeset c8d9b37591bf (bug 1826198)
Backed out changeset f08806f8c130 (bug 1826198)
Backed out changeset 01afc774b301 (bug 1826198)
2023-10-25 19:40:59 +03:00
Julian Descottes
5b99d116f8 Bug 1826198 - [devtools] Add an optional auth prompt listener to the NetworkObserver r=bomsy,devtools-reviewers,valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189515
2023-10-25 15:39:23 +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
2f546f078f Bug 1856288 - send OnStartRequest if opening of redirected channel for auth retry fails. r=necko-reviewers,jesup
The issue was discovered when we were try to enable the pref network.auth.use_redirect_for_retries.
If the redirected (due to auth retry) channel was aborted we should continue with sending the OnStart and OnStop notification on the older channel.
This is similar to what we are doing currently [here](https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsHttpChannel.cpp#7822-7838)

Differential Revision: https://phabricator.services.mozilla.com/D191420
2023-10-24 10:00:09 +00: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
Benjamin VanderSloot
889a34c39e Bug 1857593 - Enable GPC in Private Browsing Mode by default - r=jewilde,anti-tracking-reviewers,necko-reviewers,valentin,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D191095
2023-10-18 13:30:51 +00:00
Iulian Moraru
151633bf92 Backed out changeset 44247957cb7a (bug 1857593) for causing build bustages on nsHttpChannel.cpp. CLOSED TREE 2023-10-18 15:44:25 +03:00
Benjamin VanderSloot
62081e7036 Bug 1857593 - Enable GPC in Private Browsing Mode by default - r=jewilde,anti-tracking-reviewers,necko-reviewers,valentin,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D191095
2023-10-18 12:05:05 +00:00
Randell Jesup
9f9fe42709 Bug 759819: Teach 3 necko classes to release listeners after OnStopRequest r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D189368
2023-10-17 18:29:14 +00:00
Norisz Fay
98c14a6434 Backed out changeset 993429ad8ddd (bug 759819) for causing bustage on nsCOMPtr.h CLOSED TREE 2023-10-17 19:18:47 +03:00
Randell Jesup
94171e5806 Bug 759819: Teach 3 necko classes to release listeners after OnStopRequest r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D189368
2023-10-17 12:34:21 +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
Kershaw Chang
ff5a7836c1 Bug 1857217 - Understand the IPC delays introduced by socket process, r=acreskey,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D190182
2023-10-10 15:09:18 +00:00
dylan
d5a355d241 Bug 1156659 - Added set offline per tab to BrowsingContext. r=valentin,nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D187704
2023-10-04 19:42:57 +00:00
Norisz Fay
338171a737 Backed out 2 changesets (bug 1156659) for causing dt failures on browser_net_throttle.js CLOSED TREE
Backed out changeset af64e5a0109a (bug 1156659)
Backed out changeset 7e9b86bce76b (bug 1156659)
2023-10-02 16:11:21 +03:00
dylan
3b39108bc7 Bug 1156659 - Added set offline per tab to BrowsingContext. r=valentin,nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D187704
2023-10-02 04:13:43 +00:00
Cristian Tuns
bea2af2d92 Backed out changeset cd324cfaf459 (bug 759819) for causing crashes in the network stack CLOSED TREE 2023-09-30 04:39:30 -04:00
Thomas Wisniewski
68100bf812 Bug 1855650 - Back out changeset bbd42656d00d (bug 580353) for causing unexpected breakage; r=valentin,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D189599
2023-09-29 07:25:27 +00:00
Randell Jesup
82d24beb59 Bug 759819: Teach 3 necko classes to release listeners after OnStopRequest r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D189368
2023-09-28 19:21:54 +00:00
Narcis Beleuzu
38b805025d Merge mozilla-central to autoland 2023-09-27 06:52:08 +03:00
Narcis Beleuzu
f8a9eed699 Merge autoland to mozilla-central. a=merge 2023-09-27 06:45:58 +03:00
Randell Jesup
7488358a82 Bug 1848833: Clean up mRedirectedCacheKeys r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D188744
2023-09-27 02:50:33 +00:00
Sandor Molnar
e22024e42c Backed out 2 changesets (bug 1156659) for causing multiple dt failures on browser_jsterm_evaluation_context_selector_targets_update/browser_jsterm_file_load_save_keyboard_shortcut/browser_jsterm_focus_reload/etc CLOSED TREE
Backed out changeset 72676017aaf3 (bug 1156659)
Backed out changeset c5e205051938 (bug 1156659)
2023-09-26 19:54:00 +03:00
dylan
da3e3497c1 Bug 1156659 - Added set offline per tab to BrowsingContext. r=valentin,nika,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D187704
2023-09-26 15:33:34 +00:00
sunil mayya
bce0a53cb7 Bug 1820807 - Open redirected channel for auth retries in OnStopRequest. r=valentin,kershaw,necko-reviewers
Depends on D182698

Differential Revision: https://phabricator.services.mozilla.com/D188582
2023-09-25 21:14:17 +00:00
sunil mayya
4c719e836d Bug 1820807 - redirect channel for auth retries. r=necko-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D182698
2023-09-25 21:14:17 +00:00
Cristian Tuns
66ae587f22 Backed out 2 changesets (bug 1820807) for causing leak failures CLOSED TREE
Backed out changeset 4e90d1ca661c (bug 1820807)
Backed out changeset 115ae91a6425 (bug 1820807)
2023-09-25 11:35:40 -04:00
sunil mayya
52126fbd06 Bug 1820807 - Open redirected channel for auth retries in OnStopRequest. r=valentin,kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D188582
2023-09-25 09:32:18 +00:00
sunil mayya
135b6867f0 Bug 1820807 - redirect channel for auth retries. r=necko-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D182698
2023-09-25 09:32:17 +00:00
Cosmin Sabou
253125d194 Backed out 3 changesets (bug 1820807, bug 1853025, bug 1848763) for causing frequent network-related startup crashes (bug 1853231). a=backout
Backed out changeset 92d80b858050 (bug 1848763)
Backed out changeset c08cba545d2c (bug 1853025)
Backed out changeset 2fae28575ca8 (bug 1820807)
2023-09-15 12:33:19 +03:00
sunil mayya
45ae220912 Bug 1820807 - redirect channel for auth retries. r=necko-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D182698
2023-09-13 20:11:00 +00:00
Cosmin Sabou
de07b3c524 Backed out changeset 11fddb3ea9c0 (bug 1820807) for causing xpcshell failures on test_proxy-failover_canceled.js. CLOSED TREE 2023-09-11 18:10:57 +03:00
sunil mayya
7fe95fadf7 Bug 1820807: redirect channel for auth retries. r=necko-reviewers,kershaw,valentin
Differential Revision: https://phabricator.services.mozilla.com/D182698
2023-09-11 13:59:51 +00:00
Thomas Wisniewski
a4ff84a172 Bug 1849641 - log a console message and use a more descriptive error code when HTTP response status line cannot be parsed; r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186705
2023-08-23 21:41:19 +00:00
Cristian Tuns
83c55337a3 Backed out changeset c187cb4839c0 (bug 1849641) for causing Gtest failures in TestHttpResponseHead CLOSED TREE 2023-08-23 14:34:19 -04:00