[Bug 26326] Why fully exit fullscreen when an element is removed?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26326

--- Comment #9 from Chris Pearce <cpearce@mozilla.com> ---
(In reply to Philip Jägenstedt from comment #6)
> AFAICT, Document.mozCancelFullScreen() is the only API you have exposed and
> it seems to "exit fullscreen", not "fully exit fullscreen"

Correct. But script can still "fully exit fullscreen" by removing the
fullscreen element from the document.

(In reply to Anne from comment #7)
> Chris, roc, what would be best here? Should removing the element do fully
> exit fullscreen or just exitFullscreen() on its node document? I don't
> really care either way, as long as we all agree.

I don't feel particularly strongly.

The only argument I can think of is I could imagine a kiosk or some-such
running in fullscreen mode with child iframes would not want script in the
child iframes to be able to break the top-level browser out of fullscreen mode.
So perhaps removing the fullscreen element should just exit fullscreen in the
document where the removed element resided.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 28 July 2014 09:20:20 UTC