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

Issue 2886593002: [ES6 modules] ModuleTreeLinker::Instantiate shouldn't proceed on invalid context (Closed)

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

Description

[ES6 modules] ModuleTreeLinker::Instantiate shouldn't proceed on invalid context Before this CL, ModuleTreeLinker::Instantiate assumed that it is only called for modulator with a valid context. However, asynchronous module graph node load completion may be triggered after the context was destroyed. This CL fixes the issue by making ModuleTreeLinker::Instantiate fail without crashing if the context is invalid. BUG=594639, 716935 Review-Url: https://codereview.chromium.org/2886593002 Cr-Commit-Position: refs/heads/master@{#472246} Committed: https://chromium.googlesource.com/chromium/src/+/87dc11bdb4e1cf4ba674f3907fa1127f8839ad40

Patch Set 1 #

Total comments: 5

Patch Set 2 : hasvalidcontxt #

Messages

Total messages: 17 (10 generated)
kouhei (in TOK)
3 years, 7 months ago (2017-05-15 22:56:28 UTC) #3
neis
lgtm with nit, but I'm not very familiar with the modulator code. https://codereview.chromium.org/2886593002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp ...
3 years, 7 months ago (2017-05-16 09:10:55 UTC) #4
hiroshige
lgtm with a comment. https://codereview.chromium.org/2886593002/diff/1/third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html File third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html (right): https://codereview.chromium.org/2886593002/diff/1/third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html#newcode2 third_party/WebKit/LayoutTests/http/tests/dom/script-module-load-incomplete-no-crash.html:2: <title>Module script graph fetch in ...
3 years, 7 months ago (2017-05-16 16:54:58 UTC) #5
hiroshige
https://codereview.chromium.org/2886593002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp File third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp (right): https://codereview.chromium.org/2886593002/diff/1/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp#newcode379 third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp:379: // [nospec] Abort the steps if the browsing context ...
3 years, 7 months ago (2017-05-16 17:09:19 UTC) #6
kouhei (in TOK)
https://codereview.chromium.org/2886593002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp File third_party/WebKit/Source/core/dom/ModulatorImpl.cpp (right): https://codereview.chromium.org/2886593002/diff/1/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp#newcode114 third_party/WebKit/Source/core/dom/ModulatorImpl.cpp:114: bool ModulatorImpl::IsContextValid() { On 2017/05/16 09:10:55, neis wrote: > ...
3 years, 7 months ago (2017-05-16 17:52:35 UTC) #7
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/2886593002/20001
3 years, 7 months ago (2017-05-16 19:55:42 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 23:28:41 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/87dc11bdb4e1cf4ba674f3907fa1...

Powered by Google App Engine
This is Rietveld 408576698