Open Bug 367777 Opened 18 years ago Updated 2 years ago

Double-clicking close widget on the rightmost tab closes only the last tab, but the close button on the second to last tab appears to be clicked

Categories

(Firefox :: Tabbed Browser, defect)

defect

Tracking

()

People

(Reporter: rick, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070122 Minefield/3.0a2pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070122 Minefield/3.0a2pre

If you have enough tabs open that you could (theoretically) close the two right-most tabs by clicking in the same spot twice, the first tab will close, but the second tab won't.  Interestingly, the second close button will be lit as though it was clicked on.

Reproducible: Always

Steps to Reproduce:
1. Open enough tabs so the the tab bar starts to squeeze the tabs to a smaller size.
2. Click on the right-most close tab button.
2a. The right-most tab closes.
3. Click on the new right-most close tab button, fast enough that Windows will send a double-click message instead of a single-click message.
3a. The close tab button is lit as though it was clicked on, but doesn't close.
Actual Results:  
The last tab closes.

Expected Results:  
The last two tabs should have closed.

Bug #187199 (which should probably be closed by now) was filed when there was still a single close tab button for all tabs.  The expected behaviour should be more clear-cut now that we have a close tab button for each tab, because we're actually clicking on *different* widgets.

Incidentally, both Visual Studio 2005 and IE7 don't care whether the click was a single or double click, although sometimes IE7 doesn't close its tabs fast enough to hit the next close button.
From bug 409215 it appears that the fact that only the last tab is closed is by design. However the [x] button on the second-to-last tab shouldn't appear clicked as it does on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

So confirming with the following adjustments to Actual results/expected results:

Actual Results:  
The last tab closes, but the close button on the second-to-last tab appears to be clicked.

Expected Results:  
The last tab closes, the close button doesn't appear to be clicked the second time.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Tabs don't close when double-clicking close widget → Double-clicking close widget on the rightmost tab closes only the last tab, but the close button on the second to last tab appears to be clicked
Version: unspecified → Trunk
OS: Windows XP → All
Hardware: x86 → All
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.