NEW280837
HTMLVideoElement#requestPictureInPicture does not respect transient gesture activation
https://bugs.webkit.org/show_bug.cgi?id=280837
Summary HTMLVideoElement#requestPictureInPicture does not respect transient gesture a...
Jim
Reported 2024-10-03 11:51:02 PDT
The Picture-in-Picture API specification (https://fullscreen.spec.whatwg.org/#api) describes "transient activation" as a sufficient condition for permitting the usage of HTMLVideoElement#requestPictureInPicture, but Safari appears to only permit usage of this API when _currently processing_ a gesture rather than checking for transient activation. For example, given the following DOM structure: <webpage src="https://foo.com"> <iframe src="https://bar.com" allow="picture-in-picture"> <video .../> </iframe> </webpage> ...a gesture activation within the root page (foo.com) cannot be used (via <iframe> #postMessage communication) to call Picture-in-Picture APIs in the child frame (bar.com). This is unexpected.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-10-03 14:37:12 PDT
Note You need to log in before you can comment on or make changes to this bug.