Closed Bug 1299065 Opened 8 years ago Closed 8 years ago

Telemetry to support background video decoder suspend: invisible elements in the foreground should also be recorded

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: kaku, Assigned: kaku)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The HTMLMediaElement::NotifyOwnerDocumentActivityChangedInternal() calls HTMLMediaElement::HiddenVideoStart() to record  VIDEO_HIDDEN_PLAY_TIME_MS, VIDEO_HIDDEN_PLAY_TIME_PERCENTAGE and VIDEO_INFERRED_DECODE_SUSPEND_PERCENTAGE for video elements in background tabs. 

We should also do it for invisible video elements in the foreground tab via HTMLMediaElement::OnVisibilityChange().
Assignee: nobody → kaku
Blocks: 1276556
Depends on: 1285419, 1287987, 1293145
OS: Unspecified → All
Hardware: Unspecified → All
Comment on attachment 8786251 [details]
Bug 1299065 - invisible elements in the foreground should also be recorded;

https://reviewboard.mozilla.org/r/75260/#review73110

Good catch, thank you.
Attachment #8786251 - Flags: review?(gsquelart) → review+
Thanks for the review!

Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2b9b774f0472&selectedJob=26642732
The fails should have nothing to do with this change.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/06bf533a2bdd
invisible elements in the foreground should also be recorded; r=gerald
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/06bf533a2bdd
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
For reference, I backed this bug out and then relanded a tweaked version (to handle the difference in the visibility api that this patch use). Bug 1284350 is where the back out and relanding happened. I also plan to request uplift of those patches to aurora.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: