mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1038599 - Call OpenLinkIn from loadURI. r=dao
This commit is contained in:
parent
ca8d827498
commit
c0bbfa1770
@ -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) {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user