DescriptionUpon load failure, remove sync script from execution queue.
If a script element is to be loaded synchronously and executed in order,
it's queued for execution before loading. Should that load fail, the
immediate execution of the script,
https://html.spec.whatwg.org/#execute-the-script-block
should only result in an error event being dispatched.
Implementation-wise, along with signalling error, the failed script must also
be removed from the internal in-order execution queue. We're done with
(not) executing the script and failure to remove it will cause subsequent
processing of the script execution queue to see the script as having failed
to load and re-dispatch an error event.
R=haraken
BUG=503077
Committed: https://crrev.com/2cab4e1498bbaa7934125a6210f4c09003a63ba0
git-svn-id: svn://svn.chromium.org/blink/trunk@199656 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Patch Set 1 #Patch Set 2 : add test #Patch Set 3 : de-DRY #Patch Set 4 : correctly remove in-order script loader from queue #
Messages
Total messages: 17 (3 generated)
|