New issue
Advanced search Search tips

Issue 659743 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Feature



Sign in to add a comment

Restore tabs after crash, but leave as "offline", i.e. requiring a manual reload

Project Member Reported by wfh@chromium.org, Oct 26 2016

Issue description

Version: 56.0.2901.0 (Official Build) canary (64-bit)
OS: Windows 10

What steps will reproduce the problem?
(1) Open a window, and pin a few tabs.
(2) Cause a browse crash with chrome://inducebrowsercrashforrealz
(3) Reload Chrome

What is the expected output?

Pinned tabs are still there, along with the "restore tabs" dialog, and clicking "restore tabs" restores unpinned tabs.

What do you see instead?

No tabs appear, so unless you click "restore tabs" the pinned tabs are lost forever.

Please use labels and text to provide additional information.

I think pinned tabs should always restore after a crash, and the "restore tabs" button should just restore unpinned tabs. Sometimes I don't want to restore my tabs, but I always want to restore pinned tabs otherwise they wouldn't be pinned.

Note: closing the browser ignoring the "restore tabs" and re-opening it, restores the pinned tabs, which again seems strange (but possibly the right thing to do).
 
I believe we don't auto-restore any tabs (pinned or not) after a crash because if they were linked to the crash cause, it would make the browser unrecoverable.

So I think this is WAI.

It sounds like "Note: closing the browser ignoring the "restore tabs" and re-opening it, restores the pinned tabs" contradicts your earlier "unless you click "restore tabs" the pinned tabs are lost forever".  Can you clarify?

Comment 2 by wfh@chromium.org, Nov 6 2016

After a crash, if user clicks "restore tabs" then the tabs including the pinned ones are restored. This persists through a restart i.e. closing browser after this and reopening will again correctly reopen pinned tabs.

If user does not click restore tabs and instead just closes the browser without acknowledging the dialog or navigating anywhere, then reopening the browser will restore pinned tabs.

However, if the user ignores the "restore tabs" dialog and starts navigating to pages, surfing the web, then closes the browser, then the pinned tabs are lost forever. On a second restart of the browser they are also not there.

It is this third behavior that I find counter-intuitive. Sorry I wasn't clearer in my original bug report.
Cc: sky@chromium.org
OK.  I don't think we can safely auto-restore the pinned tabs after a crash, which would be the easiest way to avoid people getting into this scenario.  I agree with comment 0 that it surprises me that closing the browser immediately (ignoring the dialog) and then reopening restores the pinned tabs.  But I'm not sure that should be removed.

I don't really think that, if the user does navigate and effectively "create session state", we should restore a previous session's pinned tabs on a subsequent restart.  Then we're basically mixing state from two different sessions.  Or in other words, given that we aren't restoring pinned tabs after a crash, the other behavior you describe seems correct.

Maybe there's a way to work around all this, though.  Perhaps after a crash, we should restore all the state, but not actually load any tabs (basically, the tabs are effectively in "offline" mode), and the user can either reload/navigate/close them individually, or hit something like the existing restore button to cause them all to go ahead and load.  It seems like provides the best amount of control and dataloss prevention, without actually reloading something that might retrigger the crash bug.  Then I think we bypass all this confusion.

WDYT?  +CC sky, who still owns sessions AFAIK, for thoughts as well.

Comment 4 by sky@chromium.org, Nov 7 2016

Agree with your assessment Peter.
Components: -UI>Browser>TabStrip UI>Browser>Sessions
Labels: -Type-Bug OS-All Type-Feature
Summary: Restore tabs after crash, but leave as "offline", i.e. requiring a manual reload (was: after a browser crash, pinned tabs are not restored)

Sign in to add a comment