DescriptionDCHECK: load event is dispatched after executeScript() iff m_isExternalScript
Currently, ScriptLoader::executeScript() mostly corresponds to
"execute a script block" in the spec.
https://html.spec.whatwg.org/#execute-the-script-block
However, its Steps 2 and 8 (dispatching error and load events,
respectively) are handled in the caller of executeScript().
As a preparation for moving the code for Steps 2 and 8 into
executeScript(), this CL adds DCHECK()s that confirms all the callers
of executeScript() dispatches a load event if and only if the script
is from an external file, as the spec says.
BUG=686281
Patch Set 1 #Patch Set 2 : Add more DCHECK #
Total comments: 1
Patch Set 3 : Rebase #
Messages
Total messages: 16 (12 generated)
|