summaryrefslogtreecommitdiffstats
path: root/browser/base/content/tabbrowser.xml
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-01 00:15:28 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-01 00:15:28 +0200
commit6b0c2a089eff38548af6e024a99172d2676c7cba (patch)
treede8e16961309afd25aae6fe04e7e2bd2730fc73c /browser/base/content/tabbrowser.xml
parent67bd9ff3af81a4e6b09ab9686c09f0f5cf09b452 (diff)
downloadUXP-6b0c2a089eff38548af6e024a99172d2676c7cba.tar
UXP-6b0c2a089eff38548af6e024a99172d2676c7cba.tar.gz
UXP-6b0c2a089eff38548af6e024a99172d2676c7cba.tar.lz
UXP-6b0c2a089eff38548af6e024a99172d2676c7cba.tar.xz
UXP-6b0c2a089eff38548af6e024a99172d2676c7cba.zip
Bug 1331686 - Pass correct triggeringPrincipal for tabs openen through ctrl-click and open link in new tab
Diffstat (limited to 'browser/base/content/tabbrowser.xml')
-rw-r--r--browser/base/content/tabbrowser.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml
index b27846835..463e74a52 100644
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -1513,6 +1513,7 @@
<parameter name="aAllowThirdPartyFixup"/>
<body>
<![CDATA[
+ var aTriggeringPrincipal;
var aReferrerPolicy;
var aFromExternal;
var aRelatedToCurrent;
@@ -1528,6 +1529,7 @@
typeof arguments[1] == "object" &&
!(arguments[1] instanceof Ci.nsIURI)) {
let params = arguments[1];
+ aTriggeringPrincipal = params.triggeringPrincipal
aReferrerURI = params.referrerURI;
aReferrerPolicy = params.referrerPolicy;
aCharset = params.charset;
@@ -1550,6 +1552,7 @@
Services.prefs.getBoolPref("browser.tabs.loadInBackground");
var owner = bgLoad ? null : this.selectedTab;
var tab = this.addTab(aURI, {
+ triggeringPrincipal: aTriggeringPrincipal,
referrerURI: aReferrerURI,
referrerPolicy: aReferrerPolicy,
charset: aCharset,
@@ -2120,6 +2123,7 @@
"use strict";
const NS_XUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
+ var aTriggeringPrincipal;
var aReferrerPolicy;
var aFromExternal;
var aRelatedToCurrent;
@@ -2136,6 +2140,7 @@
typeof arguments[1] == "object" &&
!(arguments[1] instanceof Ci.nsIURI)) {
let params = arguments[1];
+ aTriggeringPrincipal = params.triggeringPrincipal;
aReferrerURI = params.referrerURI;
aReferrerPolicy = params.referrerPolicy;
aCharset = params.charset;
@@ -2267,6 +2272,7 @@
try {
b.loadURIWithFlags(aURI, {
flags,
+ triggeringPrincipal: aTriggeringPrincipal,
referrerURI: aNoReferrer ? null: aReferrerURI,
referrerPolicy: aReferrerPolicy,
charset: aCharset,