[Pkg-mozext-commits] [tabmixplus] 12/23: Follow up bug 1245751 - Part 12: Retrieve href from both None & XLink namespace in Browser & Android

David Prévot taffit at moszumanska.debian.org
Fri Sep 23 03:31:05 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 7f6a433297d1ed9ccb3a93bc7cd9b7f0d56383b9
Author: onemen <tabmix.onemen at gmail.com>
Date:   Thu Sep 1 09:30:20 2016 +0300

    Follow up bug 1245751 - Part 12: Retrieve href from both None & XLink namespace in Browser & Android
---
 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 2344a08..d5ee8c9 100644
--- a/chrome/content/scripts/content.js
+++ b/chrome/content/scripts/content.js
@@ -349,7 +349,8 @@ TabmixClickEventHandler = {
       if (node.nodeType == content.Node.ELEMENT_NODE &&
           (node.localName == "a" ||
            node.namespaceURI == "http://www.w3.org/1998/Math/MathML")) {
-        href = node.getAttributeNS("http://www.w3.org/1999/xlink", "href");
+        href = TabmixSvc.version(510) && node.getAttribute("href") ||
+            node.getAttributeNS("http://www.w3.org/1999/xlink", "href");
         if (href) {
           baseURI = node.ownerDocument.baseURIObject;
           break;

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