DescriptionUpon load failure, remove sync script from pending 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 pending execution queue. We're done with
(not) executing the script and failure to remove it will cause subsequent
processing of its pending queue to see the script as having failed
to load and re-dispatch an error event.
R=tkent
BUG=503077
Committed: https://crrev.com/c85e2da47823fc952467a67e5ce7b093382a505e
Cr-Commit-Position: refs/heads/master@{#357778}
Patch Set 1 #Patch Set 2 : add release assert #Messages
Total messages: 9 (4 generated)
|