mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1189082 - r=mak
--HG-- extra : commitid : EUpd3pAdtto extra : histedit_source : 8995fee354dc2abd7844ee600a80f824fdbd7c3e
This commit is contained in:
parent
f27dbdc274
commit
9b02c92098
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user