[Pkg-mozext-commits] [tabmixplus] 03/20: Follow up bug 1396440 - Run about pages' special click handlers only for button 0
David Prévot
taffit at moszumanska.debian.org
Thu Nov 16 18:58:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 2ea5309884101f505266168ddd953df8f9fc51f2
Author: onemen <tabmix.onemen at gmail.com>
Date: Sat Sep 16 10:44:02 2017 -0700
Follow up bug 1396440 - Run about pages' special click handlers only for button 0
---
chrome/content/scripts/content.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/scripts/content.js b/chrome/content/scripts/content.js
index eae81e0..155dab4 100644
--- a/chrome/content/scripts/content.js
+++ b/chrome/content/scripts/content.js
@@ -234,7 +234,8 @@ TabmixClickEventHandler = {
let ownerDoc = event.originalTarget.ownerDocument;
// let Firefox code handle click events from about pages
- if (!ownerDoc || /^about:(certerror|blocked|neterror)$/.test(ownerDoc.documentURI)) {
+ if (!ownerDoc || (!TabmixSvc.version(570) || event.button == 0) &&
+ /^about:(certerror|blocked|neterror)$/.test(ownerDoc.documentURI)) {
return null;
}
--
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