[Pkg-mozext-commits] [tabmixplus] 16/23: Follow up bug 1109146 - pass isContentWindowPrivate from ContentClick.jsm to utilityOverlay.js for saveURL instead of passing a CPOW initiating content document

David Prévot taffit at moszumanska.debian.org
Fri Sep 23 03:31:06 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 16bdab2dd723e99d1b245a3f0fa794de043d2d84
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Sep 3 20:45:00 2016 +0300

    Follow up bug 1109146 - pass isContentWindowPrivate from ContentClick.jsm to utilityOverlay.js for saveURL instead of passing a CPOW initiating content document
---
 chrome/content/scripts/content.js | 4 ++++
 modules/ContentClick.jsm          | 1 +
 2 files changed, 5 insertions(+)

diff --git a/chrome/content/scripts/content.js b/chrome/content/scripts/content.js
index d5ee8c9..4a45403 100644
--- a/chrome/content/scripts/content.js
+++ b/chrome/content/scripts/content.js
@@ -14,6 +14,9 @@ XPCOMUtils.defineLazyModuleGetter(this, "DocShellCapabilities",
 XPCOMUtils.defineLazyModuleGetter(this, "BrowserUtils",
   "resource://gre/modules/BrowserUtils.jsm");
 
+XPCOMUtils.defineLazyModuleGetter(this, "PrivateBrowsingUtils",
+  "resource://gre/modules/PrivateBrowsingUtils.jsm");
+
 XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
   "resource://gre/modules/NetUtil.jsm");
 
@@ -235,6 +238,7 @@ TabmixClickEventHandler = {
       bookmark: false,
       referrerPolicy: referrerPolicy,
       originAttributes: principal ? principal.originAttributes : {},
+      isContentWindowPrivate: TabmixSvc.version(510) && PrivateBrowsingUtils.isContentWindowPrivate(ownerDoc.defaultView),
     };
 
     if (typeof event.tabmix_openLinkWithHistory == "boolean")
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index 58dbf2d..c54ef28 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -126,6 +126,7 @@ ContentClickInternal = {
         referrerPolicy: json.referrerPolicy,
         noReferrer: json.noReferrer,
         allowMixedContent: json.allowMixedContent || null,
+        isContentWindowPrivate: json.isContentWindowPrivate,
       };
       if (json.originAttributes.userContextId) {
         params.userContextId = json.originAttributes.userContextId;

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