Bug 1926989 - Fixed typo in pref dom.security.https_first_add_exception_on_failiure. r=valentin,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D228219
This commit is contained in:
Edwyn Zhou 2024-11-06 21:31:18 +00:00
parent 0555343742
commit 7a55731da0
4 changed files with 4 additions and 4 deletions

View File

@ -556,7 +556,7 @@ nsHTTPSOnlyUtils::PotentiallyDowngradeHttpsFirstRequest(
uri, true); uri, true);
if (mozilla::StaticPrefs:: if (mozilla::StaticPrefs::
dom_security_https_first_add_exception_on_failiure()) { dom_security_https_first_add_exception_on_failure()) {
AddHTTPSFirstException(uri, loadInfo); AddHTTPSFirstException(uri, loadInfo);
} }

View File

@ -229,7 +229,7 @@ async function runTest() {
SpecialPowers.pushPrefEnv({ set: [ SpecialPowers.pushPrefEnv({ set: [
["dom.security.https_first", true], ["dom.security.https_first", true],
["dom.security.https_first_add_exception_on_failiure", false], ["dom.security.https_first_add_exception_on_failure", false],
["network.http.referer.disallowCrossSiteRelaxingDefault", false], ["network.http.referer.disallowCrossSiteRelaxingDefault", false],
]}, runTest); ]}, runTest);

View File

@ -4077,7 +4077,7 @@
# If true, will add a special temporary HTTPS-First exception for a site when a # If true, will add a special temporary HTTPS-First exception for a site when a
# HTTPS-First upgrade fails. # HTTPS-First upgrade fails.
- name: dom.security.https_first_add_exception_on_failiure - name: dom.security.https_first_add_exception_on_failure
type: RelaxedAtomicBool type: RelaxedAtomicBool
value: true value: true
mirror: always mirror: always

View File

@ -6180,7 +6180,7 @@ nsresult HttpBaseChannel::CheckRedirectLimit(nsIURI* aNewURI,
// upgrade behavior if we have upgrade-downgrade loop to break the loop and // upgrade behavior if we have upgrade-downgrade loop to break the loop and
// load the http request next // load the http request next
if (mozilla::StaticPrefs:: if (mozilla::StaticPrefs::
dom_security_https_first_add_exception_on_failiure() && dom_security_https_first_add_exception_on_failure() &&
nsHTTPSOnlyUtils::IsUpgradeDowngradeEndlessLoop( nsHTTPSOnlyUtils::IsUpgradeDowngradeEndlessLoop(
mURI, aNewURI, mLoadInfo, mURI, aNewURI, mLoadInfo,
{nsHTTPSOnlyUtils::UpgradeDowngradeEndlessLoopOptions:: {nsHTTPSOnlyUtils::UpgradeDowngradeEndlessLoopOptions::