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

Issue 2821803002: Introduce ScriptLoader::script_type_ (Closed)

Created:
3 years, 8 months ago by hiroshige
Modified:
3 years, 8 months ago
CC:
chromium-reviews, Yoav Weiss, blink-reviews-html_chromium.org, sof, eae+blinkwatch, loading-reviews+parser_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce ScriptLoader::script_type_ This CL introduces the logic for determining the script type to ScriptLoader. script_type_ will be used by subsequent CLs. This CL also makes Step 6 of ScriptLoader::PrepareScript() (IsValidScriptTypeAndLanguage()) to correspond directly to the spec. This CL doesn't change the behavior. BUG=594639, 686281 Review-Url: https://codereview.chromium.org/2821803002 Cr-Commit-Position: refs/heads/master@{#465443} Committed: https://chromium.googlesource.com/chromium/src/+/08697f894248cda25e67bd5c82565ffbc33f21fa

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Add missing include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -17 lines) Patch
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 2 5 chunks +11 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 5 chunks +46 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLScriptElement.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (15 generated)
hiroshige
PTAL. I started the review for this part (while script_type_ is not yet used anywhere) ...
3 years, 8 months ago (2017-04-15 01:03:00 UTC) #5
kouhei (in TOK)
https://codereview.chromium.org/2821803002/diff/1/third_party/WebKit/Source/core/dom/ScriptLoader.cpp File third_party/WebKit/Source/core/dom/ScriptLoader.cpp (right): https://codereview.chromium.org/2821803002/diff/1/third_party/WebKit/Source/core/dom/ScriptLoader.cpp#newcode191 third_party/WebKit/Source/core/dom/ScriptLoader.cpp:191: bool ScriptLoader::IsValidScriptTypeAndLanguage( rename this to DetermineScriptType and have this ...
3 years, 8 months ago (2017-04-15 01:18:23 UTC) #6
kouhei (in TOK)
or lgtm this as an intermediate step, given that we have https://codereview.chromium.org/2824583002/ depend on this
3 years, 8 months ago (2017-04-15 01:41:47 UTC) #7
hiroshige
I also considered adding kInvalid to ScriptType. Drawback is we have to more careful about ...
3 years, 8 months ago (2017-04-15 01:42:39 UTC) #8
kouhei (in TOK)
On 2017/04/15 01:42:39, hiroshige wrote: > I also considered adding kInvalid to ScriptType. > Drawback ...
3 years, 8 months ago (2017-04-15 01:50:58 UTC) #9
commit-bot: I haz the power
This CL has an open dependency (Issue 2820703003 Patch 140001). Please resolve the dependency and ...
3 years, 8 months ago (2017-04-18 21:26:10 UTC) #14
hiroshige
On 2017/04/15 01:50:58, kouhei wrote: > On 2017/04/15 01:42:39, hiroshige wrote: > > I also ...
3 years, 8 months ago (2017-04-18 21:26:56 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/2821803002/20001
3 years, 8 months ago (2017-04-18 21:28:22 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/399342) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-18 21:39:04 UTC) #20
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/2821803002/40001
3 years, 8 months ago (2017-04-18 23:03:53 UTC) #23
kouhei (in TOK)
still lgtm
3 years, 8 months ago (2017-04-18 23:04:01 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 00:40:39 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/08697f894248cda25e67bd5c8256...

Powered by Google App Engine
This is Rietveld 408576698