Bug 280837
| Summary: | HTMLVideoElement#requestPictureInPicture does not respect transient gesture activation | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jim <jzoll> |
| Component: | Media | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/137233559>