NEW 178409
Picture-in-Picture mode displays video incorrectly if activated from a KeyboardEvent
https://bugs.webkit.org/show_bug.cgi?id=178409
Summary Picture-in-Picture mode displays video incorrectly if activated from a Keyboa...
adam_marcus
Reported 2017-10-17 14:31:01 PDT
Created attachment 324061 [details] Code demonstrating bug Picture-in-Picture mode displays video incorrectly if activated from a KeyboardEvent Steps to Reproduce: 1. Open Safari 2. Open bug.html (attached) 3. Press Command + Option + P to activate Picture in Picture mode Expected Results: Video should be sized correctly in Picture in Picture mode with no cropping or padding Observed Results: Video is sized incorrectly; Either too big or small for the in Picture in Picture frame leading to cropping or padding respectively
Attachments
Code demonstrating bug (454 bytes, text/html)
2017-10-17 14:31 PDT, adam_marcus
no flags
Radar WebKit Bug Importer
Comment 1 2017-10-18 17:12:03 PDT
Ulrich Petri
Comment 2 2024-02-28 04:31:16 PST
The same happens when triggering PiP from a bookmarklet via keyboard shortcut. Place this bookmarklet in the "Favorites" bookmarks: `javascript:document.querySelector(%22video%22).webkitSetPresentationMode(%22picture-in-picture%22);` Then trigger via the "Favorites" shortcut (i.e. Cmd-Option-<number>). It causes the video to be scaled 1/4 on a black background. Clicking the bookmarklet works as expected.
Note You need to log in before you can comment on or make changes to this bug.