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

Issue 2693423002: Do not re-initialize PendingScript in HTMLParserScriptRunner (Closed)

Created:
3 years, 10 months ago by hiroshige
Modified:
3 years, 10 months ago
CC:
chromium-reviews, 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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not re-initialize PendingScript in HTMLParserScriptRunner Previously, |HTMLParserScriptRunner::m_parserBlockingScript| was re-initialized every time it processes a new script tag (i.e. a new ScriptLoader), and therefore one PendingScript can be reused for multiple ScriptLoaders. This CL makes |m_parserBlockingScript| to be newly created rather than re-initialized with the same object. This clarifies that a PendingScript corresponds to a ScriptLoader, and also enables creating ModulePendingScript in a cleaner way in https://codereview.chromium.org/2653923008/. BUG=686281 Review-Url: https://codereview.chromium.org/2693423002 Cr-Commit-Position: refs/heads/master@{#451911} Committed: https://chromium.googlesource.com/chromium/src/+/85a1f107f95bc55f75992f52d61343cd51f1aa53

Patch Set 1 #

Patch Set 2 : fix test #

Total comments: 19

Patch Set 3 : Reflect comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -63 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.h View 1 2 4 chunks +19 lines, -8 lines 2 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.cpp View 1 2 4 chunks +28 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.h View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp View 1 2 14 chunks +42 lines, -32 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 48 (28 generated)
hiroshige
3 years, 10 months ago (2017-02-16 00:32:59 UTC) #7
hiroshige
PTAL.
3 years, 10 months ago (2017-02-16 00:40:15 UTC) #9
kouhei (in TOK)
https://codereview.chromium.org/2693423002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp File third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp (right): https://codereview.chromium.org/2693423002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp#newcode585 third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp:585: if (!resource) { Do we ever get here?
3 years, 10 months ago (2017-02-16 00:55:09 UTC) #10
hiroshige
https://codereview.chromium.org/2693423002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp File third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp (right): https://codereview.chromium.org/2693423002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp#newcode585 third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp:585: if (!resource) { On 2017/02/16 00:55:09, kouhei-atCAM wrote: > ...
3 years, 10 months ago (2017-02-16 01:13:16 UTC) #11
kouhei (in TOK)
lgtm
3 years, 10 months ago (2017-02-16 01:25:25 UTC) #12
sof
I think this'll make ownership easier to reason about. Added mostly style-related feedback. https://codereview.chromium.org/2693423002/diff/20001/third_party/WebKit/Source/core/dom/PendingScript.cpp File ...
3 years, 10 months ago (2017-02-16 08:15:16 UTC) #13
hiroshige
https://codereview.chromium.org/2693423002/diff/20001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2693423002/diff/20001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode105 third_party/WebKit/Source/core/dom/PendingScript.cpp:105: CHECK(m_element); On 2017/02/16 08:15:15, sof wrote: > Could you ...
3 years, 10 months ago (2017-02-17 23:15:16 UTC) #22
sof
lgtm
3 years, 10 months ago (2017-02-18 06:09:36 UTC) #23
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/2693423002/40001
3 years, 10 months ago (2017-02-21 19:22:22 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_ozone_rel_ng on ...
3 years, 10 months ago (2017-02-21 21:24:36 UTC) #28
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/2693423002/40001
3 years, 10 months ago (2017-02-21 21:34:17 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/369431)
3 years, 10 months ago (2017-02-21 22:09:41 UTC) #32
hiroshige
haraken@, could you take a look as bindings/ OWNER?
3 years, 10 months ago (2017-02-21 22:14:04 UTC) #34
haraken
LGTM https://codereview.chromium.org/2693423002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.h File third_party/WebKit/Source/core/dom/PendingScript.h (right): https://codereview.chromium.org/2693423002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.h#newcode139 third_party/WebKit/Source/core/dom/PendingScript.h:139: const bool m_isForTesting; Or would there be an ...
3 years, 10 months ago (2017-02-22 00:30:04 UTC) #35
hiroshige
https://codereview.chromium.org/2693423002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.h File third_party/WebKit/Source/core/dom/PendingScript.h (right): https://codereview.chromium.org/2693423002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.h#newcode139 third_party/WebKit/Source/core/dom/PendingScript.h:139: const bool m_isForTesting; On 2017/02/22 00:30:04, haraken wrote: > ...
3 years, 10 months ago (2017-02-22 01:25:41 UTC) #36
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/2693423002/40001
3 years, 10 months ago (2017-02-22 01:27:04 UTC) #38
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/2693423002/40001
3 years, 10 months ago (2017-02-22 03:29:12 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-22 03:30:54 UTC) #43
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/2693423002/40001
3 years, 10 months ago (2017-02-22 07:19:52 UTC) #45
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 07:30:41 UTC) #48
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/85a1f107f95bc55f75992f52d613...

Powered by Google App Engine
This is Rietveld 408576698