Commit Graph

1073 Commits

Author SHA1 Message Date
Sean
acd71b3ea7 Bug 1921480 - Make internalRedirectTo transparent r=kershaw,jdescottes,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224008
2024-10-07 13:00:03 +00:00
Valentin Gosu
58fa93735f Bug 1900561 - Add fetchPriority to classOfService r=acreskey,necko-reviewers,kershaw
Knowing the actual fetchPriority of the initial request is useful information
when computing the urgency. This allows us to not worry about the priority
being clobbered by another caller of nsISupportsPriority.

Differential Revision: https://phabricator.services.mozilla.com/D221957
2024-09-25 18:42:51 +00:00
Butkovits Atila
e6ce34045f Backed out 3 changesets (bug 1900561, bug 1919158) for causing bustages at ipc_message_utils.h. CLOSED TREE
Backed out changeset a2a4a88ef8d1 (bug 1919158)
Backed out changeset ecb590690d2e (bug 1900561)
Backed out changeset ef92a69ff2d1 (bug 1900561)
2024-09-24 18:58:08 +03:00
Valentin Gosu
7b36a93327 Bug 1900561 - Add fetchPriority to classOfService r=acreskey,necko-reviewers,kershaw
Knowing the actual fetchPriority of the initial request is useful information
when computing the urgency. This allows us to not worry about the priority
being clobbered by another caller of nsISupportsPriority.

Differential Revision: https://phabricator.services.mozilla.com/D221957
2024-09-24 12:29:08 +00:00
Sean
f1ec7c83a2 Bug 1905037 - Add Internal Redirect Support for RedirectTo API r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D215687
2024-09-23 17:28:15 +00:00
Iulian Moraru
1e7ea75f9b Backed out 2 changesets (bug 1900561) for causing windows build bustages. CLOSED TREE
Backed out changeset 474e1a3ab5f0 (bug 1900561)
Backed out changeset 7a0bb5fa195e (bug 1900561)
2024-09-19 14:52:47 +03:00
Valentin Gosu
9760236c83 Bug 1900561 - Add fetchPriority to classOfService r=acreskey,necko-reviewers,kershaw
Knowing the actual fetchPriority of the initial request is useful information
when computing the urgency. This allows us to not worry about the priority
being clobbered by another caller of nsISupportsPriority.

Differential Revision: https://phabricator.services.mozilla.com/D221957
2024-09-19 10:24:21 +00:00
edgul
29deb1ba8d Bug 1917063 - Remove unused NotifySetCookie. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D221353
2024-09-06 20:27:37 +00:00
Alexandra Borovova
662eafced3 Bug 1884876 - Add notification about stylesheets loaded from CSSLoader cache. r=necko-reviewers,emilio,arai
Differential Revision: https://phabricator.services.mozilla.com/D220571
2024-09-06 14:47:23 +00:00
Jonatan Klemets
32c95bd458 Bug 1916351 - Only allow JSON mime type for javascript modules r=evilpie,necko-reviewers,devtools-reviewers,jesup,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D220917
2024-09-05 09:59:12 +00:00
Jonatan Klemets
4a9b5e28c9 Bug 1877792 - Part 1: Change HttpBaseChannel.cpp to allow application/json r=yulia,necko-reviewers,jesup,valentin
Differential Revision: https://phabricator.services.mozilla.com/D155161
2024-09-03 08:10:48 +00:00
Andreas Farre
9944ae2ea5 Bug 1912551 - Adjust invariant checking to only happen in debug builds. r=sefeng,necko-reviewers
In the case where the js validator comes back with a result and

Differential Revision: https://phabricator.services.mozilla.com/D220576
2024-08-30 07:53:22 +00:00
Norisz Fay
3854721348 Backed out changeset 14fcacb96097 (bug 1904238) for causing mochitest failures on test_multiple_redirection.html CLOSED TREE 2024-08-27 18:12:21 +03:00
Manuel Bucher
e0d109208b Bug 1904238 - Don't copy over https-first and -only flags on http redirects r=maltejur
To not unexpectedly downgrade requests that weren't upgraded via HTTPS-First.

