Open Bug 1663719 Opened 4 years ago Updated 3 years ago

Picture-in-Picture toggle variations sometimes pause the video when clicking on them

Categories

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

defect

Tracking

()

People

(Reporter: mconley, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. Set media.videocontrols.picture-in-picture.video-toggle.mode to 1.
  2. Visit https://www.cbc.ca/player/play/1785729091945
  3. Click on the "Play" button on the video
  4. Hover the video to reveal the toggle, and then click on it:

ER:

PiP should open and the video should continue playing.

AR:

PiP opens and the video pauses.

I think the code that detects and suppressed the click event isn't working exactly as intended.

This makes it easier to avoid a race where layout of the toggle was sometimes
out of date during the mouseup and click events because the underlying UAWidget
had changed. Instead, we wait until the last event (mouseup in the case that
the mousedown occurred on a different target, click in the case that the
mousedown occurred on the same target), and only then trigger Picture-in-Picture.

Assignee: nobody → mconley
Status: NEW → ASSIGNED
Attachment #9175289 - Attachment description: Bug 1663719 - Only toggle Picture-in-Picture from the mouseup or click events, rather than pointerdown. r?mstriemer! → Bug 1663719 - Only toggle Picture-in-Picture from the mouseup or click events, rather than pointerdown. r?Gijs!
Severity: -- → S3
Priority: -- → P3
Assignee: mconley → nobody
Status: ASSIGNED → NEW
Component: Video/Audio Controls → Picture-in-Picture
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: