[Webkit-unassigned] [Bug 89102] document.write of scripts that also document.write sometimes writes async

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 22 18:36:04 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=89102





--- Comment #10 from Elliott Sprehn <esprehn at gmail.com>  2012-06-22 18:36:02 PST ---
This race condition has been really difficult to debug. I've traced it down to the parser being paused, so HTMLContructionSite queues the node creation which then happens later.

This seems to be the result of runScriptsForPausedTreeBuilder() which called HTMLScriptRunner->execute which then returned false. We then do setPaused(true) in HTMLDocumentParser::canTakeNextToken.

Super confusingly if I set breakpoints at ::execute, setPaused and ::canTakenNextToken I can get my above example to print "FailureFailure" (even if I step through the breakpoints very fast) so I don't quite understand how setTimeout() in JS and the scheduling code in the parser interacts.

Adam can you take a look?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list