From 6b0c2a089eff38548af6e024a99172d2676c7cba Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Tue, 1 May 2018 00:15:28 +0200 Subject: Bug 1331686 - Pass correct triggeringPrincipal for tabs openen through ctrl-click and open link in new tab --- browser/base/content/utilityOverlay.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'browser/base/content/utilityOverlay.js') diff --git a/browser/base/content/utilityOverlay.js b/browser/base/content/utilityOverlay.js index 97897c78c..4b6f78bf3 100644 --- a/browser/base/content/utilityOverlay.js +++ b/browser/base/content/utilityOverlay.js @@ -407,6 +407,7 @@ function openLinkIn(url, where, params) { } aCurrentBrowser.loadURIWithFlags(url, { + triggeringPrincipal: aPrincipal, flags: flags, referrerURI: aNoReferrer ? null : aReferrerURI, referrerPolicy: aReferrerPolicy, @@ -432,6 +433,7 @@ function openLinkIn(url, where, params) { noReferrer: aNoReferrer, userContextId: aUserContextId, originPrincipal: aPrincipal, + triggeringPrincipal: aPrincipal, }); browserUsedForLoad = tabUsedForLoad.linkedBrowser; break; -- cgit v1.2.3