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

Issue 2842923002: Support Inline module script (Closed)

Created:
3 years, 8 months ago by hiroshige
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews-w3ctests_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis, module-dev_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Support Inline module script This CL - Enables inline module scripts in ScriptLoader. - Adds ModuleTreeLinker::FetchDescendantsForInlineScript() and related plumbing to ModuleTreeLinkerRegistry and Modulator. This is not yet spec'ed and we might need revisit once the spec is updated. https://github.com/whatwg/html/issues/2544 - Makes ModuleScript to store its |source_text| for CSP of inline scripts. BUG=715369, 594639 Review-Url: https://codereview.chromium.org/2842923002 Cr-Commit-Position: refs/heads/master@{#468087} Committed: https://chromium.googlesource.com/chromium/src/+/489fa402ff6ec3e74127929820b622407e979bb5

Patch Set 1 #

Total comments: 5

Patch Set 2 : Refine #

Patch Set 3 : Rebase #

Total comments: 6

Patch Set 4 : fix #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase, fix #

Patch Set 8 : fix expectation #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -51 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Modulator.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModulatorImpl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModulatorImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModuleScript.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModuleScript.cpp View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 2 3 4 5 6 7 4 chunks +43 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp View 1 2 3 4 5 6 7 8 2 chunks +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerRegistry.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (28 generated)
hiroshige
I found the following issue (the only issue that causes inline-script-specific test failure so far) ...
3 years, 8 months ago (2017-04-26 04:48:13 UTC) #7
hiroshige
https://codereview.chromium.org/2842923002/diff/1/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2842923002/diff/1/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode551 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:551: modulator->FetchDescendantsForInlineScript(script, module_tree_client_); [not specced] This CL jumps to Step ...
3 years, 8 months ago (2017-04-26 04:54:59 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/2842923002/diff/1/third_party/WebKit/Source/core/dom/Modulator.h File third_party/WebKit/Source/core/dom/Modulator.h (right): https://codereview.chromium.org/2842923002/diff/1/third_party/WebKit/Source/core/dom/Modulator.h#newcode92 third_party/WebKit/Source/core/dom/Modulator.h:92: NOTREACHED(); move this to DummyModulator
3 years, 8 months ago (2017-04-27 01:50:18 UTC) #14
kouhei (in TOK)
https://codereview.chromium.org/2842923002/diff/40001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2842923002/diff/40001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode88 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:88: ModuleTreeClient* client) { We need to call resolver->RegisterModuleScript() somewhere ...
3 years, 8 months ago (2017-04-27 03:47:26 UTC) #15
hiroshige
https://codereview.chromium.org/2842923002/diff/1/third_party/WebKit/Source/core/dom/Modulator.h File third_party/WebKit/Source/core/dom/Modulator.h (right): https://codereview.chromium.org/2842923002/diff/1/third_party/WebKit/Source/core/dom/Modulator.h#newcode92 third_party/WebKit/Source/core/dom/Modulator.h:92: NOTREACHED(); On 2017/04/27 01:50:18, kouhei wrote: > move this ...
3 years, 7 months ago (2017-04-27 21:57:20 UTC) #18
hiroshige
+module-dev
3 years, 7 months ago (2017-04-27 21:58:01 UTC) #20
kouhei (in TOK)
lgtm
3 years, 7 months ago (2017-04-28 00:20:28 UTC) #24
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/2842923002/140001
3 years, 7 months ago (2017-04-28 05:45:48 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/441065)
3 years, 7 months ago (2017-04-28 05:49:54 UTC) #30
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/2842923002/160001
3 years, 7 months ago (2017-04-28 17:34:23 UTC) #36
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 19:19:50 UTC) #39
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/489fa402ff6ec3e74127929820b6...

Powered by Google App Engine
This is Rietveld 408576698