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

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)

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

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : super hacky but fetches and compiles a module #

Patch Set 3 : WIP: ModuleLoaderClient && crafts to make it work even if notifyFinished adds another ModuleLoaderC… #

Total comments: 1

Patch Set 4 : latest working ver that compiles modules but crashes inside V8 when executing #

Total comments: 28

Patch Set 5 : ScriptModule interaction refactored to ScriptController #

Total comments: 12

Patch Set 6 : WIP Dec15 #

Patch Set 7 : snapshot Dec19 #

Total comments: 22

Patch Set 8 : WIP implementing module-script-graph-fetching-procedure (not for review / sneak peek) #

Patch Set 9 : WIP: Implemented module-script-graph-fetching-procedure Steps 1-4 #

Patch Set 10 : https://html.spec.whatwg.org/#fetch-a-module-script-tree works, ignoring edge cases #

Patch Set 11 : execute fetched module tree just for fun #

Patch Set 12 : split ModuleScript.{h,cpp} #

Patch Set 13 : baseURL resolve impl #

Patch Set 14 : Use prev PS to experiment. wip: ScriptModuleIdentifier needs to support hashvaluedeletedvaluetype #

Patch Set 15 : Use ScriptModuleIdentifier as dominicc@ suggested #

Patch Set 16 : split classes in to separate cpp/h #

Patch Set 17 : ModulatorTest #

Patch Set 18 : moar docs #

Patch Set 19 : ModuleScriptLoaderTest #

Total comments: 25

Patch Set 20 : address haraken/yhirano comments #

Total comments: 73

Patch Set 21 : Introduce ModuleScriptFetchRequest param object #

Patch Set 22 : rebased #

Patch Set 23 : address haraken/dominicc comments #

Patch Set 24 : referrerpolicy #

Patch Set 25 : rebase / interface renames / Remove LoaderTest dep to ModulatorImpl #

Patch Set 26 : wip #

Patch Set 27 : ModuleMapTest #

Patch Set 28 : rebased #

Patch Set 29 : threejs demo #

Patch Set 30 : rebased to master #

Patch Set 31 : ndebugfix #

Patch Set 32 : snapshot #

Patch Set 33 : rebased #

Patch Set 34 : rebased #

Patch Set 35 : rebased #

Patch Set 36 : rebased #

Patch Set 37 : remove ScriptModuleIdentifier for now #

Patch Set 38 : rebased #

Total comments: 1

Patch Set 39 : rebased #

Patch Set 40 : rebased on top of ScriptModuleResolverImpl CL #

Patch Set 41 : rebased #

Patch Set 42 : rebased #

Patch Set 43 : backup #

Patch Set 44 : ModuleTreeLinkerTest.fetchDependencyTree #

Patch Set 45 : MTL test w/ kitsune patches #

Patch Set 46 : fix v8 crashes #

Patch Set 47 : ModuleTreeLinkerTest.fetchTreeInstantiationFailure #

Total comments: 4

Patch Set 48 : rebased #

Patch Set 49 : use V8ScriptRunner::ThrowException to #report-the-error #

Patch Set 50 : allinone snapshot #

