[whatwg] Fullscreen API and out-of-process <iframe>

There's two things the Fullscreen API does:

1. Resize the top-level browsing context's document's viewport. (I.e.
resizing the window of the browser.)
2. Change state of that document and its descendant documents.

1 needs to happen asynchronously. 2 needs to happen from a task
per-document. Potentially 2 could happen from a task per unit of
related browsing contexts, but I'm not sure if that's better. 2 also
needs to be synchronized with animation frames, once we figure out how
to define that. (How are animation frames synchronized across <iframe>

I don't really see a way to avoid having a global flag across process
boundaries. E.g. if B is nested through A (assume allowfullscreen is
set), A and B are cross-origin, and both invoke requestFullscreen(),
what happens? (YouTube embedded in some other app.)

Anyone with a good idea how we could make this work?

There's some background on some of this available here:
* https://www.w3.org/Bugs/Public/show_bug.cgi?id=26366 (It's possible
to go fullscreen with an element not in the document)
* https://www.w3.org/Bugs/Public/show_bug.cgi?id=26440 (Allow
fullscreenchange events to be synchronized with animation frames)


Received on Monday, 28 July 2014 16:04:09 UTC