[Pkg-mozext-commits] [tabmixplus] 13/123: [e10s] Middle-click on links not working in e10s windows. ContentClick.jsm call whereToOpenLink with json object that is set up in a way to look like an Event.

David Prévot taffit at moszumanska.debian.org
Wed Sep 17 21:16:22 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 b6ac27787056197f7f40d76b693bf6bbf1292177
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Aug 11 11:21:58 2014 +0300

    [e10s] Middle-click on links not working in e10s windows. ContentClick.jsm call whereToOpenLink with
    json object that is set up in a way to look like an Event.
---
 chrome/content/places/places.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index 74260b6..8a23787 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -53,7 +53,7 @@ var TMP_Places = {
       // when we are in single window mode set the function to return "tab"
       Tabmix.changeCode(window, "whereToOpenLink")._replace(
         'var middle = !ignoreButton && e.button == 1;',
-        'var middle = e instanceof MouseEvent && !ignoreButton && e.button == 1;'
+        'var middle = !ignoreButton && e.button && e.button == 1;'
       )._replace(
         'return shift ? "tabshifted" : "tab";',
         '{let pref = Tabmix.isCallerInList("openUILink", "handleLinkClick", "TMP_tabshifted", "TMP_contentLinkClick") ?\

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