mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Issue #1104 - Pass an opener to loadOneTab in the openURI function
This commit is contained in:
parent
70c0d40d9b
commit
18f9f38e8b
1 changed files with 3 additions and 1 deletions
|
|
@ -4481,13 +4481,15 @@ nsBrowserAccess.prototype = {
|
|||
}
|
||||
|
||||
let loadInBackground = gPrefService.getBoolPref("browser.tabs.loadDivertedInBackground");
|
||||
let openerWindow = (aContext & Ci.nsIBrowserDOMWindow.OPEN_NO_OPENER) ? null : aOpener;
|
||||
|
||||
let tab = win.gBrowser.loadOneTab(aURI ? aURI.spec : "about:blank", {
|
||||
triggeringPrincipal: triggeringPrincipal,
|
||||
referrerURI: referrer,
|
||||
referrerPolicy: referrerPolicy,
|
||||
fromExternal: isExternal,
|
||||
inBackground: loadInBackground});
|
||||
inBackground: loadInBackground,
|
||||
opener: openerWindow });
|
||||
let browser = win.gBrowser.getBrowserForTab(tab);
|
||||
|
||||
if (gPrefService.getBoolPref("browser.tabs.noWindowActivationOnExternal")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue