Bug 174626
| Summary: | webkitfullscreenchange event not fired on iOS for vimeo.com videos | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Antoine Quint <graouts> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bfulgham, jeremyj-wk, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=174627 | ||
Antoine Quint
Steps to reproduce:
1. go to https://vimeo.com/225249697
2. tap to start the video
3. inspect the page to find the <video> element
4. type the following in the Console: $0.addEventListener("webkitpresentationmodechanged", event => console.log(event.type))
5. type the following in the Console: $0.addEventListener("webkitfullscreenchange", event => console.log(event.type))
6. enter fullscreen
7. exit fullscreen
You'll notice that the "webkitpresentationmodechanged" event gets fired as the media enters and exits fullscreen, but "webkitfullscreenchange" isn't.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/33375684>
Antoine Quint
This bug causes https://bugs.webkit.org/show_bug.cgi?id=174627.
Antoine Quint
This is not a recent regression, the same problem exists on iOS 10.3.2.
Brent Fulgham
This is correct. webkitfullscreenchange is dispatched on element fullscreen, not on video fullscreen.
For video fullscreen we dispatch:
webkitbeginfullscreenEvent / webkitendfullscreenEvent
However, when using the new element fullscreen, you should now see webkitfullscreenchange, but not webkitpresentationmodechanged or webkitbeginfullscreenEvent