summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2019-05-23 13:39:01 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2019-05-23 13:39:01 +0800
commit10318170bca9a08b1f3716e245aba5432d60aa2a (patch)
tree88dd3846637f8481ca453790997434e0cd247b95 /application
parent797697e26d43b69342bdffd05575133fe8484d87 (diff)
downloadUXP-10318170bca9a08b1f3716e245aba5432d60aa2a.tar
UXP-10318170bca9a08b1f3716e245aba5432d60aa2a.tar.gz
UXP-10318170bca9a08b1f3716e245aba5432d60aa2a.tar.lz
UXP-10318170bca9a08b1f3716e245aba5432d60aa2a.tar.xz
UXP-10318170bca9a08b1f3716e245aba5432d60aa2a.zip
Issue #1104 - Pass an opener to loadOneTab in the openURI function
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/base/content/browser.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index cc362d23f..16b7c0019 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -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")) {