summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 12:51:04 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 12:51:04 +0200
commit1b4963fd734bbfb857593afaa103879d6c0e55eb (patch)
tree44e2af9abc71bd38c3f3d579e201281ba949c626
parentcfa5951ea85357e119f397524710320a8aa85e83 (diff)
downloadUXP-1b4963fd734bbfb857593afaa103879d6c0e55eb.tar
UXP-1b4963fd734bbfb857593afaa103879d6c0e55eb.tar.gz
UXP-1b4963fd734bbfb857593afaa103879d6c0e55eb.tar.lz
UXP-1b4963fd734bbfb857593afaa103879d6c0e55eb.tar.xz
UXP-1b4963fd734bbfb857593afaa103879d6c0e55eb.zip
Fix flags for "loadURIWithFlags" in openLocation.js
Issue #121
-rw-r--r--application/palemoon/base/content/openLocation.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/palemoon/base/content/openLocation.js b/application/palemoon/base/content/openLocation.js
index 80d542954..6987abdf8 100644
--- a/application/palemoon/base/content/openLocation.js
+++ b/application/palemoon/base/content/openLocation.js
@@ -81,7 +81,8 @@ function open()
switch (dialog.openWhereList.value) {
case "0":
var webNav = Components.interfaces.nsIWebNavigation;
- var flags = webNav.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
+ var flags = webNav.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP |
+ webNav.LOAD_FLAGS_FIXUP_SCHEME_TYPOS;
if (!mayInheritPrincipal)
flags |= webNav.LOAD_FLAGS_DISALLOW_INHERIT_OWNER;
browser.gBrowser.loadURIWithFlags(url, flags, null, null, postData);