W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] Fullscreen revision I

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 25 Oct 2011 13:04:21 +0900
Message-ID: <op.v3v2xjjw64w2qv@annevk-macbookpro.local>
On Tue, 25 Oct 2011 00:32:43 +0900, Glenn Maynard <glenn at zewt.org> wrote:
> Doing this synchronously means nobody can ever implement ask-first.   
> Don't permanently lock everyone into a permission scheme with known  
> problems.

Since the events are not dispatched synchronously I think we should always  
be able to change.

> It also seems odd that fullscreenElement is set synchronously, but
> fullscreenchange events are fired asynchronously.  It would make more  
> sense to do them together, from the same task (set all  
> fullscreenElements first, then fire all fullscreenchange events).

1) You want them to be set so when the UA does its transition it knows  
what to transition to.

2) You cannot set them all from the same task because that would not work  
for non same-origin documents.

> This is much more complicated for developers.  If fullscreenEnabled can
> change, you have to monitor it to change UI (eg. show/hide fullscreen
> buttons).
> How is this simpler than just making requestFullscreen switch the  
> fullscreen element?

If you allow changing the fullscreen element you need to track what  
documents changed, dispatch events as appropriate, and you keep the  
problem that exiting exits everything which is quite odd.

Anne van Kesteren
Received on Monday, 24 October 2011 21:04:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC