[Pkg-mozext-commits] [tabmixplus] 50/107: Don't change default behavior for link with spaces, support.hp.com uses special link format internally

David Prévot taffit at moszumanska.debian.org
Tue Dec 29 19:02:49 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 bb4757ecefa366304b17b7d17d0f9f278ed0b7a8
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Nov 4 14:29:52 2015 +0200

    Don't change default behavior for link with spaces, support.hp.com uses special link format internally
---
 modules/ContentClick.jsm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index 7ea9678..9e3f13e 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -437,6 +437,14 @@ var ContentClickInternal = {
     if (this.divertTargetedLink())
       return ["current at 14"];
 
+   /*
+    * Don't change default behavior for link with spaces,
+    * support.hp.com uses special link format internally
+    */
+    if (decodeURI(href.trim()).indexOf(" ") > -1) {
+      return ["default at 14a"];
+    }
+
     /*
      * open links to other sites in a tab only if certain conditions are met. See the
      * function comment for more details.

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