From the added tests only the http redirect test cases start passing
with this patch. META and JS redirect already pass before this patch.

Differential Revision: https://phabricator.services.mozilla.com/D215214
2024-08-27 13:48:32 +00:00
Cristina Horotan
a842adb0d9 Backed out 20 changesets (bug 1877792) for causing wpt failures at importscripts_mime_local.any.sharedworker.html CLOSED TREE
Backed out changeset 19d78d0b6ee4 (bug 1877792)
Backed out changeset 14f104e5ce51 (bug 1877792)
Backed out changeset 662eb52b2a6f (bug 1877792)
Backed out changeset 48dc4035a14f (bug 1877792)
Backed out changeset d98ecddf2f59 (bug 1877792)
Backed out changeset 1234a31ff88f (bug 1877792)
Backed out changeset a3b5b0cde6ce (bug 1877792)
Backed out changeset a1f494b9592a (bug 1877792)
Backed out changeset a4d7565218f3 (bug 1877792)
Backed out changeset fe179004423b (bug 1877792)
Backed out changeset 39a20aee3942 (bug 1877792)
Backed out changeset 95b20763e650 (bug 1877792)
Backed out changeset d763241fccaf (bug 1877792)
Backed out changeset 0674cf646120 (bug 1877792)
Backed out changeset bd23c96418b6 (bug 1877792)
Backed out changeset 5b1e29e4c597 (bug 1877792)
Backed out changeset 3cead4149e6b (bug 1877792)
Backed out changeset d73a9f57f03c (bug 1877792)
Backed out changeset 82a58a80f58a (bug 1877792)
Backed out changeset 4c7182604e4f (bug 1877792)
2024-08-22 19:23:15 +03:00
Jonatan Klemets
5ab8769ece Bug 1877792 - Part 1: Change HttpBaseChannel.cpp to allow application/json r=yulia,necko-reviewers,jesup,valentin
Differential Revision: https://phabricator.services.mozilla.com/D155161
2024-08-22 14:21:48 +00:00
Valentin Gosu
b6b8ffd6ef Bug 1911759 - Expose last status on nsIHttpChannelInternal r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D210145
2024-08-07 09:16:20 +00:00
Sean Feng
e9e5a6830f Bug 1909202 - Use NS_BINDING_ABORTED for ORB blocked errors r=kershaw,necko-reviewers
Http2 uses a single connection for multiple requests. When ORB blocks a
request with NS_ERROR_FAILURE, it's treated as a hard error in necko,
then the entire connection is closed.

This patches converts ORB to uses NS_BINDING_ABORTED.

Differential Revision: https://phabricator.services.mozilla.com/D218643
2024-08-06 16:31:12 +00:00
Emilio Cobos Álvarez
77c40caac6 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
Emilio Cobos Álvarez
a44b49af0b Bug 1910698 - Add a struct to represent JS caller location and more general warning source location. r=smaug,necko-reviewers,anti-tracking-reviewers,dom-storage-reviewers,pbz,kershaw,janv
Use it liberally across the tree. This could be cleaned up even more in the future.

