Closed Bug 1817042 Opened 2 years ago Closed 2 years ago

Collect telemetry on how long originating tabs are in the background, and how long they're in the foreground

Categories

(Toolkit :: Picture-in-Picture, task)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: mconley, Assigned: mconley)

Details

Attachments

(3 files)

Product is curious about how often users stay on the same tab on which they've already PiP'd out a video. They want to know if these sorts of tabs tend to stay more in the background, or be in the foreground.

Notably, we cannot use visibilityState or detect whether or not the window is occluded,
as we currently force the platform to keep any windows that are PiP'd as "visible" in
the platform layer in order to keep things like subtitles working properly. So this
really only measures the time in the foreground of tabs, but cannot tell if the user
foregrounds a completely separate application to occlude the originating window.

Assignee: nobody → mconley
Status: NEW → ASSIGNED
Attachment #9317974 - Attachment description: Bug 1817042 - Add foreground / background tab telemetry for Picture-in-Picture. data-review=jhirsch, r?mhowell! → Bug 1817042 - Add foreground / background tab telemetry for Picture-in-Picture. data-review=darcese, r?mhowell!
Attachment #9318193 - Flags: data-review?(darcese)
Attachment #9318199 - Flags: data-review+
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1cfe650e2c49 Add foreground / background tab telemetry for Picture-in-Picture. data-review=darcese, r=mhowell
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: