Bug 189052
Summary: | onwebkitfullscreenchange present, but not firing in iOS 12 when target is video element | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jack Wellborn <w0nka> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | jeremyj-wk, jer.noble, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | iPhone / iPad | ||
OS: | Other |
Jack Wellborn
Hello,
iOS 12 Safari/Webkit introduces support for the `document.onwebkitfullscreenchange`. While this event seems to work when non-video elements request fullscreen, it does not work with the `<video>` element. Here is an example that requests full screen on a `<div>` and `<video>`, and console.logs when `onwebkitfullscreenchange` is fired: https://jackwellborn.com/playground/videoFullScreenTest.html. The example fires `onwebkitfullscreenchange` for both the div and video in Desktop Safari Technology Preview (Release 63 (Safari 12.1, WebKit 13607.1.2.1)) as expected, but only fires it for the div in iOS 12 Public Beta 8 or 9. Let me know if you need any more clarification or have follow questions.
Thanks.
~Jack
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/43826046>
Jer Noble
Jack, as a workaround, you can listen for the legacy 'webkitbeginfullscreen' and 'webkitendfullscreen' events.
Jack Wellborn
Thanks Jer. That is exactly what we are doing.
Jack Wellborn
Is there anyway I can track bugs I submit when they go into Radar?
Jer Noble
Jack, the work will happen here in this Bugzilla bug, so this is the best place to track your issue.
Lucas Forschler
Mass move bugs into the DOM component.