Closed Bug 2080961 Opened 1 month ago Closed 1 month ago

Record whether the session restore we decided on actually happened

Categories

(Firefox :: Session Restore, task, P2)

task

Tracking

()

RESOLVED FIXED
161 Branch
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.

See Also: → 2071519
Depends on: 2071519
See Also: → 1042341
Assignee: nobody → sfoster

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.
Attachment #9661082 - Attachment description: WIP: Bug 2080961 - Record a telemetry event with the outcome of the session restore at startup. r?#sessionstore-reviewers → Bug 2080961 - Record a telemetry event with the outcome of the session restore at startup. r?#sessionstore-reviewers
Pushed by sfoster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/900dcf278694 https://hg.mozilla.org/integration/autoland/rev/8662f11772d6 Record a telemetry event with the outcome of the session restore at startup. r=sessionstore-reviewers,jswinarton
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: