Closed Bug 1619979 Opened 4 years ago Closed 4 years ago

Picture-in-Picture toggle appears on videos that are laid out with small dimensions

Categories

(Toolkit :: Video/Audio Controls, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla77
Tracking Status
firefox77 --- verified

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. Have a Tidal account
  2. Browse to https://listen.tidal.com/view/pages/mymusic_recommended_videos
  3. Choose any video to play
  4. Click "Minimized" in the top-left corner
  5. Hover your mouse over the mini player in the bottom left part of the screen

ER:

No PiP toggle, since the video is so small.

AR:

The PiP toggle appears.

The problem here is that the video element has videoHeight and videoWidth exceeding our heuristic of 160px (140px on Nightly), but is laid out with smaller dimensions (~113px × 64px).

We should use the layout size of the video as part of our heuristics, and not just the videoHeight and videoWidth dimensions.

Blocks: 1619889
Priority: -- → P3
Assignee: nobody → mconley
Status: NEW → ASSIGNED
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4184cfc09c3a
Don't show PiP toggle on videos that have been laid out with small dimensions. r=mstriemer
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Flags: qe-verify+

Reproduced the initial issue in Release version 76.0 using Windows 10.
Verified - Fixed in Beta 77.0b2 (build id: 20200505174119) and latest Nightly 78.0a1 (build id: 20200507085231) on Windows 10 and Ubuntu 18.04.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressions: 1646311
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: