[Pkg-mozext-commits] [tabmixplus] 16/34: Follow up bug 1271516 - Introducing nsIWebNavigation.setOriginAttributesBeforeLoading

David Prévot taffit at moszumanska.debian.org
Mon Jun 27 13:57:57 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 03d44daefff3776e52ec5226650f320d7f63a652
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Jun 11 00:36:23 2016 +0300

    Follow up bug 1271516 - Introducing nsIWebNavigation.setOriginAttributesBeforeLoading
---
 chrome/content/scripts/content.js | 3 ++-
 modules/ContentClick.jsm          | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/chrome/content/scripts/content.js b/chrome/content/scripts/content.js
index e0780a7..0264f30 100644
--- a/chrome/content/scripts/content.js
+++ b/chrome/content/scripts/content.js
@@ -225,7 +225,8 @@ TabmixClickEventHandler = {
       button: event.button, shiftKey: event.shiftKey,
       ctrlKey: event.ctrlKey, metaKey: event.metaKey,
       altKey: event.altKey, href: null, title: null,
-      bookmark: false, referrerPolicy: referrerPolicy
+      bookmark: false, referrerPolicy: referrerPolicy,
+      originAttributes: principal ? principal.originAttributes : {},
     };
 
     if (typeof event.tabmix_openLinkWithHistory == "boolean")
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index 62c4f3d..c6087d2 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -126,6 +126,9 @@ ContentClickInternal = {
         referrerPolicy: json.referrerPolicy,
         noReferrer: json.noReferrer
       };
+      if (json.originAttributes.userContextId) {
+        params.userContextId = json.originAttributes.userContextId;
+      }
       window.openLinkIn(json.href, where, params);
 
       try {

-- 
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