author | Dão Gottwald <dao@mozilla.com> |
Sun, 27 Jul 2014 00:16:34 +0200 | |
changeset 196333 | bc751d1d8c1dc23dcdfc76c923f0fde62fc5dded |
parent 196332 | 29b357a370f340c74744ad6f05ede59d1b2061f1 |
child 196334 | 15c19c592c12451289c384810a037b648a0bcca5 |
push id | 46844 |
push user | cbook@mozilla.com |
push date | Mon, 28 Jul 2014 14:30:47 +0000 |
treeherder | mozilla-inbound@7dd701896de8 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
milestone | 34.0a1 |
backs out | 29b357a370f340c74744ad6f05ede59d1b2061f1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -2005,21 +2005,27 @@ function BrowserCloseTabOrWindow() { 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 { - openLinkIn(uri, "current", - { referrerURI: referrer, - postData: postData, - allowThirdPartyFixup: allowThirdPartyFixUp }); + gBrowser.loadURIWithFlags(uri, flags, referrer, null, postData); } catch (e) {} } function getShortcutOrURIAndPostData(aURL, aCallback) { let mayInheritPrincipal = false; let postData = null; let shortcutURL = null; let keyword = aURL;