Record whether the session restore we decided on actually happened
Categories
(Firefox :: Session Restore, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: sfoster, Assigned: sfoster)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fidefe-session-restore])
Attachments
(1 external file)
Bug 1042341 added a metric recording what Session Restore decides to do at startup: restore the previous session, recover it after a crash, hold it back for the user to restore by hand, or nothing. We don't record whether that then happened.
So a startup where the user got their session back, and one where they got nothing, look the same in our data as long as the decision was the same.
There are several ways a restore can be decided on and then not delivered:
- If the first window to open is a private window or a taskbar tab, Firefox holds the session back to restore into an ordinary window later. The decision has already been recorded as a restore, and nothing records that nothing was opened - or whether the held-back session was ever restored at all.
- The restore can give up partway through, if the session data turns out to be unusable. From the outside this is indistinguishable from finishing normally.
- The restore can open windows but no tabs (bug 2071519).
We can't currently say how often any of these happen, so we can't say how often a user who expected their tabs back didn't get them.
What's needed is a companion to the decision metric, recorded once per startup, reporting what actually happened so the two can be compared. Its absence should be meaningful too: it would tell us we never got that far, because the browser was shut down, crashed, or hung during the restore.
This was anticipated when bug 1042341 was scoped - see bug 1042341 comment 6 - and deliberately left out of that bug, because an outcome can fail to arrive in ways a decision cannot.
Bug 2071519 is worth landing first. It covers the window and tab counts that would otherwise need duplicating here.
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
A new startup_session_outcome event records what came of the startup_session_decision, one of:
- the session was restored
- held back for a later window
- had no windows to open
- there was nothing to restore
The event is recorded once when that first restore completes, so a missing event means startup never got that far.
Updated•1 month ago
|
Comment 3•1 month ago
|
||
| bugherder | ||
Updated•21 days ago
|
Description
•