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

Issue 2819733002: Implement ModuleScript::RunScript() (Closed)

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

Description

Implement ModuleScript::RunScript() This makes Modulator::ExecuteModule() to implement "run a module script" https://html.spec.whatwg.org/#run-a-module-script, especially its Steps 1--5, and calls it from ModuleScript::RunScript(). This CL doesn't change the behavior because ModuleScript::RunScript() is not yet called from ScriptLoader. BUG=594639 Review-Url: https://codereview.chromium.org/2819733002 Cr-Commit-Position: refs/heads/master@{#467506} Committed: https://chromium.googlesource.com/chromium/src/+/47926b6e51657d2dc6d10899f00357e06825956a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Total comments: 2

Patch Set 4 : Reflect comments and kouhei's suggestions #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Rebase #

Total comments: 6

Patch Set 8 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -3 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptModule.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Modulator.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModulatorImpl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModulatorImpl.cpp View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModuleScript.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ModuleScript.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (36 generated)
hiroshige
Still WIP. https://codereview.chromium.org/2819733002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2819733002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode138 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:138: // https://html.spec.whatwg.org/#run-a-module-script TODO: Add a comment for ...
3 years, 8 months ago (2017-04-13 23:55:19 UTC) #5
kouhei (in TOK)
lgtm https://codereview.chromium.org/2819733002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2819733002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode138 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:138: // https://html.spec.whatwg.org/#run-a-module-script On 2017/04/13 23:55:19, hiroshige wrote: > ...
3 years, 8 months ago (2017-04-17 07:31:53 UTC) #13
haraken
Is there any way to add a test? https://codereview.chromium.org/2819733002/diff/40001/third_party/WebKit/Source/core/dom/ModuleScript.cpp File third_party/WebKit/Source/core/dom/ModuleScript.cpp (right): https://codereview.chromium.org/2819733002/diff/40001/third_party/WebKit/Source/core/dom/ModuleScript.cpp#newcode48 third_party/WebKit/Source/core/dom/ModuleScript.cpp:48: InstantiationState()); ...
3 years, 8 months ago (2017-04-17 07:33:43 UTC) #15
kouhei (in TOK)
On 2017/04/17 07:33:43, haraken wrote: > Is there any way to add a test? I ...
3 years, 8 months ago (2017-04-17 07:36:14 UTC) #16
kouhei (in TOK)
On 2017/04/17 07:36:14, kouhei wrote: > On 2017/04/17 07:33:43, haraken wrote: > > Is there ...
3 years, 8 months ago (2017-04-25 06:22:39 UTC) #29
hiroshige
https://codereview.chromium.org/2819733002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2819733002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode138 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:138: // https://html.spec.whatwg.org/#run-a-module-script On 2017/04/17 07:31:53, kouhei wrote: > On ...
3 years, 8 months ago (2017-04-26 00:50:03 UTC) #33
kouhei (in TOK)
lgtm https://codereview.chromium.org/2819733002/diff/120001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h (right): https://codereview.chromium.org/2819733002/diff/120001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h#newcode118 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h:118: static void ReportExceptionForModule(v8::Isolate*, Add comment: // Only to ...
3 years, 8 months ago (2017-04-26 00:57:42 UTC) #34
hiroshige
https://codereview.chromium.org/2819733002/diff/120001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h File third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h (right): https://codereview.chromium.org/2819733002/diff/120001/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h#newcode118 third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h:118: static void ReportExceptionForModule(v8::Isolate*, On 2017/04/26 00:57:42, kouhei wrote: > ...
3 years, 8 months ago (2017-04-26 17:25:17 UTC) #38
kouhei (in TOK)
still lgtm. Thanks!
3 years, 8 months ago (2017-04-26 21:32:23 UTC) #42
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/2819733002/140001
3 years, 8 months ago (2017-04-26 23:20:51 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 23:29:35 UTC) #47
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/47926b6e51657d2dc6d10899f003...

Powered by Google App Engine
This is Rietveld 408576698