Closed Bug 342105 Opened 18 years ago Closed 18 years ago

Close button not shown if there is only one tab

Categories

(Firefox :: Tabbed Browser, defect)

2.0 Branch
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Firefox 2 beta2

People

(Reporter: t_pradeepkumar, Assigned: moco)

References

Details

(Keywords: verified1.8.1, Whiteboard: [mustfix])

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a3) Gecko/20060526 BonEcho/2.0a3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a3) Gecko/20060526 BonEcho/2.0a3

Close button is not shown on the tab if there is only one tab open with the option  "Hide the tab bar when only one website is open" is turned off.

Reproducible: Always

Steps to Reproduce:
1.Test with a fresh profile. Launch Bon Echo
2.Go to Tools ->Options ->Tabs ->Uncheck "Hide the tab bar when only one website is open" checkbox
3.Keep only one tab open.

Actual Results:  
Shows a tabbar without the X close button. Shows the "close tab" option on the tabbar context menu though.

Expected Results:  
Should show the X close button. Clicking on which should clear the tab content, the equivalent of context menu "close tab" option.
Version: unspecified → 2.0 Branch
Me too, on Linux.
I would like to add the close button is missing on the end of the tabbar also. So the only way to close is to use the tabbar context menu.
confirmed, upgraded severity, changed platform/OS to all and requested 2.0 blocking flag.

Seeing this on Firefox 2.0 beta 1 on Mac and Windows.  Bug Day topic for 07/11 is 2.0 Tabbed Browsing.  I will put the community on finding the regression window.

Note:  oddly enough, if you use the context menu to close the only open tab, the tab becomes (Untitled) as expected and gains the close button which it retains even after browsing in that tab.  But if you open another tab and close it the Single remaining tab loses its close button again.  Perhaps this is intentional, to protect the user from inadvertantly destroying that tabs history??  If so please mark this bug invalid.

Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-firefox2?
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
possibly related to bug 343422
(In reply to comment #4)
> Note:  oddly enough, if you use the context menu to close the only open tab,
> the tab becomes (Untitled) as expected and gains the close button which it
> retains even after browsing in that tab.  But if you open another tab and close
> it the Single remaining tab loses its close button again.  Perhaps this is
> intentional, to protect the user from inadvertantly destroying that tabs
> history??  If so please mark this bug invalid.
> 
I am not able to get the close button again in the manner you mentioned. But I did notice that the tab had retained its history even though it has been closed(not sure if this is the expected behavior) anyone?
If the case was to prevent the user from losing the tab history then even the context menu option should have been disabled??.
But that would leave no way to clear the last tab.
Mike: with bug 281012 fixed, it might be worth reconsidering always showing the close button (opposite to what Opera does; don't know about IE7b3). Or do you think it's too confusing that when you close a tab a new one replaces it (instead of showing no tab at all or closing the window which we both can't do/don't want)?

(In reply to comment #5)
> possibly related to bug 343422
That bug is responsible for the cases when it's actually shown - which it currently isn't expected to at all.

(In reply to comment #6)
You seem to be using Firefox 1.5.0.*. We're talking about the current development versions.
Severity: major → minor
Keywords: regressionuiwanted
> (In reply to comment #6)
> You seem to be using Firefox 1.5.0.*. We're talking about the current
> development versions.
> 
I am seeing this issue on Bon Echo/2.0a3 as mentioned in my original report. Maybe it has changed after that.I dont know about that.
Severity: minor → major
(In reply to comment #8)
Sorry. But please do know, since this has changed with the fix to bug 281012 on 2006-06-06. And while this might be a major issue to you, this might just as well be no issue at all (if it is decided to stick to the current behavior, this bug will become WONTFIXed).
Severity: major → minor
Flags: blocking-firefox2? → blocking-firefox2+
The close button should be shown, with the effect being that it disposes the tab and immediately opens a new one. Strange behaviour surely, but I think it's the easiest and most reliably understandable case.
*** Bug 343422 has been marked as a duplicate of this bug. ***
Keywords: uiwanted
Target Milestone: --- → Firefox 2 beta2
"uiwanted" just disappeared from Keywords.  BugZilla bug?
Assignee: nobody → sspitzer
Attachment #229158 - Flags: review?(sspitzer)
(In reply to comment #12)
> "uiwanted" just disappeared from Keywords.  BugZilla bug?

No, I submitted the ui design in comment 10, and removed the keyword.
Whiteboard: [mustfix]
Status: NEW → ASSIGNED
Whiteboard: [mustfix] → [mustfix][has patch][needs review sspitzer]
note, asaf has just touched this code, so there's going to be some bitrot on that patch.
Comment on attachment 229158 [details] [diff] [review]
don't treat a single tab in a special way

actually, I don't see any bit rot. 

the patch looks good, so I'm testing it now.

thanks for the patch!
Comment on attachment 229158 [details] [diff] [review]
don't treat a single tab in a special way

r=sspitzer, seeking sr= from mconnor.
Attachment #229158 - Flags: superreview?(mconnor)
Attachment #229158 - Flags: review?(sspitzer)
Attachment #229158 - Flags: review+
Whiteboard: [mustfix][has patch][needs review sspitzer] → [mustfix][has patch][needs review mconnor]
Comment on attachment 229158 [details] [diff] [review]
don't treat a single tab in a special way

So, I don't know what error either, and this might be a legacy piece from where I relocated a bunch of that code, but without knowing for sure, let's leave it in on branch (Simon, can you file a followup on this, with the goal of removing the try/catch)
Attachment #229158 - Flags: superreview?(mconnor) → superreview+
Whiteboard: [mustfix][has patch][needs review mconnor] → [mustfix][has patch][needs checkin]
Whiteboard: [mustfix][has patch][needs checkin] → [mustfix] [has patch] [checkin needed]
I'll do the check in and log the spin off bug.
fixed on the trunk.

> (Simon, can you file a followup on this, with the goal of removing
> the try/catch)

see bug #345561


Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [mustfix] [has patch] [checkin needed] → [mustfix] [fixed on trunk]
Comment on attachment 229158 [details] [diff] [review]
don't treat a single tab in a special way

seeking a= for branch
Attachment #229158 - Flags: approval1.8.1?
Comment on attachment 229158 [details] [diff] [review]
don't treat a single tab in a special way

a=drivers. Please go ahead and land this on the MOZILLA_1_8_BRANCH.
Attachment #229158 - Flags: approval1.8.1? → approval1.8.1+
fixed on the branch.

Simon, thanks again for the fix!
Keywords: fixed1.8.1
Whiteboard: [mustfix] [fixed on trunk] → [mustfix]
Status: RESOLVED → VERIFIED
*** Bug 349840 has been marked as a duplicate of this bug. ***
*** Bug 350412 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: