Bug 280837

Summary: HTMLVideoElement#requestPictureInPicture does not respect transient gesture activation
Product: WebKit Reporter: Jim <jzoll>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: jer.noble, jzoll, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

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.