[Pkg-mozext-commits] [tabmixplus] 41/56: Don't open new tab from facebook chat and settings
David Prévot
taffit at moszumanska.debian.org
Mon Jun 6 00:02:37 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 9e27f8d9f7de5765ebc2274723750cb211d0054f
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon May 16 20:33:10 2016 +0300
Don't open new tab from facebook chat and settings
---
modules/ContentClick.jsm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index c78f63a..ab434bc 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -885,8 +885,8 @@ 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))
+ // don't open new tab from facebook chat and settings
+ if (/www\.facebook\.com\/(?:ajax|settings)/.test(href))
return false;
let current = this._data.currentURL.toLowerCase();
--
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