[Pkg-mozext-commits] [tabmixplus] 03/61: Don't open new tab from facebook chat settings

David Prévot taffit at moszumanska.debian.org
Fri Aug 28 19:09:16 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 47c6d1d031a7b493e4eb2664dd4b7cd1458928f0
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Jul 5 11:21:49 2015 +0300

    Don't open new tab from facebook chat settings
---
 modules/ContentClick.jsm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index b92f29f..4f21d49 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -870,6 +870,10 @@ var ContentClickInternal = {
     if (!/^(http|about)/.test(hrefFromOnClick || href))
       return null;
 
+    // don't open new tab from facebook chat settings
+    if (/www\.facebook\.com\/ajax/.test(href))
+      return false;
+
     let current = this._data.currentURL.toLowerCase();
     let youtube = /www\.youtube\.com\/watch\?v\=/;
     let isYoutube = function(href) youtube.test(current) && youtube.test(href);

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