summaryrefslogtreecommitdiffstats
path: root/browser/base/content/content.js
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/content.js
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/content.js')
-rw-r--r--browser/base/content/content.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/browser/base/content/content.js b/browser/base/content/content.js
index 8d6f0745e..2298d29c7 100644
--- a/browser/base/content/content.js
+++ b/browser/base/content/content.js
@@ -482,6 +482,7 @@ var ClickEventHandler = {
ctrlKey: event.ctrlKey, metaKey: event.metaKey,
altKey: event.altKey, href: null, title: null,
bookmark: false, referrerPolicy: referrerPolicy,
+ triggeringPrincipal: principal,
originAttributes: principal ? principal.originAttributes : {},
isContentWindowPrivate: PrivateBrowsingUtils.isContentWindowPrivate(ownerDoc.defaultView)};