Bug 1919544 - Do not HTTPS-First upgrade URLs with http:// scheme r=mak,necko-reviewers,urlbar-reviewers,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228588
This commit is contained in:
@@ -775,7 +775,7 @@ var gBrowserInit = {
|
||||
let globalHistoryOptions = undefined;
|
||||
let triggeringRemoteType = undefined;
|
||||
let forceAllowDataURI = false;
|
||||
let wasSchemelessInput = false;
|
||||
let schemelessInput = Ci.nsILoadInfo.SchemelessInputTypeUnset;
|
||||
if (window.arguments[1]) {
|
||||
if (!(window.arguments[1] instanceof Ci.nsIPropertyBag2)) {
|
||||
throw new Error(
|
||||
@@ -814,9 +814,9 @@ var gBrowserInit = {
|
||||
forceAllowDataURI =
|
||||
extraOptions.getPropertyAsBool("forceAllowDataURI");
|
||||
}
|
||||
if (extraOptions.hasKey("wasSchemelessInput")) {
|
||||
wasSchemelessInput =
|
||||
extraOptions.getPropertyAsBool("wasSchemelessInput");
|
||||
if (extraOptions.hasKey("schemelessInput")) {
|
||||
schemelessInput =
|
||||
extraOptions.getPropertyAsUint32("schemelessInput");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -841,7 +841,7 @@ var gBrowserInit = {
|
||||
fromExternal,
|
||||
globalHistoryOptions,
|
||||
triggeringRemoteType,
|
||||
wasSchemelessInput,
|
||||
schemelessInput,
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
||||
Reference in New Issue
Block a user