Skip to content

Clarify what "collect documents to unfullscreen" returns#81

Merged
foolip merged 1 commit into
masterfrom
collect-documents-to-unfullscreen
May 11, 2017
Merged

Clarify what "collect documents to unfullscreen" returns#81
foolip merged 1 commit into
masterfrom
collect-documents-to-unfullscreen

Conversation

@foolip

@foolip foolip commented May 10, 2017

Copy link
Copy Markdown
Member

Given that there is an "unfullscreen a document" operation, this
algorithm can easily be assumed to be the set of documents for which
that should be called, i.e., that all of the documents returned will
exit fully.

At the beginning of the animation frame task there's no guarantee that
doc still has a fullscreen element, but later in "unfullscreen exitDoc's
fullscreen element" it is assumed to have one. Fix this with an early
return.


Preview | Diff

Given that there is an "unfullscreen a document" operation, this
algorithm can easily be assumed to be the set of documents for which
that should be called, i.e., that all of the documents returned will
exit fully.

At the beginning of the animation frame task there's no guarantee that
doc still has a fullscreen element, but later in "unfullscreen exitDoc's
fullscreen element" it is assumed to have one. Fix this with an early
return.

Test: web-platform-tests/wpt#5872
@foolip foolip force-pushed the collect-documents-to-unfullscreen branch from c7608e0 to ae151d8 Compare May 10, 2017 12:48
@foolip

foolip commented May 10, 2017

Copy link
Copy Markdown
Member Author

Updated the commit description with a pointer to web-platform-tests/wpt#5872

@annevk

annevk commented May 10, 2017

Copy link
Copy Markdown
Member

LGTM. Will let @upsuper review as well.

@upsuper

upsuper commented May 11, 2017

Copy link
Copy Markdown
Member

LGTM

@foolip foolip merged commit 0a4787a into master May 11, 2017
@foolip

foolip commented May 11, 2017

Copy link
Copy Markdown
Member Author

Volunteers to review web-platform-tests/wpt#5872?

I won't be filing any browser bugs, because nobody supports promises yet.

@foolip

foolip commented May 11, 2017

Copy link
Copy Markdown
Member Author

(I merged this first so that I can rebase #65 and because I'm confident the test change will be fine.)

foolip added a commit to web-platform-tests/wpt that referenced this pull request May 11, 2017
@foolip foolip deleted the collect-documents-to-unfullscreen branch May 11, 2017 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants