If PiP is in focus the keyboard combination CTRL+SHIFT+] doesn't work for closing the frame.
Categories
(Toolkit :: Video/Audio Controls, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox83 | --- | verified |
People
(Reporter: obotisan, Assigned: jack1391, Mentored)
References
(Blocks 1 open bug, Regressed 2 open bugs)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Affected versions
- Firefox 74.0b6
- Firefox 75.0a1
Affected platforms
- Ubuntu 18 x64
- Windows 10 x64
- macOS 10.11
Steps to reproduce
- Play a video from youtube.
- Use the combination CTRL+SHIFT+] from keyboard.
- Make sure that PiP is in focus and use the combination from step 2 again.
Expected result
- PiP is closed.
Actual result
- Nothing happens.
Regression range
- If it's a regression, I will try to find it as soon as possible.
Additional Notes:
- If the focus is on youtube, then the shortcut works to close the frame.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Regression range
This doesn't appear to be a regression. Checked with builds from 2019-09-06 that appears to be at the time the feature was implemented.
Reporter | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Additional note: the shortcut "Ctrl+Shift+]" works if the video is focused instead of the Pip window.
Comment 3•4 years ago
|
||
To make this work, we should include xul:key
elements in the player.xhtml
document that are the same as the ones in the main browser window. We will also need a xul:command
element that toggles picture in picture via its oncommand
attribute, similar to the one in the main browser window.
The handler should probably just close the window - it doesn't really make sense to re-enter picture-in-picture from within the player window.
Comment 4•4 years ago
|
||
To elaborate slightly:
Once you've got the <key> and <command> in player.xhtml, I'd have the <command> oncommand
attribute call something like Player.onCommand
. Then I'd implement onCommand inside of the Player object in player.js.
The onCommand method should then close the window with something like:
PictureInPicture.closePipWindow({ reason: "player-shortcut" });
and that should do it!
Assignee | ||
Comment 5•4 years ago
|
||
Comment 7•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Reproduced the initial issue using an old Nightly build 75.0a1 on Windows 10.
Verified - Fixed in latest Nightly 84.0a1 84.0a1 (2020-10-22) and Beta 83.0b3 (build id: 20201022171613) using Windows 10 and Ubuntu 18.04.
Description
•