[Pkg-mozext-commits] [tabmixplus] 86/107: Follow up bug 1227116 - fix cmd-click on SVG links as well
David Prévot
taffit at moszumanska.debian.org
Tue Dec 29 19:02:54 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 864fe404a7f7efa7e28ed5779b7b12f85ce4cdda
Author: onemen <tabmix.onemen at gmail.com>
Date: Fri Nov 27 21:52:34 2015 +0200
Follow up bug 1227116 - fix cmd-click on SVG links as well
---
chrome/content/content.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/content/content.js b/chrome/content/content.js
index 4c5a7b4..924898f 100644
--- a/chrome/content/content.js
+++ b/chrome/content/content.js
@@ -290,7 +290,7 @@ var TabmixClickEventHandler = {
*
* @param event
* The click event.
- * @return [href, linkNode].
+ * @return [href, linkNode, linkPrincipal].
*
* @note linkNode will be null if the click wasn't on an anchor
* element. This includes SVG links, because callers expect |node|
@@ -318,8 +318,10 @@ var TabmixClickEventHandler = {
while (node && !href) {
if (node.nodeType == content.Node.ELEMENT_NODE) {
href = node.getAttributeNS("http://www.w3.org/1999/xlink", "href");
- if (href)
+ if (href) {
baseURI = node.ownerDocument.baseURIObject;
+ break;
+ }
}
node = node.parentNode;
}
--
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