summaryrefslogtreecommitdiffstats
path: root/toolkit/content
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 /toolkit/content
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 'toolkit/content')
-rw-r--r--toolkit/content/widgets/browser.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/content/widgets/browser.xml b/toolkit/content/widgets/browser.xml
index a5f37b62a..e595c847d 100644
--- a/toolkit/content/widgets/browser.xml
+++ b/toolkit/content/widgets/browser.xml
@@ -135,6 +135,7 @@
aURI = "about:blank";
var aReferrerPolicy = Components.interfaces.nsIHttpChannel.REFERRER_POLICY_DEFAULT;
+ var aTriggeringPrincipal;
// Check for loadURIWithFlags(uri, { ... });
var params = arguments[1];
@@ -144,6 +145,9 @@
if ('referrerPolicy' in params) {
aReferrerPolicy = params.referrerPolicy;
}
+ if ("triggeringPrincipal" in params) {
+ aTriggeringPrincipal = params.triggeringPrincipal;
+ }
aCharset = params.charset;
aPostData = params.postData;
}
@@ -151,7 +155,7 @@
this._wrapURIChangeCall(() =>
this.webNavigation.loadURIWithOptions(
aURI, aFlags, aReferrerURI, aReferrerPolicy,
- aPostData, null, null));
+ aPostData, null, null, aTriggeringPrincipal));
]]>
</body>
</method>