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

Issue 2828193003: Explicitly track the lifecycle of PendingScript. (Closed)

Created:
3 years, 8 months ago by jbroman
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Explicitly track the lifecycle of PendingScript. This moves the lifecycle tracking of PendingScript from relying on querying its parts (the resource, streamer, etc.) to maintaining an explicit state machine. Firstly, this means that the apparent state to change is timed to coincide with when clients are notified (as opposed to a client being able to notice that a PendingScript is finished before being notified). It also paves the way for additional steps (e.g. separately scheduled compile of the script) without making IsReady and ErrorOccurred yet more complicated. BUG=591558 Review-Url: https://codereview.chromium.org/2828193003 Cr-Commit-Position: refs/heads/master@{#468676} Committed: https://chromium.googlesource.com/chromium/src/+/ce9f0aa85bc1e34ad03dc963ef589dc3fbed21bd

Patch Set 1 #

Patch Set 2 : strip debugging #

Patch Set 3 : refactor slightly #

Patch Set 4 : document, and replace watching_for_load_ #

Total comments: 4

Patch Set 5 : now in ClassicPendingScript #

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -17 lines) Patch
M third_party/WebKit/Source/core/dom/ClassicPendingScript.h View 1 2 3 4 5 2 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ClassicPendingScript.cpp View 1 2 3 4 5 5 chunks +32 lines, -16 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (24 generated)
jbroman
WDYT? I found this change useful in tracking the state of the PendingScript while I ...
3 years, 8 months ago (2017-04-21 15:42:31 UTC) #15
kouhei (in TOK)
+hiroshige,japhet I'm a big fan of explicit lifecycles and I really like where this is ...
3 years, 8 months ago (2017-04-24 01:12:52 UTC) #17
jbroman
On 2017/04/24 at 01:12:52, kouhei wrote: > +hiroshige,japhet > I'm a big fan of explicit ...
3 years, 8 months ago (2017-04-24 15:54:43 UTC) #18
hiroshige
> I'm a big fan of explicit lifecycles and I really like where this is ...
3 years, 8 months ago (2017-04-24 19:16:53 UTC) #19
hiroshige
On 2017/04/24 19:16:53, hiroshige wrote: > > I'm a big fan of explicit lifecycles and ...
3 years, 7 months ago (2017-04-28 18:06:22 UTC) #20
jbroman
PTAL. https://codereview.chromium.org/2828193003/diff/60001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2828193003/diff/60001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode129 third_party/WebKit/Source/core/dom/PendingScript.cpp:129: DCHECK(GetResource()); On 2017/04/24 at 19:16:53, hiroshige wrote: > ...
3 years, 7 months ago (2017-05-01 15:08:02 UTC) #27
hiroshige
lgtm!
3 years, 7 months ago (2017-05-01 23:43:21 UTC) #28
kouhei (in TOK)
lgtm
3 years, 7 months ago (2017-05-02 02:17:39 UTC) #29
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/2828193003/100001
3 years, 7 months ago (2017-05-02 15:02:13 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 16:35:48 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ce9f0aa85bc1e34ad03dc963ef58...

Powered by Google App Engine
This is Rietveld 408576698