Closed Bug 835022 Opened 13 years ago Closed 13 years ago

Do not switch to private tabs automatically

Categories

(Firefox for Android Graveyard :: General, defect)

20 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox20 verified, firefox21 verified, firefox22 verified)

VERIFIED FIXED
Firefox 22
Tracking Status
firefox20 --- verified
firefox21 --- verified
firefox22 --- verified

People

(Reporter: micmon, Assigned: bnicholson)

References

Details

Attachments

(1 file)

Open just a normal tab and close it: the homescreen will show. Now open a normal tab and a private tab, then go to the normal tab and close it. Firefox automatically switches to the only remaining tab, which is the private one. IMHO this is bad, it should show the home screen just as before and only switch to the other tab set if you explictly do so.
Assignee: nobody → sriram
The switch also happens if there are other normal tabs remaining but you close the lowest one. It switches to the "next" tab, which happens to be the private one.
What's the expected behavior here?
Flags: needinfo?(ibarlow)
I've noticed this too. We should always try to keep users in their current mode, and never surprise them by switching into Private without their explicitly making that change. Expected behaviours: Action: Close one of 2 or more normal tabs Result: Switch to next normal tab in list Action: Close last normal tab Result: Load about:home in a normal tab Action: Close one of 2 or more private tabs Result: Switch to next normal tab in list Action: Close last private tab Result: Load about:home in a normal tab NOTE: this last behaviour is inconsistent, because we are assuming in this case that a user's intent in closing the last remaining private tab is to cover their tracks and not leave evidence of whatever they were doing, not even a blank private tab.
Flags: needinfo?(ibarlow)
We should be consistent when accepting URL intents as well.
Assignee: sriram → bnicholson
Status: NEW → ASSIGNED
Attachment #714171 - Flags: review?(mark.finkle)
Attachment #714171 - Flags: review?(mark.finkle) → review+
>> status-firefox21: --- → fixed It's still affected
That testTabsTray failure shouldn't be an issue anymore since that test case was disabled. Try results: https://tbpl.mozilla.org/?tree=Try&rev=6bfa1dc46137 https://hg.mozilla.org/integration/mozilla-inbound/rev/cb2ccaf0b894
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Argh, I got this bug mixed up with bug 828349, so this one isn't fixed yet.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
To clarify, I accidentally landed the patch for bug 828349 with this bug number. Comment 9 should still hold true - pushing to try to verify that the correct patch works fine: https://tbpl.mozilla.org/?tree=Try&rev=90483b71e5b4
Comment on attachment 714171 [details] [diff] [review] Switch to correct tab when a tab is closed [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 582244 (pb) User impact if declined: closing a normal tab can switch to a private tab, which has possible privacy implications Testing completed (on m-c, etc.): m-i Risk to taking this patch (and alternatives if risky): low risk String or UUID changes made by this patch: none
Attachment #714171 - Flags: approval-mozilla-beta?
Attachment #714171 - Flags: approval-mozilla-aurora?
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Comment on attachment 714171 [details] [diff] [review] Switch to correct tab when a tab is closed low risk and easy to verify - approving for uplift.
Attachment #714171 - Flags: approval-mozilla-beta?
Attachment #714171 - Flags: approval-mozilla-beta+
Attachment #714171 - Flags: approval-mozilla-aurora?
Attachment #714171 - Flags: approval-mozilla-aurora+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: