Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # HG changeset patch
- # Parent 3c088ea38495c209a0847fbd4b2800d6a1c23a4a
- # User Vikneshwar <lviknesh@gmail.com>
- Bug 1038599 - Called OpenLinkIn from loadURI;r=dao
- diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
- --- a/browser/base/content/browser.js
- +++ b/browser/base/content/browser.js
- @@ -1894,25 +1894,20 @@ function BrowserTryToCloseWindow()
- if (WindowIsClosing())
- window.close(); // WindowIsClosing does all the necessary checks
- }
- function loadURI(uri, referrer, postData, allowThirdPartyFixup) {
- if (postData === undefined)
- postData = null;
- - var flags = nsIWebNavigation.LOAD_FLAGS_NONE;
- - if (allowThirdPartyFixup) {
- - flags |= nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
- - flags |= nsIWebNavigation.LOAD_FLAGS_FIXUP_SCHEME_TYPOS;
- - }
- -
- - try {
- - gBrowser.loadURIWithFlags(uri, flags, referrer, null, postData);
- - } catch (e) {}
- + openLinkIn(uri, "current",
- + { referrerURI: referrer,
- + postData: postData,
- + allowThirdPartyFixup: allowThirdPartyFixup });
- }
- function getShortcutOrURIAndPostData(aURL, aCallback) {
- let mayInheritPrincipal = false;
- let postData = null;
- let shortcutURL = null;
- let keyword = aURL;
- let param = "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement