Re: [whatwg/fullscreen] Remove from top layer synchronously for not connected elements (#128)

@upsuper, yeah, you're right, while double `document.exitFullscreen()` is currently another way that one can end up in the asynchronous part of "exit fullscreen" with nothing in the top layer stack, fixing that would still leave this situation:

We're in nested fullscreen, two elements in the top layer stack. Removing the fullscreen element will not cause us to exit fullscreen, but still we'll end up in the asynchronous part of "exit fullscreen" removing the second element from the top layer.

@dtapuska, new idea for a fix. In the "If doc’s fullscreen element is not connected" condition, set a *fullscreenElementWasConnected* variable to false. In the async part (whether resize happened or not) just do nothing if that variable is false.

-- 
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/pull/128#issuecomment-411750862

Received on Thursday, 9 August 2018 13:26:13 UTC