Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1042)

Issue 1263743002: Upon load failure, remove sync script from execution queue. (Closed)

Created:
5 years, 4 months ago by sof
Modified:
5 years, 3 months ago
Reviewers:
haraken, tkent
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis, hiroshige
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Upon 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -5 lines) Patch
A LayoutTests/fast/dom/HTMLScriptElement/script-sync-onerror-not-repeated.html View 1 1 chunk +47 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/HTMLScriptElement/script-sync-onerror-not-repeated-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/misc/resources/slow-nonexisting-script.php View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/misc/resources/success.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/http/tests/misc/script-sync-slow-scripts-onerror.html View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/misc/script-sync-slow-scripts-onerror-expected.txt View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/dom/ScriptRunner.cpp View 1 2 3 1 chunk +12 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
sof
please take a look. notifyScriptLoadError() was added in http://crrev.com/82553003 , looks like it needs to ...
5 years, 4 months ago (2015-07-29 09:08:46 UTC) #2
haraken
LGTM
5 years, 4 months ago (2015-07-29 11:09:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263743002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263743002/40001
5 years, 4 months ago (2015-07-29 11:37:48 UTC) #5
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199656
5 years, 4 months ago (2015-07-29 11:40:21 UTC) #6
sof
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1271443002/ by sigbjornf@opera.com. ...
5 years, 4 months ago (2015-07-31 05:31:16 UTC) #7
sof
please take another/second look? The first version of this CL that landed was not well-formed, ...
5 years, 4 months ago (2015-08-05 12:25:26 UTC) #8
haraken
LGTM
5 years, 4 months ago (2015-08-05 12:34:01 UTC) #9
sof
Thanks; relanding.
5 years, 4 months ago (2015-08-05 13:17:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263743002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263743002/60001
5 years, 4 months ago (2015-08-05 13:18:12 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=200045
5 years, 4 months ago (2015-08-05 13:20:53 UTC) #13
hiroshige
The added layout test http/tests/misc/script-sync-slow-scripts-onerror.html is quite flaky. Dashboard: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fmisc%2Fscript-sync-slow-scripts-onerror.html
5 years, 4 months ago (2015-08-06 10:30:15 UTC) #14
sof
hiroshige@: many thanks for the heads-up on flakiness; will followup next.
5 years, 4 months ago (2015-08-06 12:47:40 UTC) #15
sof
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1277273002/ by sigbjornf@opera.com. ...
5 years, 4 months ago (2015-08-07 19:28:08 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:53:26 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2cab4e1498bbaa7934125a6210f4c09003a63ba0

Powered by Google App Engine
This is Rietveld 408576698