Bug 1002724 - add pref for fallback to https. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D75084
This commit is contained in:
Sid Stamm
2020-05-18 15:08:24 +00:00
parent e6210537b6
commit 437820982f
3 changed files with 5 additions and 1 deletions

View File

@@ -6106,7 +6106,9 @@ nsresult nsDocShell::EndPageLoad(nsIWebProgress* aProgress,
getter_AddRefs(newPostData), getter_AddRefs(newURI));
}
}
} else if (aStatus == NS_ERROR_CONNECTION_REFUSED) {
} else if (aStatus == NS_ERROR_CONNECTION_REFUSED &&
Preferences::GetBool("browser.fixup.fallback-to-https",
false)) {
// Try HTTPS, since http didn't work
if (SchemeIsHTTP(url)) {
int32_t port = 0;