[whatwg/fullscreen] Change algorithm of "collect documents to unfullscreen" (#72)

While reviewing #65, I noticed two issues in the current algorithm:
1. If the current document has more than a single fullscreen element, its browsering context container will be accidentally unfullscreened because in algorithm of "exit fullscreen", "doc" is added to "exitDocs" if "doc" has more than a single fullscreen element, and in that case, the document of the browsing context container of "doc" will be added to "exitDocs" in the next step.
2. A browsing context container can be unfullscreened accidentally by its child document even if its "iframe fullscreen flag" is set, because the steps in "exit fullscreen" doesn't check it.

This pull request changes the algorithm to collecting all documents which we are going to call "unfullscreen an element" on.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fullscreen/pull/72

-- Commit Summary --

  * Add new concept "simple fullscreen document"
  * Change collect documents to unfullscreen algorithm

-- File Changes --

    M fullscreen.bs (36)
    M fullscreen.html (31)

-- Patch Links --

https://github.com/whatwg/fullscreen/pull/72.patch
https://github.com/whatwg/fullscreen/pull/72.diff

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

Received on Friday, 6 January 2017 14:13:36 UTC