зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1038599 - Call OpenLinkIn from loadURI. r=dao
This commit is contained in:
Родитель
35916c45c0
Коммит
b9b09397b7
|
@ -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) {}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче