Closed Bug 1777456 Opened 2 years ago Closed 2 years ago

PiP description should not overlap the player controls

Categories

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

Firefox 103
Desktop
All
defect

Tracking

()

VERIFIED FIXED
104 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- unaffected
firefox102 --- unaffected
firefox103 --- verified
firefox104 --- verified

People

(Reporter: epopescu, Assigned: molly)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-MR1-2022])

Attachments

(5 files)

Attached video 2022-06-30_13h12_48.mp4

Note

  • Please use a new Firefox profile where PiP was never toggled before

Found in

  • Firefox 103.0b2

Affected versions

  • Firefox 103.0b2
  • Nightly 104.0a1

Affected platforms

  • Windows 10 X64
  • macOS 12

Steps to reproduce

  1. Go to https://www.youtube.com/watch?v=gF1x9oupG14
  2. Hover over the PiP toggle button
  3. Observe the PiP description displayed on screen

Expected result

  • The PiP toggle should be moved to a higher position on screen or the description text should be slightly modified so that the description doesn't overlap the player controls.

Actual result

  • The PiP description, when hovering over the PiP toggle on first interaction, overlaps the player controls.
    In the video given as example, user can launch PiP window by clicking the Theater mode button from the player controls bar.
    Same issue occurs with other websites streaming videos when we resize the window size to a smaller size.
Attached image 2022-06-30_12h49_39.png
Severity: -- → S4
Has STR: --- → yes

:epopescu, if you think that's a regression, could you try to find a regression range using for example mozregression?

Regressed by: 1774688
Whiteboard: [fidefe-MR1-2022]

Set release status flags based on info from the regressing bug 1774688

:mhowell, since you are the author of the regressor, bug 1774688, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(mhowell)

This is something we'd have to be doing on a per-site basis, because we can't predict or detect the height of each player's controls, and it's hard to see this as being worth all that.

Type: enhancement → defect
Flags: needinfo?(mhowell)
Priority: -- → P3

Molly, what do you think about making the toggle are a tiny bit wider? This would remedy the control problem and fix the challenge with "Picture-in-Picture" splitting between two lines.
Old toggle has 29 symbols in the longest line in EN locale, and had a decent margin on the left of the text.

What if we did the following?
Pop out this video
More screens are more fun. Play
this video in Picture-in-Picture
while you browse.

31 char
32 char
17 char

Flags: needinfo?(mhowell)

I don't mind it being wider at all. It's tricky to make this work in general, if only because we can't predict what height anybody's controls are going to be, but making it wider than it is so that we know it's at least going to fit the height we want seems totally reasonable to me.

Flags: needinfo?(mhowell)

Awesome, thank you, Molly!

Let's go for it then, and uplift it into 103, so we can have a pretty new first-time toggle together with the subtitles settings!

With the new description strings added in bug 1774688, it's easier for the
explainer widget to run into the video controls. Making it wider should
make that problem less likely, and also make it read a bit better now.

Assignee: nobody → mhowell
Status: NEW → ASSIGNED
Pushed by mhowell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6b7fc1589f81
Add some width to the PIP explainer box. r=pip-reviewers,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch

Comment on attachment 9284781 [details]
Bug 1777456 - Add some width to the PIP explainer box. r=#pip-reviewers!

Beta/Release Uplift Approval Request

  • User impact if declined: See comment 0; picture-in-picture toggle explanatory text can run into the video controls, causing at least an ugly cosmetic issue and at worst a usability problem for either the video controls or our toggle.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See comment 0.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small CSS-only patch; the patch shouldn't be able to cause any regressions that are any worse than the one it fixes.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9284781 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9284781 [details]
Bug 1777456 - Add some width to the PIP explainer box. r=#pip-reviewers!

Approved for 103.0b8, thanks.

Attachment #9284781 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

The toggle is now wider, so it is less likely that it overlaps the player controls even on smaller resolutions and the text also reads better.
Verified on Beta 103.0b8 (20220712185923) and Nightly 104.0a1 (20220712215641)

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: