picture-in-picture control do not always disappear
Categories
(Toolkit :: Video/Audio Controls, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: pdehaan, Assigned: shirshak55, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [foxfooding][community] [proton-foxfooding][lang=css][lang=js])
Attachments
(1 file, 1 obsolete file)
This comment is copy/pasted from a community issue filed during the Foxfooding program.
Firefox Version: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
Window Size (inner width and height): 1920x923
Steps to Reproduce
- go to a page with video
- start playing video
- start picture-in-picture mode
- double click on video in PIP mode
- stop moving/clicking mouse, wait
Expected Behavior
the PIP controls should disappear after a few seconds so we can watch video undistracted
Actual Behavior
the PIP controls do not disappear and are over the video
![]() |
Reporter | |
Comment 1•4 years ago
|
||
:rbillings says:
Unable to confirm. On MacOS, the PIP controls display when the cursor is over the PIP window and disappear immediately once the cursor is moved away from the window.
![]() |
||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
I can reproduce by double clicking the PiP windows and bring the video full screen.
This is although not a regression and appears on release currently - I although agree that per full screen conventions the PiP controls should disappear in full screen.
![]() |
Reporter | |
Updated•4 years ago
|
Comment 3•4 years ago
|
||
The severity field is not set for this bug.
:mossop, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Comment 4•4 years ago
|
||
This looks like a good first bug! I think the way to fix this is as follows:
- Alter the rule here, so that it only matches if we're not in fullscreen. I think this should do it:
body:not(:fullscreen) #controls:hover .control-item
- We need to reveal the controls if we're in fullscreen and the mouse is moving. So add
mousemove
to the list here, and then handle that event just above here, and in that handler callthis.onMouseMove(event);
. - Create that method,
onMouseMove
that we're referring to in step (2), and have it first check if we're in fullscreen with "document.fullscreenElement == document.body". If that's not true, then bail out immediately. If it is true, then callthis.revealControls(false)
to reveal the controls on mouse movement.
I think that should do it for a fix!
Assignee | ||
Comment 5•4 years ago
|
||
Thanks, I would like to submit a fix for this. THanks
Comment 6•4 years ago
|
||
Setting S4 because there is a workaround (move the mouse cursor to the edge of the screen).
Updated•4 years ago
|
Comment 7•4 years ago
|
||
Sounds good! Thanks, shirshak55! Let me know if you have any questions on how to proceed.
Assignee | ||
Comment 8•4 years ago
|
||
Assignee | ||
Comment 9•4 years ago
|
||
@mconley
No question :) Thanks.
I am currently on Linux but I think windows and macOS users can check although I am sure it's cross platform so should work.
Assignee | ||
Comment 10•4 years ago
|
||
Updated•4 years ago
|
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
bugherder |
Description
•