Bug 1002724 - add pref for fallback to https. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D75084
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user