Re: [whatwg/fullscreen] What should happen if an element is moved to another document right after requestFullscreen (#33)

In Gecko, we handle fullscreen request in document, and the document checks whether the element's owner doc is itself as part of the fullscreen element ready check.

I think the main issue of allowing element to go fullscreen in a different document is that, at the moment of "the next animation frame task", the window of the previous document may have been made fullscreen, and the new document may not in the same window (or same tab) as the original document, which would confuse the browser.

It is probably fine enough to say it should fail if the two documents are in different top-level browsing contexts. But I'd prefer making it simple (and keep our current impl as-is :) via just saying it should fail when the element is moved to a different document.

-- 
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/33#issuecomment-250625838

Received on Friday, 30 September 2016 00:03:40 UTC