Bug 1038599 - Call OpenLinkIn from loadURI. r=dao

This commit is contained in:
Vikneshwar 2014-07-26 21:35:39 +02:00
parent ca8d827498
commit c0bbfa1770

View File

@ -2010,17 +2010,11 @@ function BrowserTryToCloseWindow()
}
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);
openLinkIn(uri, "current",
{ referrerURI: referrer,
postData: postData,
allowThirdPartyFixup: allowThirdPartyFixUp });
} catch (e) {}
}