From cc32283cef6c4037dd339cffed91bfd435e1aa2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Sun, 14 Jan 2018 13:12:05 +0100 Subject: [PATCH] Bug 1429929 - Remove tabbrowser-close-tab-button binding. r=Gijs MozReview-Commit-ID: 3bIccSfVMuJ --HG-- extra : rebase_source : ac26550607713effeb9b72a39986d4f2d3b95bf2 --- browser/base/content/tabbrowser.css | 4 -- browser/base/content/tabbrowser.xml | 78 +++++++++++++---------------- 2 files changed, 34 insertions(+), 48 deletions(-) diff --git a/browser/base/content/tabbrowser.css b/browser/base/content/tabbrowser.css index 45b5af411c19..4ab59222fb4b 100644 --- a/browser/base/content/tabbrowser.css +++ b/browser/base/content/tabbrowser.css @@ -10,10 +10,6 @@ -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-arrowscrollbox"); } -.tab-close-button { - -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-close-tab-button"); -} - .tab-close-button[pinned], #tabbrowser-tabs[closebuttons="activetab"] > .tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button:not([selected="true"]), .tab-icon-image:not([src]):not([pinned]):not([crashed])[selected], diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index f514da1467a1..4932c924ff1f 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -7210,7 +7210,6 @@ event.originalTarget.localName != "box") return; - // See hack note in the tabbrowser-close-tab-button binding if (!this._blockDblClick) BrowserOpenTab(); @@ -7259,8 +7258,7 @@ * double-clicks the button, the dblclick event will be dispatched * with the tabbar as its event target (and explicit/originalTarget), * which treats that as a mouse gesture for opening a new tab. - * In this context, we're manually blocking the dblclick event - * (see tabbrowser-close-tab-button dblclick handler). + * In this context, we're manually blocking the dblclick event. */ if (this._blockDblClick) { if (!("_clickedTabBarOnce" in this)) { @@ -7741,34 +7739,6 @@ - - - - - - - // for the one-close-button case - event.stopPropagation(); - - - - event.stopPropagation(); - - - - @@ -8148,22 +8118,30 @@ + this.style.MozUserFocus = ""; + + + this.style.MozUserFocus = ""; - - - + ]]> + + +