[whatwg/fullscreen] Internal iframe fullscreen event missing? (#179)

Sorry if this issue is out of place but it seemed a very core issue and I couldn't find anything useful on this issue anywhere else.

I'm working on implementing fullscreen methods for the Vimeo player API, https://github.com/vimeo/player.js

The first obstacle was that `playerElementInIframe.requestFullscreen()` can't be called cross-site via postMessage from the website that embeds the player because it requires a short running task from a user gesture. postMessage took too long I guess. 

This was solved by doing `iframe.requestFullscreen()`, so the website (parent) directly goes fullscreen via the iframe.

The question/concern that I had is why is there no `fullscreenchange` event fired on the iframe's document? The website (parent) does receive this event but I imagined the iframe would also get some information as it's made fullscreen.

Here is an example, https://jsfiddle.net/wgb1k0ma/

Pressing the fullscreen button makes the iframe go fullscreen but internally the player is not aware of its fullscreen state which is seen by the bottom right corner icon button which also doesn't work anymore.

Is this intended behavior?

Thank you for reading.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/179

Received on Wednesday, 8 July 2020 20:42:22 UTC