[Bug 27674] requestFullscreen should return a promise

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

--- Comment #25 from Domenic Denicola <d@domenic.me> ---
Oh, interesting.

> Quite possibly it should be defined to be followed by a microtask checkpoint then, but as a matter of implementation I think that's all now in V8, so how?

In Blink every task that's performed is followed by a microtask checkpoint:
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/web/WebKit.cpp&sq=package:chromium&type=cs&l=80&rcl=1436599777

I would imagine that an animation frame task would also be followed by one. The
question is indeed about the "update the rendering" stuff...

> It seems in HTML the "Update the rendering" stuff happens after a microtask checkpoint... So the promise would end up resolving at end of the first task after painting happens. Hmm.

I don't understand how the second sentence follows from the first. It seems
like if it happens *after* a microtask checkpoint, then the promise callbacks
will have run before painting.

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

Received on Wednesday, 15 July 2015 15:17:39 UTC