From b8ff11fdff0a3d78a2cf850913cd3db48f1fb7be Mon Sep 17 00:00:00 2001 From: "asqueella%gmail.com" Date: Sun, 29 Apr 2007 15:28:10 +0000 Subject: [PATCH] Bug 378344 - Triple clicking the tabbar can open a tab and close it again right away p=Dao Gottwald r=mano git-svn-id: svn://10.0.0.236/trunk@225223 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/content/widgets/tabbrowser.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mozilla/toolkit/content/widgets/tabbrowser.xml b/mozilla/toolkit/content/widgets/tabbrowser.xml index 5eb2259ad4e..c5c5c386ed4 100644 --- a/mozilla/toolkit/content/widgets/tabbrowser.xml +++ b/mozilla/toolkit/content/widgets/tabbrowser.xml @@ -3163,11 +3163,14 @@ * can be dispatched on an in-tab close button is when it is shown * after the first click (i.e. the first click event was dispatched * on the tab). This happens when we show the close button only on - * the active tab; in which case, it is most likely that the close - * button area has been accidentally clicked, therefore we do not - * close the tab. See bug 352021 for no details. + * the active tab. (bug 352021) + * The only sequence in which a third click event can be dispatched + * on an in-tab close button is when the tab was opened with a + * double click on the tabbar. (bug 378344) + * In both cases, it is most likely that the close button area has + * been accidentally clicked, therefore we do not close the tab. */ - if (event.detail == 2) + if (event.detail > 1) return; tabbedBrowser.removeTab(bindingParent);