From e36b155053761f905e4ec0a6aa3f211bed66147d Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Thu, 13 Jul 2006 06:46:57 +0000 Subject: [PATCH] Bug 343628 - Double-clicking a close button of a tab shouldn't open a new tab. r=robert. --- toolkit/content/widgets/tabbrowser.xml | 64 +++++++++++++++---- toolkit/content/xul.css | 9 +-- .../pinstripe/global/globalBindings.xml | 4 +- 3 files changed, 59 insertions(+), 18 deletions(-) diff --git a/toolkit/content/widgets/tabbrowser.xml b/toolkit/content/widgets/tabbrowser.xml index cc9405ab1147..23e761e402bf 100644 --- a/toolkit/content/widgets/tabbrowser.xml +++ b/toolkit/content/widgets/tabbrowser.xml @@ -25,6 +25,7 @@ - Mike Connor - Peter Parente - Giorgio Maone + - Asaf Romano - - Alternatively, the contents of this file may be used under the terms of - either the GNU General Public License Version 2 or later (the "GPL"), or @@ -194,6 +195,10 @@ null + + false + + @@ -1456,7 +1461,8 @@ - + @@ -2580,6 +2584,51 @@ + + + + + + // for the one-close-button case + event.stopPropagation(); + + + + - - - .tabbrowser-tab > .tab-close-button, +.tabs-closebutton-box > .tabs-closebutton { + -moz-binding: url("chrome://global/content/bindings/tabbrowser.xml#tabbrowser-close-tab-button"); +} + .tab-close-button { display: none; } @@ -639,10 +644,6 @@ tab { display: none; } -.tabs-closebutton-box > .tab-close-button { - display: -moz-box; -} - .tabbrowser-tabs[disablebackgroundclose="true"] > .tabbrowser-tab:not([selected="true"]) > .tab-close-button { display: none; } diff --git a/toolkit/themes/pinstripe/global/globalBindings.xml b/toolkit/themes/pinstripe/global/globalBindings.xml index 4d7a60c06d49..0833cd64ac05 100644 --- a/toolkit/themes/pinstripe/global/globalBindings.xml +++ b/toolkit/themes/pinstripe/global/globalBindings.xml @@ -63,9 +63,7 @@ - +