diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-05-01 00:15:28 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-05-01 00:15:28 +0200 |
commit | 6b0c2a089eff38548af6e024a99172d2676c7cba (patch) | |
tree | de8e16961309afd25aae6fe04e7e2bd2730fc73c /browser/base/content/utilityOverlay.js | |
parent | 67bd9ff3af81a4e6b09ab9686c09f0f5cf09b452 (diff) | |
download | UXP-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/utilityOverlay.js')
-rw-r--r-- | browser/base/content/utilityOverlay.js | 2 |
1 files changed, 2 insertions, 0 deletions
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; |