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

Issue 2781713003: Enable module scripts in ScriptLoader (Closed)

Created:
3 years, 8 months ago by hiroshige
Modified:
3 years, 7 months ago
Reviewers:
module-dev, Nate Chapin, kouhei (in TOK)
CC:
chromium-reviews, blink-reviews-w3ctests_chromium.org, blink-reviews-html_chromium.org, tfarina, sof, eae+blinkwatch, loading-reviews+parser_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, dominicc+watchlist_chromium.org, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable module scripts in ScriptLoader This enables module scripts in Blink behind a flag. This CL implements module-script-related steps of "prepare a script" in ScriptLoader and thus makes the module implementation code paths that are committed previously to be executed, if the runtime flag is enabled. This CL also reorganizes the test expectations for module-related tests. BUG=594639 Review-Url: https://codereview.chromium.org/2781713003 Cr-Commit-Position: refs/heads/master@{#467866} Committed: https://chromium.googlesource.com/chromium/src/+/7da9cf91983855bf2e5861dbe33d50fc9aca9df0

Patch Set 1 #

Patch Set 2 : temp #

Patch Set 3 : tempfix #

Patch Set 4 : Rebase, fix #

Patch Set 5 : Fix tests #

Patch Set 6 : Rebase after renaming #

Patch Set 7 : Split tests #

Patch Set 8 : Rebase, refactor ModulePendingScriptTreeClient #

Patch Set 9 : Rebase #

Total comments: 4

Patch Set 10 : move logic of run a module script to ModulatorImpl #

Patch Set 11 : Refactor FetchSCript #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : refine #

Patch Set 15 : Rebase #

Patch Set 16 : Rebase #

Patch Set 17 : Supply BaseURL() for exception #

Patch Set 18 : Rebase #

Total comments: 8

Patch Set 19 : Rebase #

Patch Set 20 : Rebase, refine #

Patch Set 21 : VLOG #

Patch Set 22 : Updated test expectations #

Patch Set 23 : Update test expectations #

Patch Set 24 : Rebase #

Patch Set 25 : Update TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -113 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +12 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/execorder-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -9 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/nomodule-set-on-external-module-script-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/nomodule-set-on-inline-module-script-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +11 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 18 chunks +195 lines, -81 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +11 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 74 (60 generated)
hiroshige
(Using codereview to discuss specific code fragments) https://codereview.chromium.org/2781713003/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2781713003/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode67 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:67: // 3. ...
3 years, 8 months ago (2017-04-12 19:57:05 UTC) #14
kouhei (in TOK)
https://codereview.chromium.org/2781713003/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2781713003/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode67 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:67: // 3. "If s's instantiation state is "errored", then ...
3 years, 8 months ago (2017-04-13 02:28:37 UTC) #15
hiroshige
https://codereview.chromium.org/2781713003/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2781713003/diff/160001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode67 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:67: // 3. "If s's instantiation state is "errored", then ...
3 years, 8 months ago (2017-04-13 23:53:15 UTC) #18
kouhei (in TOK)
PS18 looks good https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp (right): https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp#newcode545 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp:545: // v8::Exception::TypeError(V8String(isolate, "FOXME Message")) remove? https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp ...
3 years, 8 months ago (2017-04-24 01:24:04 UTC) #31
kouhei (in TOK)
Ping me once you have CL ready for commit
3 years, 8 months ago (2017-04-24 01:24:21 UTC) #32
hiroshige
Updated. I think more CHECK()s are needed to ensure ModuleScript is not fetched/executed without flags. ...
3 years, 8 months ago (2017-04-26 01:09:35 UTC) #42
hiroshige
On 2017/04/26 01:09:35, hiroshige wrote: > Updated. > > I think more CHECK()s are needed ...
3 years, 8 months ago (2017-04-26 01:58:08 UTC) #45
kouhei (in TOK)
https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp File third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp (right): https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp#newcode1120 third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp:1120: CHECK_EQ(script_loader->GetScriptType(), ScriptType::kClassic); On 2017/04/26 01:09:34, hiroshige wrote: > On ...
3 years, 8 months ago (2017-04-26 02:05:28 UTC) #46
hiroshige
https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp File third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp (right): https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp#newcode1120 third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp:1120: CHECK_EQ(script_loader->GetScriptType(), ScriptType::kClassic); On 2017/04/26 02:05:27, kouhei wrote: > On ...
3 years, 8 months ago (2017-04-26 19:10:21 UTC) #49
kouhei (in TOK)
lgtm On 2017/04/26 19:10:21, hiroshige wrote: > https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp > File third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp (right): > > https://codereview.chromium.org/2781713003/diff/340001/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp#newcode1120 ...
3 years, 8 months ago (2017-04-26 23:06:57 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781713003/460001
3 years, 7 months ago (2017-04-27 20:47:55 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781713003/470001
3 years, 7 months ago (2017-04-27 21:50:31 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781713003/470001
3 years, 7 months ago (2017-04-28 01:35:30 UTC) #71
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 03:16:32 UTC) #74
Message was sent while issue was closed.
Committed patchset #25 (id:470001) as
https://chromium.googlesource.com/chromium/src/+/7da9cf91983855bf2e5861dbe33d...

Powered by Google App Engine
This is Rietveld 408576698