Differential Revision: https://phabricator.services.mozilla.com/D218114
2024-08-01 17:12:48 +00:00
Christoph Kerschbaumer
3063e2ccd1 Bug 1907590: Improve labels for https telemetry, r=freddyb,kershaw,necko-reviewers,maltejur
Differential Revision: https://phabricator.services.mozilla.com/D216675
2024-07-17 15:29:24 +00:00
Tom Schuster
feaa0c77a1 Bug 1904004 - Use OriginAttributes::IsPrivateBrowsing instead of open coding PBM checks. r=timhuang,cookie-reviewers,anti-tracking-reviewers,profiler-reviewers,necko-reviewers,kershaw,dom-storage-reviewers,janv,canaltinova,dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D214532
2024-06-24 11:06:18 +00:00
Kershaw Chang
8b08e917b0 Bug 1896625 - Add a new flag to allow to always setup TLS tunnel, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D212251
2024-06-13 15:27:00 +00:00
Thomas Wisniewski
35368d7f72 Bug 1800443 - Support the contentType attribute of the Resource Timing API, and have it and the encoded/decoded body size use the CORS check rather than TAO; r=sefeng,valentin,webidl,necko-reviewers,saschanaz,emilio
Differential Revision: https://phabricator.services.mozilla.com/D208965
2024-06-13 13:46:05 +00:00
Noemi Erli
4e8a6e5c2f Backed out changeset f24d04943626 (bug 1800443) for causing bustages in nsITimedChannel.h 2024-06-12 21:17:16 +03:00
Thomas Wisniewski
53aa94d1a5 Bug 1800443 - Support the contentType attribute of the Resource Timing API, and have it and the encoded/decoded body size use the CORS check rather than TAO; r=sefeng,valentin,webidl,necko-reviewers,saschanaz,emilio
Differential Revision: https://phabricator.services.mozilla.com/D208965
2024-06-12 17:03:13 +00:00
Manuel Bucher
a08e769765 Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters r=necko-reviewers,kershaw,simonf,maltejur
This changes where the IsUpgradeDowngradeEndlessLoop check triggers.
Before this patch, it triggered during the redirect caused by the https
upgrade. With this patch, it triggers during the downgrade for http
redirects. META and JS redirect are still detected during upgrade.
This should be fixed as a follow up (See Bug 1896691).
Downgrade in this context means same url, except with the scheme http
instead of https.

Different query parameters normally lead to different responses by web servers.
Don't consider the '#ref' part of the uri, because it doesn't get send to
the server and therefore can't change the server response.

We can't use the redirect chain anymore, because the query parameters
are trimmed since Bug 1715785.

This also removes the config option dom.security.https_only_check_path_upgrade_downgrade_endless_loop,
because it adds unnecessary complexity. Removing it for this patch is
easier.

https-only, https-first and httpssvc_https_upgrade tests had to be
modified, because they depended on the incorrect handling of query
strings in loop detection.

Differential Revision: https://phabricator.services.mozilla.com/D193672
2024-06-10 17:09:57 +00:00
Valentin Gosu
4dfae4ebeb Bug 1885308 - Make HttpBaseChannel::SetDocshellUserAgentOverride use eVarietyRequestEnforceDefault for the header. r=asuth,necko-reviewers,jesup
This variety is specifically used to make the User-Agent header be treated as
a default request header, but it wasn't used properly of the UA override.

This caused the header to be copied by CopyNonDefaultHeaderVisitor.

Differential Revision: https://phabricator.services.mozilla.com/D210478
2024-06-10 08:56:47 +00:00
Tamas Szentpeteri
15e95dbb72 Backed out changeset b234ba179483 (bug 1747230) for causing mochitest failures on browser_target_blank.js. CLOSED TREE 2024-06-06 19:51:33 +03:00
Manuel Bucher
c174df9179 Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters r=necko-reviewers,kershaw,simonf,maltejur
This changes where the IsUpgradeDowngradeEndlessLoop check triggers.
Before this patch, it triggered during the redirect caused by the https
upgrade. With this patch, it triggers during the downgrade for http
redirects. META and JS redirect are still detected during upgrade.
This should be fixed as a follow up (See Bug 1896691).
Downgrade in this context means same url, except with the scheme http
instead of https.

Different query parameters normally lead to different responses by web servers.
Don't consider the '#ref' part of the uri, because it doesn't get send to
the server and therefore can't change the server response.

We can't use the redirect chain anymore, because the query parameters
are trimmed since Bug 1715785.

This also removes the config option dom.security.https_only_check_path_upgrade_downgrade_endless_loop,
because it adds unnecessary complexity. Removing it for this patch is
easier.

https-only, https-first and httpssvc_https_upgrade tests had to be
modified, because they depended on the incorrect handling of query
strings in loop detection.

Differential Revision: https://phabricator.services.mozilla.com/D193672
2024-06-06 15:04:47 +00:00
Kershaw Chang
c3f3fa63f7 Bug 1898191 - Remove setWaitForHTTPSSVCRecord, r=necko-reviewers,valentin
We don't need it anymore.

Depends on D211750

Differential Revision: https://phabricator.services.mozilla.com/D211751
2024-05-28 20:06:17 +00:00
Sean
a18c979054 Bug 1894288 - Remove network.fetch.redirect.stripAuthHeader and network.http.redirect.stripAuthHeader prefs r=sunil,edgul,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D209393
2024-05-22 15:10:48 +00:00
Cathie Chen
bc1d7fc121 Bug 1896150 - Add RenderBlockingStatusType to the PerformanceResourceTiming Interface, r=emilio,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D210053
2024-05-15 12:57:05 +00:00
Julian Descottes
cc5602733a Bug 1895198 - Add ExplicitSetUploadStreamLength to HttpChannelChild and move LoadWasOpened assert r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209521
2024-05-06 12:00:46 +00:00
Julian Descottes
50a7f82406 Bug 1892440 - Expose RequestObserversCalled attribute in nsIHttpChannel r=valentin,necko-reviewers
For WebDriver BiDi network interception we need to be able to modify the request as late as possible.
This changeset exposes RequestObserversCalled to JS so that we can update it from the webdriver bidi codebase.

Differential Revision: https://phabricator.services.mozilla.com/D208011
2024-04-19 18:50:18 +00:00
Randell Jesup
c7ddeb74ea Bug 1871963: Implement zstd content-encoding support r=necko-reviewers,valentin,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D205109
2024-04-09 15:26:46 +00:00
Tamas Szentpeteri
768c09fff7 Backed out 3 changesets (bug 1871963) for causing dt failures on browser_net_copy_as_powershell.js. CLOSED TREE
Backed out changeset 94e286542c9d (bug 1871963)
Backed out changeset dc2ad0369b86 (bug 1871963)
Backed out changeset 9fb8ccb2f305 (bug 1871963)
2024-04-09 17:24:37 +03:00
Randell Jesup
fa0d878745 Bug 1871963: Implement zstd content-encoding support r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D205109
2024-04-09 12:31:56 +00:00
Benjamin VanderSloot
64faef2c8d Bug 1876574 - Add SameSite bit to partition-key origin attribute for first-party partitioning - r=timhuang
This patch is a no-op for observable functionality. All it does is add a bit to the partitionKey for OA, and then adds plumbing to be able to set it, and where it is required, sets it to false.
This is serialized identically to the absence of the bit, so nothing changes at all.

Differential Revision: https://phabricator.services.mozilla.com/D203155
2024-04-02 18:53:25 +00:00
Cristian Tuns
16ac4d3300 Backed out 6 changesets (bug 1876574, bug 1876575) for causing multiple failures in TestGetPrincipalCookieBehavior5 CLOSED TREE
Backed out changeset f00e9fde550f (bug 1876575)
Backed out changeset ca1c6f8819f7 (bug 1876575)
Backed out changeset d65ac05bd9f8 (bug 1876575)
Backed out changeset 5dcfe3aa8497 (bug 1876575)
Backed out changeset 9ae9252761ac (bug 1876575)
Backed out changeset 704e94d28ad7 (bug 1876574)
2024-04-02 09:58:52 -04:00
Benjamin VanderSloot
149d4f6d47 Bug 1876574 - Add SameSite bit to partition-key origin attribute for first-party partitioning - r=timhuang
This patch is a no-op for observable functionality. All it does is add a bit to the partitionKey for OA, and then adds plumbing to be able to set it, and where it is required, sets it to false.
This is serialized identically to the absence of the bit, so nothing changes at all.

