Chromium Code Reviews
DescriptionDelay dispatching DOMContentLoaded event to next event loop.
Before this CL, DOMContentLoaded was triggered synchronously after parsing has finished. This behavior doesn't follow the HTML spec.
12.2.6 The end. Step 4: https://html.spec.whatwg.org/multipage/syntax.html#the-end
This CL makes Blink follow the HTML spec by having
Document::finishedParsing() defer dispatching DOMContentLoaded
by using a oneshot timer.
BUG=425790
Patch Set 1 #Patch Set 2 : test passes / content_shell explodes #Patch Set 3 : 8% of LayoutTest fails #Patch Set 4 : hmm #
Messages
Total messages: 3 (1 generated)
|
|||||||||||||||||||||||||||||||||||||