Patch Set 51 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1111 lines, -555 lines) Patch
A dep.js 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 25 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
A depdep.js 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 25 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
A module.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +18 lines, -0 lines 0 comments Download
A module.js 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 25 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
A synerr.js 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 25 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 3 chunks +6 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-different.noinline.sub.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-different.noinline.sub.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-missingheader.noinline.sub.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-missingheader.noinline.sub.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-same.noinline.sub.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-same.noinline.sub.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-wrongheader.noinline.sub.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin-import-wrongheader.noinline.sub.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/crossorigin.noinline.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/empty.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errored.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errored-root.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-common.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +6 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-dependent.noinline.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-dependent.noinline.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-dependentmultiple.noinline.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-dependentmultiple.noinline-a.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-dependentmultiple.noinline-b.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-root.noinline.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-root.noinline.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/errorhandling.noinline.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +61 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/execorder.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 5 chunks +10 lines, -10 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/execorder.noinline.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 6 chunks +12 lines, -16 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/execorder.noinline-a.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline.html 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline-a.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline-b.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/imports.noinline-c.js 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/local/absolute-url-strip-whitespace-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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 9 chunks +25 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 4 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/BUILD.gn 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 2 chunks +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/ClassicPendingScript.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +88 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/dom/ClassicPendingScript.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 8 chunks +58 lines, -116 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Modulator.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModulatorImpl.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 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 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 3 chunks +48 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/ModulePendingScript.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +98 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/ModulePendingScript.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +82 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModuleScript.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 3 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ModuleScript.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 4 chunks +33 lines, -52 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 3 chunks +9 lines, -210 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 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 19 chunks +199 lines, -88 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptModuleResolver.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +4 lines, -0 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 10 chunks +13 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.h 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +4 lines, -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 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +8 lines, -3 lines 0 comments Download
A threejs-bootstrap.html 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 25 26 27 28 29 41 42 43 44 1 chunk +10 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 68 (18 generated)
kouhei (in TOK)
This is what I've got now. Current status: I translated the spec text to C++ ...
4 years ago (2016-12-06 02:29:29 UTC) #2
adamk
Happy to help with the bindings side. Basically it seems like we need a V8ScriptRunner::compileModule ...
4 years ago (2016-12-06 21:19:00 UTC) #3
adamk
Ping? I'm happy to add something on my end, just want to get an idea ...
4 years ago (2016-12-08 01:00:44 UTC) #4
kouhei (in TOK)
On 2016/12/06 21:19:00, adamk wrote: > Happy to help with the bindings side. Basically it ...
4 years ago (2016-12-08 03:20:38 UTC) #5
adamk
https://codereview.chromium.org/2566513002 is a very first step at ScriptModule. It allows you to create an instance ...
4 years ago (2016-12-08 21:33:32 UTC) #6
adamk
On 2016/12/08 21:33:32, adamk wrote: > https://codereview.chromium.org/2566513002 is a very first step at ScriptModule. > ...
4 years ago (2016-12-08 22:27:49 UTC) #7
kouhei (in TOK)
On 2016/12/08 22:27:49, adamk wrote: > On 2016/12/08 21:33:32, adamk wrote: > > https://codereview.chromium.org/2566513002 is ...
4 years ago (2016-12-09 07:28:25 UTC) #8
kouhei (in TOK)
+hiroshige
4 years ago (2016-12-12 00:11:56 UTC) #10
kouhei (in TOK)
PS3 doesn't even compile, but is latest wip patch. Please use PS2 to play with. ...
4 years ago (2016-12-12 07:38:51 UTC) #11
kouhei (in TOK)
PS4 tries to execute module, but crashes w/in V8. https://codereview.chromium.org/2555653002/diff/60001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2555653002/diff/60001/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode113 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:113: ...
4 years ago (2016-12-13 05:42:50 UTC) #12
kouhei (in TOK)
GDB Stacktrace for the v8 crash === v8::base::OS::Abort () at ../../v8/src/base/platform/platform-posix.cc:253 253 V8_IMMEDIATE_CRASH(); (gdb) bt ...
4 years ago (2016-12-13 05:54:15 UTC) #13
dominicc (has gone to gerrit)
Great start, some thoughts inline. https://codereview.chromium.org/2555653002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2555653002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode19 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:19: // TODO(adamk): Pass more ...
4 years ago (2016-12-13 07:45:30 UTC) #14
hiroshige
Some high-level random thoughts (just my opinion, let's discuss): Ideally, fetchSingle() should corresponds to the ...
4 years ago (2016-12-14 23:24:22 UTC) #15
kouhei (in TOK)
Uploaded WIP before entering weekend. Thanks for all the comments! I'm still working on the ...
4 years ago (2016-12-15 04:56:27 UTC) #16
kouhei (in TOK)
https://codereview.chromium.org/2555653002/diff/60001/third_party/WebKit/Source/core/dom/ModuleMap.h File third_party/WebKit/Source/core/dom/ModuleMap.h (right): https://codereview.chromium.org/2555653002/diff/60001/third_party/WebKit/Source/core/dom/ModuleMap.h#newcode22 third_party/WebKit/Source/core/dom/ModuleMap.h:22: enum class ModuleLoaderState { On 2016/12/13 07:45:29, dominicc (away ...
4 years ago (2016-12-19 04:49:40 UTC) #17
dominicc (has gone to gerrit)
This looks like it is shaping up very nicely. Some comments inline. https://codereview.chromium.org/2555653002/diff/120001/third_party/WebKit/Source/bindings/core/v8/ScriptController.h File third_party/WebKit/Source/bindings/core/v8/ScriptController.h ...
4 years ago (2016-12-19 10:07:51 UTC) #18
kouhei (in TOK)
Thanks a ton for the review! Are you happy with the current high-level design?: - ...
4 years ago (2016-12-19 11:20:00 UTC) #19
domenic
> https://codereview.chromium.org/2555653002/diff/60001/third_party/WebKit/Source/core/dom/ModuleMap.h#newcode158 > third_party/WebKit/Source/core/dom/ModuleMap.h:158: // A module map is a map of absolute URLs to ...
4 years ago (2016-12-19 19:33:50 UTC) #20
dominicc (has gone to gerrit)
Comments make sense. Design looks really good based on what we know at the moment. ...
4 years ago (2016-12-20 02:59:09 UTC) #21
dominicc (has gone to gerrit)
Comments make sense. Design looks really good based on what we know at the moment. ...
4 years ago (2016-12-20 02:59:09 UTC) #22
kouhei (in TOK)
https://codereview.chromium.org/2555653002/diff/120001/third_party/WebKit/Source/core/dom/ModuleMap.h File third_party/WebKit/Source/core/dom/ModuleMap.h (right): https://codereview.chromium.org/2555653002/diff/120001/third_party/WebKit/Source/core/dom/ModuleMap.h#newcode89 third_party/WebKit/Source/core/dom/ModuleMap.h:89: bool m_wasLoadSuccessful = true; On 2016/12/19 11:19:59, kouhei wrote: ...
4 years ago (2016-12-20 10:47:35 UTC) #23
kouhei (in TOK)
Use prev PS to experiment. wip: ScriptModuleIdentifier needs to support hashvaluedeletedvaluetype
3 years, 12 months ago (2016-12-26 06:32:15 UTC) #24
kouhei (in TOK)
I'm thinking of start landing the code by splitting CLs. I have added unit test ...
3 years, 11 months ago (2017-01-06 03:58:43 UTC) #26
haraken
https://codereview.chromium.org/2555653002/diff/360001/third_party/WebKit/Source/bindings/core/v8/ModuleController.cpp File third_party/WebKit/Source/bindings/core/v8/ModuleController.cpp (right): https://codereview.chromium.org/2555653002/diff/360001/third_party/WebKit/Source/bindings/core/v8/ModuleController.cpp#newcode13 third_party/WebKit/Source/bindings/core/v8/ModuleController.cpp:13: ModuleController::ModuleController(RefPtr<ScriptState> scriptState) It seems to me that ModuleController is ...
3 years, 11 months ago (2017-01-06 05:47:58 UTC) #27
yhirano
What happens if the context (document, frame, ...) is gone while fetching a module? https://codereview.chromium.org/2555653002/diff/360001/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptLoader.cpp ...
3 years, 11 months ago (2017-01-06 07:27:01 UTC) #28
kouhei (in TOK)
> What happens if the context (document, frame, ...) is gone while fetching a module? ...
3 years, 11 months ago (2017-01-11 01:41:58 UTC) #29
kouhei (in TOK)
Design diagram: https://docs.google.com/document/d/1vjiWxwhg9D0GNNOYgw3AxMG0iKOC9I3jlID4GTgZsac/edit#heading=h.47x0qrpzjbj4 haraken, yhirano: Would you mind taking a second look? Please tell me ...
3 years, 11 months ago (2017-01-11 01:45:39 UTC) #30
kouhei (in TOK)
https://codereview.chromium.org/2555653002/diff/360001/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp (right): https://codereview.chromium.org/2555653002/diff/360001/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode179 third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp:179: // Step 4.3. Otherwise, if ancestor list does not ...
3 years, 11 months ago (2017-01-11 02:30:17 UTC) #31
haraken
https://codereview.chromium.org/2555653002/diff/380001/third_party/WebKit/Source/bindings/core/v8/ScriptModuleResolver.h File third_party/WebKit/Source/bindings/core/v8/ScriptModuleResolver.h (right): https://codereview.chromium.org/2555653002/diff/380001/third_party/WebKit/Source/bindings/core/v8/ScriptModuleResolver.h#newcode20 third_party/WebKit/Source/bindings/core/v8/ScriptModuleResolver.h:20: class ScriptModuleResolver : public GarbageCollected<ScriptModuleResolver> { I'm not sure ...
3 years, 11 months ago (2017-01-11 02:31:28 UTC) #32
dominicc (has gone to gerrit)
Some comments inline, I'm about halfway through this. TL;DR very nice, I'm enjoying reading through ...
3 years, 11 months ago (2017-01-11 03:23:48 UTC) #33
dominicc (has gone to gerrit)
Some more comments. Offline discussion of Modulator in ExecutionContext versus V8PerContextData makes sense. https://codereview.chromium.org/2555653002/diff/380001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File ...
3 years, 11 months ago (2017-01-11 06:57:15 UTC) #34
kouhei (in TOK)
dominicc: Thanks for your comments. I'll address them in the next PS. toyoshim: Do you ...
3 years, 11 months ago (2017-01-13 05:41:29 UTC) #36
kouhei (in TOK)
Addressed comments % layout test. PTAL https://codereview.chromium.org/2555653002/diff/380001/dep.js File dep.js (right): https://codereview.chromium.org/2555653002/diff/380001/dep.js#newcode1 dep.js:1: import './depdep.js' On ...
3 years, 11 months ago (2017-01-17 05:26:13 UTC) #37
kouhei (in TOK)
https://codereview.chromium.org/2555653002/diff/380001/third_party/WebKit/Source/core/dom/Modulator.h File third_party/WebKit/Source/core/dom/Modulator.h (right): https://codereview.chromium.org/2555653002/diff/380001/third_party/WebKit/Source/core/dom/Modulator.h#newcode22 third_party/WebKit/Source/core/dom/Modulator.h:22: // A SingleModuleClient is notified when single module script ...
3 years, 11 months ago (2017-01-19 02:14:57 UTC) #38
dominicc (has gone to gerrit)
On 2017/01/19 at 02:14:57, kouhei wrote: > https://codereview.chromium.org/2555653002/diff/380001/third_party/WebKit/Source/core/dom/Modulator.h#newcode81 > third_party/WebKit/Source/core/dom/Modulator.h:81: virtual ScriptModule compileModule(const String& script, ...
3 years, 11 months ago (2017-01-19 04:42:34 UTC) #39
kouhei (in TOK)
On 2017/01/19 04:42:34, dominicc wrote: > On 2017/01/19 at 02:14:57, kouhei wrote: > > > ...
3 years, 11 months ago (2017-01-19 05:22:24 UTC) #40
haraken
On 2017/01/19 05:22:24, kouhei wrote: > On 2017/01/19 04:42:34, dominicc wrote: > > On 2017/01/19 ...
3 years, 11 months ago (2017-01-19 06:55:00 UTC) #41
dominicc (has gone to gerrit)
FWIW the main point of the abstraction would be to let people write unit tests ...
3 years, 11 months ago (2017-01-20 05:26:44 UTC) #42
dominicc (has gone to gerrit)
FWIW the main point of the abstraction would be to let people write unit tests ...
3 years, 11 months ago (2017-01-20 05:26:44 UTC) #43
kouhei (in TOK)
On 2017/01/20 05:26:44, dominicc wrote: > FWIW the main point of the abstraction would be ...
3 years, 11 months ago (2017-01-20 05:30:07 UTC) #44
kochi
BTW, tests for ES modules in WPT have recently imported. Removing the line in LayoutTests/TestExpectations ...
3 years, 10 months ago (2017-02-22 05:48:42 UTC) #45
hiroshige
On 2017/02/22 05:48:42, kochi wrote: > BTW, tests for ES modules in WPT have recently ...
3 years, 10 months ago (2017-02-22 20:09:25 UTC) #46
hiroshige
https://codereview.chromium.org/2555653002/diff/740001/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp (right): https://codereview.chromium.org/2555653002/diff/740001/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode319 third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp:319: if (!error.isEmpty()) { According to the spec, Lines 319--325 ...
3 years, 8 months ago (2017-03-31 06:21:47 UTC) #51
kouhei (in TOK)
On 2017/03/31 06:21:47, hiroshige wrote: > https://codereview.chromium.org/2555653002/diff/740001/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp > File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp > (right): > > https://codereview.chromium.org/2555653002/diff/740001/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode319 ...
3 years, 8 months ago (2017-04-17 06:09:43 UTC) #60
hiroshige
https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode149 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:149: V8ThrowException::ThrowException( This should corresponds "report an exception" https://html.spec.whatwg.org/#report-the-exception and ...
3 years, 8 months ago (2017-04-18 01:55:41 UTC) #62
nhiroki
https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode149 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:149: V8ThrowException::ThrowException( On 2017/04/18 01:55:41, hiroshige wrote: > This should ...
3 years, 8 months ago (2017-04-18 02:13:20 UTC) #64
kouhei (in TOK)
https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode149 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:149: V8ThrowException::ThrowException( On 2017/04/18 02:13:20, nhiroki wrote: > On 2017/04/18 ...
3 years, 8 months ago (2017-04-18 02:29:59 UTC) #65
hiroshige
https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode149 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:149: V8ThrowException::ThrowException( > - <script> element.error: ExecuteModule should return bool, ...
3 years, 8 months ago (2017-04-18 02:33:59 UTC) #66
domenic
On 2017/04/18 at 02:33:59, hiroshige wrote: > https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp > File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): > > https://codereview.chromium.org/2555653002/diff/920001/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode149 ...
3 years, 8 months ago (2017-04-18 03:35:15 UTC) #67
kouhei (in TOK)
3 years, 8 months ago (2017-04-24 09:43:48 UTC) #68
Closing this CL now as my part of the change in the CL is now all landed.

Powered by Google App Engine
This is Rietveld 408576698