New issue
Advanced search Search tips

Issue 722833 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Task



Sign in to add a comment

Can [TabModel closeAllTabs] write an empty session to disk?

Project Member Reported by rohitrao@chromium.org, May 16 2017

Issue description

[TabModel closeAllTabs] calls close in a loop, which is the same call that is used to close a tab in normal operation.

Calls to close should schedule a new session to be written to disk after a delay.  Most of the time, the app shuts down before anything is written out.  But is it possible for a heavily-loaded device to take so long that the write executes?

If it's possible to lose tabs during shutdown, we should fix this.  We should consider fixing it anyways, because tearing down a TabModel shouldn't update the saved session file at all.
 
Components: Internals
Components: -Internals UI>Browser>Sessions
Labels: -Type-Bug Type-Task

Sign in to add a comment