[Pkg-mozext-commits] [tabmixplus] 02/13: Update hrefFromOnClick regular expression to catch 'document.location='
David Prévot
taffit at moszumanska.debian.org
Wed Oct 29 01:34:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 52280e939aeeafd4537ff83e0ad6eb42a03e0964
Author: onemen <tabmix.onemen at gmail.com>
Date: Fri Oct 17 14:03:32 2014 +0300
Update hrefFromOnClick regular expression to catch 'document.location='
---
modules/ContentClick.jsm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index 7bea3be..4113dbd 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -1053,7 +1053,7 @@ let ContentClickInternal = {
},
_hrefFromOnClick: function(href, node, onclick, result) {
- let re = /^(javascript:)?(window\.|top\.)?location(\.href)?=/;
+ let re = /^(javascript:)?(window\.|top\.)?(document\.)?location(\.href)?=/;
if (!re.test(onclick))
return;
--
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