[Pkg-mozext-commits] [tabmixplus] 25/34: Follow up bug 1031264 - <a rel="noreferrer"> does not work if open in new tab and bug 1133201 - part 2 - don't send referrer information when opening new windows via context menu

David Prévot taffit at moszumanska.debian.org
Mon Mar 9 23:28:09 UTC 2015


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit ebf8875e44bc9649db67da6f71d01bf7120e0e25
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Feb 25 17:32:49 2015 +0200

    Follow up bug 1031264 - <a rel="noreferrer"> does not work if open in new tab and bug 1133201 - part 2 - don't send referrer information when opening new windows via context menu
---
 chrome/content/content.js       | 2 ++
 chrome/content/places/places.js | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/chrome/content/content.js b/chrome/content/content.js
index 022933c..ed9b64b 100644
--- a/chrome/content/content.js
+++ b/chrome/content/content.js
@@ -187,6 +187,8 @@ var TabmixClickEventHandler = {
           }
         }
       }
+      if (TabmixSvc.version(370))
+        json.noReferrer = BrowserUtils.linkHasNoReferrer(node);
 
       sendAsyncMessage("Content:Click", json);
       return;
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index d69eac2..682accd 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -98,9 +98,9 @@ var TMP_Places = {
         /Services.ww.openWindow[^;]*;/,
         'let newWin = $&\n    if (newWin && bookMarkId)\n        newWin.bookMarkIds = bookMarkId;'
       )._replace(
-        'w.gBrowser.loadURIWithFlags(url, flags, aReferrerURI, null, aPostData);',
-        '$&\
-         w.gBrowser.ensureTabIsVisible(w.gBrowser.selectedTab);'
+        /w\.gBrowser\.loadURIWithFlags\(.*\);/,
+        '$&\n    ' +
+        'w.gBrowser.ensureTabIsVisible(w.gBrowser.selectedTab);'
       )._replace(
         /(\})(\)?)$/,
         '  var tab = where == "current" ?\n' +

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