Bug 1189082 - r=mak

--HG--
extra : commitid : EUpd3pAdtto
extra : histedit_source : 8995fee354dc2abd7844ee600a80f824fdbd7c3e
This commit is contained in:
Gijs Kruitbosch 2015-09-23 09:10:01 +01:00
parent f27dbdc274
commit 9b02c92098

View File

@ -389,13 +389,20 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
}
let loadCurrent = () => {
openUILinkIn(url, "current", {
allowThirdPartyFixup: true,
disallowInheritPrincipal: !mayInheritPrincipal,
allowPinnedTabHostChange: true,
postData: postData,
allowPopups: url.startsWith("javascript:"),
});
try {
openUILinkIn(url, "current", {
allowThirdPartyFixup: true,
disallowInheritPrincipal: !mayInheritPrincipal,
allowPinnedTabHostChange: true,
postData: postData,
allowPopups: url.startsWith("javascript:"),
});
} catch (ex) {
// This load can throw an exception in certain cases, which means
// we'll want to replace the URL with the loaded URL:
this.handleRevert();
}
// Ensure the start of the URL is visible for UX reasons:
this.selectionStart = this.selectionEnd = 0;
};