fune/testing/xpcshell
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
..
dns-packet
example
moz-http2 Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters a=dmeehan 2024-06-27 13:01:12 +00:00
node-http2
node-ws
node_ip
dbg-actors.js
head.js
mach_commands.py
mach_test_package_commands.py
moz.build
README
remotexpcshelltests.py Bug 1899781 - Use correct timeout in xpcshell TV r=jmaher 2024-05-30 14:57:15 +00:00
runxpcshelltests.py Bug 1901355 - Make it possible to start http3Server on demand, r=necko-reviewers,valentin a=test-only 2024-06-20 08:30:56 +00:00
selftest.py
xpcshellcommandline.py Bug 1899669 - Add --setenv support to mach xpcshell-test r=jmaher 2024-05-29 23:49:05 +00:00

Simple xpcshell-based test harness

converted from netwerk/test/unit

Some documentation at https://developer.mozilla.org/en-US/docs/Mozilla/QA/Writing_xpcshell-based_unit_tests
See also http://wiki.mozilla.org/SoftwareTesting:Tools:Simple_xpcshell_test_harness