Closed
Bug 786982
Opened 12 years ago
Closed 12 years ago
The user should be able to close the last remaining tab
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox19 verified, firefox20 verified)
VERIFIED
FIXED
Firefox 19
People
(Reporter: paul, Unassigned)
References
Details
Attachments
(3 files)
6.33 KB,
patch
|
mfinkle
:
review+
lucasr
:
review-
|
Details | Diff | Splinter Review |
5.58 KB,
patch
|
mfinkle
:
review-
|
Details | Diff | Splinter Review |
2.29 KB,
patch
|
lucasr
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
As a user, I'm frustrated to not be able to get rid of the last tab. Let's imagine I want to look for a ring for my fiancé. Once my browsing session is done, I want to close the last tab that shows a big fat embarrassing ring. The only way I can do that is to load a new random page. Closing the last page could load about:home. Or maybe go to a tab-less browser.
> Or maybe go to a tab-less browser.
This is what Chrome does. I think this is the best way to do it but loading a home page would also be ok.
Comment 4•12 years ago
|
||
This patch closes the last tab and opens about:home. We loadUrl() about:home, when we know we are about to close the last tab. If the only tab remaining is about:home, we close it and open it again. Do we want this behavior? Or block the ability to close the tab when the only present tab is about:home?
Attachment #678476 -
Flags: review?(mark.finkle)
Comment 5•12 years ago
|
||
I somehow feel this to be better. We don't close "about:home" tab in this case.
Attachment #678490 -
Flags: review?(mark.finkle)
Updated•12 years ago
|
Attachment #678476 -
Attachment description: Patch → Patch: Option 1
Comment 6•12 years ago
|
||
Part of the reason people want to be able to close the last tab is to remove all session history in the tab (back/forward session). If we don't realy close the last tab if it's about:home, then people could use BACK to go back to the previous webpage in the tab. We do not want to allow that to happen. Therefore, I will r- the "Option 2" patch and review the "Option 1" patch
Comment 7•12 years ago
|
||
Comment on attachment 678490 [details] [diff] [review] Patch: Option 2 This does not remove the session history, so it's not the best option.
Attachment #678490 -
Flags: review?(mark.finkle) → review-
Comment 8•12 years ago
|
||
Comment on attachment 678476 [details] [diff] [review] Patch: Option 1 This looks OK to me. We might want to tweak this by avoiding any unneeded animations, if we can help it. That can be a new bug though.
Attachment #678476 -
Flags: review?(mark.finkle) → review+
Comment 9•12 years ago
|
||
Comment on attachment 678476 [details] [diff] [review] Patch: Option 1 Review of attachment 678476 [details] [diff] [review]: ----------------------------------------------------------------- You're removing a bit too much code for the close button handling. We hide the close button while swiping, this code should be kept.
Attachment #678476 -
Flags: review-
Comment 10•12 years ago
|
||
I would like the "close and reopen" behaviour more, because its visible feedback "the browser was empty, now everything is in a new session". Even better would be some "empty browser" behaviour, maybe with an additional option to open about:blank instead of about:home
Comment 11•12 years ago
|
||
Pushed with r+ from mfinkle: https://hg.mozilla.org/integration/mozilla-inbound/rev/3e84fd8b78aa I don't get any mail notification for the other r-. I'll add as a followup.
Updated•12 years ago
|
Whiteboard: [leave open]
Comment 12•12 years ago
|
||
This patch adds back the close button code for animation.
Attachment #678820 -
Flags: review?(lucasr.at.mozilla)
Comment 14•12 years ago
|
||
Comment on attachment 678820 [details] [diff] [review] Patch: Make close button invisible Review of attachment 678820 [details] [diff] [review]: ----------------------------------------------------------------- Nice, thanks.
Attachment #678820 -
Flags: review?(lucasr.at.mozilla) → review+
Comment 15•12 years ago
|
||
One comment on today's Nightly: Closing the last tab should probably close the tabs tray as well. It feels awkward switching to about:home, but still leaving the tray open.
Comment 16•12 years ago
|
||
Filed follow up bug 811738 for what I just said :) As you were.
Comment 18•12 years ago
|
||
(In reply to Brian Nicholson (:bnicholson) from comment #17) > http://hg.mozilla.org/integration/mozilla-inbound/rev/2d096e0ac89e If this part does not make the merge, we should track it for uplift
Comment 20•12 years ago
|
||
Sriram, the second part of this didn't make Fx19 - see comment 18.
Status: NEW → RESOLVED
Closed: 12 years ago
status-firefox19:
--- → affected
Flags: needinfo?(sriram)
Resolution: --- → FIXED
Whiteboard: [leave open]
Target Milestone: --- → Firefox 19
Comment 22•12 years ago
|
||
Comment on attachment 678820 [details] [diff] [review] Patch: Make close button invisible [Approval Request Comment] Bug caused by (feature/regressing bug #): -- User impact if declined: Close button will be animating. Testing completed (on m-c, etc.): Landed in m-c on 11/20 Risk to taking this patch (and alternatives if risky): Very low. String or UUID changes made by this patch: None.
Attachment #678820 -
Flags: approval-mozilla-aurora?
Comment 23•12 years ago
|
||
Comment on attachment 678820 [details] [diff] [review] Patch: Make close button invisible low risk, aurora approved.
Attachment #678820 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•12 years ago
|
Comment 25•12 years ago
|
||
The last tab can be closed both on the latest Aurora and Nightly builds. Closing bug as verified fixed on: Firefox 20.0a1 (2012-12-06) Device: Galaxy Tab2 7" OS: Android 4.0.3
Comment 26•12 years ago
|
||
TCs added in Moztrap with new option for following versions: 19, 19 tablets, 20 , 20 tablets https://moztrap.mozilla.org/manage/case/5881 - Close the last remaining tab https://moztrap.mozilla.org/manage/case/5882 - Closing last tab will open about:home
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•