Differential Revision: https://phabricator.services.mozilla.com/D203155
2024-04-02 12:50:00 +00:00
Stanca Serban
d963aee96b Backed out 6 changesets (bug 1876574, bug 1876575) for causing multiple failures. CLOSED TREE
Backed out changeset 8c7a9f405031 (bug 1876575)
Backed out changeset 49739f9ec590 (bug 1876575)
Backed out changeset 1c49f0c3b677 (bug 1876575)
Backed out changeset 1ca7a0f27bc0 (bug 1876575)
Backed out changeset bfa9862e3480 (bug 1876575)
Backed out changeset 58576ed7eb22 (bug 1876574)
2024-03-29 20:52:30 +02:00
Benjamin VanderSloot
13ffd24df0 Bug 1876574 - Add SameSite bit to partition-key origin attribute for first-party partitioning - r=timhuang
This patch is a no-op for observable functionality. All it does is add a bit to the partitionKey for OA, and then adds plumbing to be able to set it, and where it is required, sets it to false.
This is serialized identically to the absence of the bit, so nothing changes at all.

Differential Revision: https://phabricator.services.mozilla.com/D203155
2024-03-29 17:12:12 +00:00
Sandor Molnar
62e4773a7a Backed out 6 changesets (bug 1876575, bug 1876574) for causing build bustages @ toolkit/components/resistfingerprinting/nsRFPService.cpp CLOSED TREE
Backed out changeset 455ce831c73c (bug 1876575)
Backed out changeset 4fa3fbf3a3ae (bug 1876575)
Backed out changeset ac4c41cb3b67 (bug 1876575)
Backed out changeset 15e06d10788e (bug 1876575)
Backed out changeset dcd6bbea816a (bug 1876575)
Backed out changeset cc547125fda9 (bug 1876574)
2024-03-29 16:29:47 +02:00
Benjamin VanderSloot
0cb84432a5 Bug 1876574 - Add SameSite bit to partition-key origin attribute for first-party partitioning - r=timhuang
This patch is a no-op for observable functionality. All it does is add a bit to the partitionKey for OA, and then adds plumbing to be able to set it, and where it is required, sets it to false.
This is serialized identically to the absence of the bit, so nothing changes at all.

Differential Revision: https://phabricator.services.mozilla.com/D203155
2024-03-29 13:11:26 +00:00
Randell Jesup
296d08ac73 Bug 1356686 - Make InterceptFailedOnStop support nsIThreadRetargetableStreamListener r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D203148
2024-03-19 17:27:22 +00:00
Sandor Molnar
36dcd21ffb Backed out 4 changesets (bug 1356686) for causing build bustages @ netwerk/protocol/http/HttpChannelChild.cpp CLOSED TREE
Backed out changeset 63dc52c69902 (bug 1356686)
Backed out changeset 6e9726c26d07 (bug 1356686)
Backed out changeset 3b150d676b31 (bug 1356686)
Backed out changeset 54754a50d992 (bug 1356686)
2024-03-19 08:29:08 +02:00
Randell Jesup
a6b95d0ec8 Bug 1356686 - Make InterceptFailedOnStop support nsIThreadRetargetableStreamListener r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D203148
2024-03-18 20:04:00 +00:00
sunil mayya
c99b75b76e Bug 1874132 - remove auth headers from preflight request for cross origin requests. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D204608
2024-03-18 08:48:10 +00:00
Valentin Gosu
6277096c20 Bug 1884645 - Add NS_HTTP_ON_BEFORE_STOP_REQUEST_TOPIC r=necko-reviewers,kershaw
This notification would be sent by HttpChannelChild before
calling onStopRequest for a channel.

This patch also updates some comments regarding the on stop topic
which referenced the non-existent http-on-stop-connect

Differential Revision: https://phabricator.services.mozilla.com/D204482
2024-03-13 11:50:06 +00:00