fune/dom
Manuel Bucher 0da5cdc8ad Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters a=dmeehan
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.

Original Revision: https://phabricator.services.mozilla.com/D193672

Differential Revision: https://phabricator.services.mozilla.com/D214977
2024-06-27 13:01:12 +00:00
..
abort
animation Bug 1900958 - Create a SVGObserverUtils::SelfOrAncestorHasRenderingObservers method that we can use in animations r=emilio 2024-06-07 09:28:41 +00:00
audiochannel
base Bug 1903559 - Fix the isPBM check in nsContentUtils::ShouldResistFingerprinting_dangerous(). a=dmeehan 2024-06-26 22:31:35 +00:00
battery
bindings Bug 1880782 - Remove dom.animations-api.compositing.enabled and dom.animations-api.timelines.enabled prefs r=webidl,devtools-reviewers,firefox-animation-reviewers,nchevobbe,smaug,boris 2024-06-05 19:13:23 +00:00
broadcastchannel
cache
canvas Bug 1888340 - Add prefs and platform limits for MaxPrivateVariableSizeInBytes. a=dmeehan 2024-06-26 21:26:12 +00:00
chrome-webidl Bug 1900410 - Add filename option to ChromeUtils.compileScript a=dmeehan 2024-06-27 12:35:54 +00:00
clients
commandhandler
console
credentialmanagement Bug 1896920, part 3 - Make token usable in lightweight credentials - r=anti-tracking-reviewers,webidl,smaug,pbz 2024-06-05 18:04:37 +00:00
crypto
debugger
docs
encoding
events Bug 1903214 - Don't dispatch SMIL events unless there are listeners r=smaug a=RyanVM 2024-06-18 13:25:47 +00:00
fetch
file Bug 1896509 - Implement bytes() method on Blob. r=saschanaz,webidl 2024-05-31 16:43:11 +00:00
filesystem
flex
fs
gamepad
geolocation
grid
html Bug 1890748 - Move responsibility of FeaturePolicy initialization to nsILoadInfo. r=freddyb,necko-reviewers,jesup,dom-core,sefeng, a=dmeehan 2024-06-20 13:22:41 +00:00
imptests
indexedDB Bug 1892875 - Schedule sending of results after releasing current runnable; r=dom-storage-reviewers,jstutte, a=dmeehan 2024-06-14 06:51:21 +00:00
interfaces
ipc Bug 1890748 - Move responsibility of FeaturePolicy initialization to nsILoadInfo. r=freddyb,necko-reviewers,jesup,dom-core,sefeng, a=dmeehan 2024-06-20 13:22:41 +00:00
jsurl
l10n
locales Backed out changeset 2a4ee9f86e5a (bug 1862199) for causing bc failures on browser_misused_characters_in_strings.js. CLOSED TREE 2024-06-04 12:10:12 +03:00
localstorage
locks
manifest
mathml
media Bug 1900191 - use default duration if exists. r=media-playback-reviewers,karlt a=pascalc 2024-06-24 13:33:01 +00:00
messagechannel
midi
network
notification
origin-trials Bug 1901060 - Privacy Preserving Attribution origin trial and API. r=bbirdsong,mt,webidl,smaug 2024-06-06 16:43:41 +00:00
payments
performance
permission
plugins/test
power
privateattribution Bug 1901792 - Make PPA not work in PBM. r=bgrins, a=RyanVM 2024-06-12 15:39:21 +00:00
promise
prototype
push Bug 1874782 - Stop using Math.random() for test worker URL r=asuth 2024-06-05 21:10:55 +00:00
quota Bug 1901745 - Introduce mozilla::dom::quota::RunAfterProcessNextEvent; r=dom-storage-reviewers,jstutte, a=dmeehan 2024-06-13 11:07:08 +00:00
reporting
res
script Bug 1286026 - Don't warn for invalid WebGL script types, and include the invalid script type. r=dom-core,farre 2024-06-07 13:15:28 +00:00
security Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters a=dmeehan 2024-06-27 13:01:12 +00:00
serializers
serviceworkers Bug 1776004 - Intermittent fix: Report QM usage, allow for incremental vacuum. r=edenchuang 2024-06-04 14:43:51 +00:00
simpledb
smil Bug 1903214 - Don't dispatch SMIL events unless there are listeners r=smaug a=RyanVM 2024-06-18 13:25:47 +00:00
storage
streams Bug 1898364 - Wrap reason in cancel callback a=RyanVM 2024-06-13 15:56:37 +00:00
svg Bug 1903352 - SVG attribute values should not be zoomed r=emilio a=RyanVM 2024-06-20 14:56:29 +00:00
system Bug 1895375 - [4/4] Propagate ipc::LaunchErrors to callers r=ipc-reviewers,nika 2024-05-30 17:52:09 +00:00
tests Bug 1899882 - Invoke elementCreationCallback if there are elements to upgrade r=smaug 2024-06-04 23:18:01 +00:00
url
vr
webauthn Bug 1888851 - reorder clientDataJSON properties to support limited verifiers. r=webidl,smaug a=RyanVM 2024-06-15 17:34:12 +00:00
webbrowserpersist
webgpu
webidl Bug 1888851 - reorder clientDataJSON properties to support limited verifiers. r=webidl,smaug a=RyanVM 2024-06-15 17:34:12 +00:00
webscheduling
webshare
websocket
webtransport
workers
worklet Bug 1898684 Use AutoJSAPI while run()ing JS::Dispatchable r=dom-core,peterv 2024-06-03 23:32:00 +00:00
xhr
xml Bug 1901414 - Flush layout before firing SVG image doc load. r=dshin, a=RyanVM 2024-06-14 07:33:45 +00:00
xslt Bug 1890748 - Move responsibility of FeaturePolicy initialization to nsILoadInfo. r=freddyb,necko-reviewers,jesup,dom-core,sefeng, a=dmeehan 2024-06-20 13:22:41 +00:00
xul
jar.mn
metrics.yaml
moz.build Bug 1901060 - Privacy Preserving Attribution origin trial and API. r=bbirdsong,mt,webidl,smaug 2024-06-06 16:43:41 +00:00
pings.yaml