Closed Bug 1754974 Opened 3 years ago Closed 3 years ago

The temetry event saw_toggle with firstTime attribute is only recorded after clicking the PiP on Youtube videos

Categories

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

Desktop
All
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox99 --- verified

People

(Reporter: danibodea, Unassigned)

References

Details

(Whiteboard: [fidefe-MR1-2022])

Note

  • According to the Nimbus Experiment Brief for PiP, when the user "interacts with the video" in a fresh profile, a Telemetry event pictureinpicture.saw_toggle with an attribute firstTime should be recorded, however, this event will only be displayed in the about:telemetry after the user CLICKS on the PiP button/toggle.

Affected versions

  • Nightly v99.0a1

Affected platforms

  • all

Steps to reproduce

  1. Launch browser with a new profile. (media.videocontrols.picture-in-picture.video-toggle.has-used = false)
  2. Open any video (https://www.youtube.com/watch?v=kaUemcqIQ-k)
  3. Interact with the video (play/pause/hover the PiP button/toggle); Make sure that the PiP button/toggle gets displayed.
  4. Go to about:telemetry and search events for "pictureinpicture"
    Observe: A scalar named "pictureinpicture#saw_toggle#toggle" gets incremented at every appearance of the PiP button/toggle (when hovering a video).

Expected result

  • An event should be displayed like:
    122650 pictureinpicture saw_toggle toggle null {"firstTime": "true"}

Actual result

  • No PiP events are being displayed on the Telemetry page.
  1. Go back to the Youtube video tab and click the PiP toggle.
  2. Go to about:telemetry and search events for "pictureinpicture"
    Observe: Only now, an event is being shown like:
    122650 pictureinpicture saw_toggle toggle null {"firstTime": "true"}

Regression range

  • Not a recent regression.

Additional notes

  • It appears that it is expected to record the "pictureinpicture saw_toggle" event the second it gets displayed, when in fact, it only gets recorded after clicking the PiP button/toggle. It is yet unknown if this behavior is correct or acceptable.
  • Feel free to close the issue if invalid. Let me know if you need the description modified.
  • This issue also occurs in the case of Amazon Prime and Twitch videos.
Blocks: 1749585

I can confirm that this issue no longer occurs on Nightly v99.0a1 from 2022-02-23 with youtube on Windows 10, Mac OS 11 and Ubuntu 20.
I will assume that this was fixed along with bug 1754984.

Ania, Can you set it fixed so I can verify it? Thanks.

Flags: needinfo?(amininkova)
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(amininkova)
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Whiteboard: [fidefe-MR1-2022]
You need to log in before you can comment on or make changes to this bug.