[Pkg-mozext-commits] [tabmixplus] 46/147: The preferences 'Middle-click or Control-click inverse focus of: Links' does not work

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:35 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 3bc5f52a360313416b5890d7141ea30547539877
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Dec 4 01:30:30 2016 +0200

    The preferences 'Middle-click or Control-click inverse focus of: Links' does not work
---
 chrome/content/places/places.js | 3 ++-
 chrome/content/tab/tab.js       | 2 +-
 modules/ContentClick.jsm        | 6 +++---
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index 41da8ac..695650a 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -704,7 +704,8 @@ Tabmix.onContentLoaded = {
       'return shift ? "tabshifted" : "tab";',
       '{' + $LF +
       'let callerTrace = Tabmix.callerTrace();' + $LF +
-      'let list = ["openUILink", "handleLinkClick", "TMP_tabshifted", "TMP_contentLinkClick", "BG_observe"];' + $LF +
+      'let list = ["openUILink", "handleLinkClick", "BG_observe", "contentAreaClick",' + $LF +
+      '            "TMP_tabshifted", "TMP_whereToOpenLink", "TMP_contentLinkClick"];' + $LF +
       'let pref = callerTrace.contain(list) ?' + $LF +
       '    "extensions.tabmix.inversefocusLinks" : "extensions.tabmix.inversefocusOther";' + $LF +
       'let notOneClickSearch = !getBoolPref("browser.search.showOneOffButtons", false) ||' + $LF +
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 41815c6..14dd829 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -2701,7 +2701,7 @@ TabmixProgressListener = {
     // Bug 1081891: Calling webNavigation.loadURI with url that trigger
     // unknownContentType.xul dialog change the tab title to its address
     // as a workaround we trigger DOMTitleChanged async message
-    _fixTabTitle: function TMP__contentLinkClick(tab, browser, url) {
+    _fixTabTitle: function TMP__fixTabTitle(tab, browser, url) {
       if (browser.getAttribute("remote") != "true" || /^about/.test(url) ||
           browser._contentTitle !== "" || this.mTabBrowser.isBlankTab(tab))
         return;
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index bbef3a9..ab86fc7 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -109,7 +109,7 @@ ContentClickInternal = {
       ContentClick["tabmix_" + aFn] = ContentClick[aFn];
     });
 
-    ContentClick.contentAreaClick = function(json, browser) {
+    ContentClick.contentAreaClick = function contentAreaClick(json, browser) {
       this.tabmix_contentAreaClick.apply(this, arguments);
 
       // we add preventDefault in our content.js when 'where' is not the
@@ -340,7 +340,7 @@ ContentClickInternal = {
     this._data = new LinkData();
   },
 
-  whereToOpen: function TMP_whereToOpen(event, href, wrappedNode, wrappedOnClickNode) {
+  whereToOpen: function TMP_whereToOpenLink(event, href, wrappedNode, wrappedOnClickNode) {
     let eventWhere;
     let TMP_tabshifted = aEvent => {
       var where = eventWhere || this._window.whereToOpenLink(aEvent);
@@ -479,7 +479,7 @@ ContentClickInternal = {
    *        handle left-clicks on links when preference is to open new tabs from links
    *        links that are not handled here go on to the page code and then to contentAreaClick
    */
-  _contentLinkClick: function(aEvent, aBrowser, aFocusedWindow) {
+  _contentLinkClick: function TMP_contentLinkClick(aEvent, aBrowser, aFocusedWindow) {
     let ownerDoc = aBrowser.ownerDocument;
     let win = ownerDoc.defaultView;
     aEvent.tabmix_isMultiProcessBrowser = win.gMultiProcessBrowser;

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