Closed Bug 1211348 Opened 9 years ago Closed 7 years ago

Don't restore private tabs after killing the app if "Close Private tabs when leaving private browsing" is enabled

Categories

(Firefox for iOS :: General, defect, P1)

All
iOS
defect

Tracking

()

VERIFIED FIXED
Tracking Status
fxios 10.0 ---
fxios-v10.0 --- verified
fxios-v11.0 --- verified

People

(Reporter: csuciu, Assigned: justindarc)

References

(Blocks 1 open bug)

Details

(Keywords: privacy, Whiteboard: [PrivateBrowsing])

Attachments

(1 file)

1. Go to Firefox settings and enable "Close Private tabs when leaving private browsing". 
2. Open a few private tabs
2. Kill Firefox from the app switcher
3. Open Firefox

Expected: The private tabs should not be restored because the user is leaving private browsing when Firefox is closed

Actual: The private tabs are restored
Blocks: pbmode
Assignee: nobody → sleroux
Status: NEW → ASSIGNED
Not sure if we want to do this. Chrome doesn't close the tabs when the app is backgrounded and keep them open. I think the experience would be too jarring for the user to come back to the app and have everything change. For example, if the user was in a private tab and they come back from being backgrounded, what do we show?
Flags: needinfo?(dhenein)
Flags: needinfo?(dhenein)
Summary: Don't restore private tabs if "Close Private tabs when leaving private browsing" is enabled → Don't restore private tabs after killing the app if "Close Private tabs when leaving private browsing" is enabled
Whiteboard: [nicetohave1.1]
Not sure if this is something we want to address for 2.0? Adding :tecgirl as well.
Flags: needinfo?(randersen)
Keywords: privacy
Maybe remove this option and leave PB mode instead?
Assignee: sleroux → randersen
Rank: 7
Hardware: Other → All
Whiteboard: [nicetohave1.1]
Leave the setting, kill the tabs—if we indeed can tell the difference between a crash and a hard kill. If crash, offer to restore with dialog on next session. Do not offer to restore on kill.
Flags: needinfo?(randersen)
On crash with "Close Private tabs when leaving private browsing" enabled:


Oops! Firefox crashed
Would you like to restore your private tabs?

[YES][NO]
Assignee: randersen → sleroux
Would we show this as an additional dialog after the current 'Restore Tabs' after a crash one? If "Close Private tabs when leaving private browsing" is disabled, we should restore all tabs and if it is enabled we show the 'Restore Private Tabs' one as well?
(In reply to Stephan Leroux [:sleroux] from comment #6)
> Would we show this as an additional dialog after the current 'Restore Tabs'
> after a crash one? If "Close Private tabs when leaving private browsing" is
> disabled, we should restore all tabs and if it is enabled we show the
> 'Restore Private Tabs' one as well?

My assumption is that we're providing this prompt in case it's one of the tabs causing the crash, correct?
Are we able to determine which tab caused the crash?
If so, then we should not load that tab and load the rest automatically, and prompt for Private tabs.

If not, then no, two dialogs is too much. Prompt to restore normal tabs. If they have the option to Close Private tabs enabled then kill those tabs. An expectation of loss should be apparent.
Assignee: sleroux → nobody
Status: ASSIGNED → NEW
Whiteboard: [PrivateBrowsing]
Assignee: nobody → jdarcangelo
Blocks: 1386874
Status: NEW → ASSIGNED
Priority: -- → P1
Attached file GitHub Pull Request
Attachment #8920382 - Flags: review?(fpatel)
Attachment #8920382 - Flags: review?(fpatel) → review+
Verifying as fix on master 9653a62c5 & 10.0(7233).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: