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

Issue 2790473002: [ES6 modules] Introduce ScriptModuleResolverImpl (Closed)

Created:
3 years, 8 months ago by kouhei (in TOK)
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ES6 modules] Introduce ScriptModuleResolverImpl This CL introduces ScriptModuleResolverImpl, which implements https://html.spec.whatwg.org/#hostresolveimportedmodule(referencingmodule,-specifier) This CL also introduces Modulator::getFetchedModuleScript() to synchronously get already fetched ModuleScript from the module map. BUG=594639 Review-Url: https://codereview.chromium.org/2790473002 Cr-Commit-Position: refs/heads/master@{#463205} Committed: https://chromium.googlesource.com/chromium/src/+/a0158c4544b8dbf598dfb829426ab6d755843369

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : error impl / unit test #

Total comments: 18

Patch Set 4 : yhirano/kinuko/haraken #

Patch Set 5 : rebased #

Patch Set 6 : exp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -2 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Modulator.h View 1 2 3 4 5 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptModuleResolver.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
A third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.h View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/ScriptModuleResolverImplTest.cpp View 1 2 3 4 1 chunk +169 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.cpp View 1 2 3 4 3 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (23 generated)
kouhei (in TOK)
I'd like to add unit test before commit
3 years, 8 months ago (2017-03-30 07:11:37 UTC) #2
kouhei (in TOK)
Added tests. Please review
3 years, 8 months ago (2017-04-05 06:28:25 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp File third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp (right): https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp#newcode46 third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp:46: // (Modulator) from context where HostResolveImportedModule was called. +domenic ...
3 years, 8 months ago (2017-04-05 06:30:11 UTC) #10
domenic
looks good in terms of spec implementation https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp File third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp (right): https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp#newcode33 third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp:33: #if DCHECK_IS_ON() ...
3 years, 8 months ago (2017-04-05 07:07:45 UTC) #11
haraken
LGTM in terms of implementation. https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.h File third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.h (right): https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.h#newcode21 third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.h:21: class CORE_EXPORT ScriptModuleResolverImpl final ...
3 years, 8 months ago (2017-04-05 11:48:29 UTC) #12
kinuko
some nit-pick comments: https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp File third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp (right): https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp#newcode16 third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp:16: DVLOG(1) << "ScriptModuleResolverImpl::registerModuleScript(url=\"" I don't think ...
3 years, 8 months ago (2017-04-05 14:05:01 UTC) #13
yhirano
lgtm https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImplTest.cpp File third_party/WebKit/Source/core/dom/ScriptModuleResolverImplTest.cpp (right): https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImplTest.cpp#newcode75 third_party/WebKit/Source/core/dom/ScriptModuleResolverImplTest.cpp:75: ModuleScript* createReferrerModuleScript(V8TestingScope& scope) { Please define this function ...
3 years, 8 months ago (2017-04-06 05:30:21 UTC) #14
kouhei (in TOK)
https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp File third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp (right): https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp#newcode33 third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp:33: #if DCHECK_IS_ON() On 2017/04/05 07:07:45, domenic wrote: > You ...
3 years, 8 months ago (2017-04-06 05:34:19 UTC) #15
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/2790473002/60001
3 years, 8 months ago (2017-04-06 05:34:32 UTC) #18
kinuko
> https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp#newcode40 > third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp:40: CHECK_NE(it, > m_recordToModuleScriptMap.end()) > On 2017/04/05 14:05:00, kinuko wrote: > > ...
3 years, 8 months ago (2017-04-06 05:42:28 UTC) #19
kouhei (in TOK)
On 2017/04/06 05:42:28, kinuko wrote: > > > https://codereview.chromium.org/2790473002/diff/40001/third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp#newcode40 > > third_party/WebKit/Source/core/dom/ScriptModuleResolverImpl.cpp:40: > CHECK_NE(it, > ...
3 years, 8 months ago (2017-04-06 05:46:29 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/383186) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 8 months ago (2017-04-06 06:07:06 UTC) #22
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/2790473002/60001
3 years, 8 months ago (2017-04-06 06:14:02 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/383213)
3 years, 8 months ago (2017-04-06 07:25:51 UTC) #26
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/2790473002/80001
3 years, 8 months ago (2017-04-10 06:14:46 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/385353)
3 years, 8 months ago (2017-04-10 07:28:55 UTC) #35
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/2790473002/100001
3 years, 8 months ago (2017-04-10 08:14:01 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 09:45:09 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/a0158c4544b8dbf598dfb829426a...

Powered by Google App Engine
This is Rietveld 408576698