[whatwg/fullscreen] requestFullscreen() + moving pending element can fire fullscreenerror but leave browser in fullscreen (#88)

As noted by @upsuper in https://github.com/whatwg/fullscreen/pull/87#issuecomment-301746317:
> when this happens, the browser window would end up being in fullscreen state while the content is not?

A test which could be adapted to cover this is https://github.com/w3c/web-platform-tests/blob/5e1a3b80cea8d36774d2afd78b29a74792e9f15a/fullscreen/api/element-request-fullscreen-and-move-to-iframe-manual.html

Invoking "exit fullscreen" wouldn't be enough to recover, because it is a no-op when there is no fullscreen element. Rather, 'resize something's viewport to its "normal" dimensions' would be needed.

-- 
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/88

Received on Tuesday, 16 May 2017 11:33:14 UTC