[Pkg-mozext-commits] [tabmixplus] 101/147: Follow up bug 1331686 - Pass correct triggeringPrincipal for tabs openen through ctrl-click and open link in new tab

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit c06defd31a309ea6a23d003821b59046be2dae91
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Jan 25 07:01:51 2017 +0200

    Follow up bug 1331686 - Pass correct triggeringPrincipal for tabs openen through ctrl-click and open link in new tab
---
 chrome/content/scripts/content.js | 1 +
 modules/ContentClick.jsm          | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/chrome/content/scripts/content.js b/chrome/content/scripts/content.js
index 0b40997..0a9cfef 100644
--- a/chrome/content/scripts/content.js
+++ b/chrome/content/scripts/content.js
@@ -247,6 +247,7 @@ TabmixClickEventHandler = {
       title: null,
       bookmark: false,
       referrerPolicy,
+      triggeringPrincipal: principal,
       originAttributes: principal ? principal.originAttributes : {},
       isContentWindowPrivate: TabmixSvc.version(510) && PrivateBrowsingUtils.isContentWindowPrivate(ownerDoc.defaultView),
     };
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index 9707b89..b1ce2c2 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -196,6 +196,8 @@ ContentClickInternal = {
       referrerURI: browser.documentURI,
       referrerPolicy: event.referrerPolicy,
       noReferrer: event.noReferrer,
+      triggeringPrincipal: event.triggeringPrincipal,
+      isContentWindowPrivate: event.isContentWindowPrivate,
       charset: browser.characterSet,
       suppressTabsOnFileDownload: result.suppressTabsOnFileDownload
     });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list