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

Issue 2615213002: Introduce a lifecycle model to WindowProxy (Closed)

Created:
3 years, 11 months ago by haraken
Modified:
3 years, 11 months ago
Reviewers:
dcheng, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce a lifecycle model to WindowProxy This CL intorduces the following lifecycle model to WindowProxy: ContextUninitialized => ContextInitialized => ContextDetached This clarifies the lifecycle and enables us to insert dchecks to detect invalid lifecycle transitions. BUG=677253 Review-Url: https://codereview.chromium.org/2615213002 Cr-Commit-Position: refs/heads/master@{#442519} Committed: https://chromium.googlesource.com/chromium/src/+/381723f8f6664f04b9524e6212e218e1b1ec7510

Patch Set 1 #

Patch Set 2 : temp #

Patch Set 3 : temp #

Patch Set 4 : temp #

Total comments: 3

Patch Set 5 : temp #

Total comments: 4

Patch Set 6 : temp #

Total comments: 1

Patch Set 7 : temp #

Total comments: 1

Patch Set 8 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -31 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.h View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 2 3 6 7 11 chunks +58 lines, -25 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
haraken
Now I'm ready to make this change. PTAL. This CL replaces existing isContextInitialized() checks with ...
3 years, 11 months ago (2017-01-06 10:53:19 UTC) #2
Yuki
Re-initialization of the context / global object is strange and should be impossible, however, re-attachment ...
3 years, 11 months ago (2017-01-06 11:49:37 UTC) #5
haraken
> Re-initialization of the context / global object is strange and should be > impossible, ...
3 years, 11 months ago (2017-01-06 12:54:15 UTC) #6
Yuki
LGTM. https://codereview.chromium.org/2615213002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h File third_party/WebKit/Source/bindings/core/v8/WindowProxy.h (right): https://codereview.chromium.org/2615213002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h#newcode57 third_party/WebKit/Source/bindings/core/v8/WindowProxy.h:57: enum class Lifecycle { nit: We can move ...
3 years, 11 months ago (2017-01-06 12:56:56 UTC) #9
haraken
> https://codereview.chromium.org/2615213002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h > File third_party/WebKit/Source/bindings/core/v8/WindowProxy.h (right): > > https://codereview.chromium.org/2615213002/diff/100001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h#newcode57 > third_party/WebKit/Source/bindings/core/v8/WindowProxy.h:57: enum class > Lifecycle ...
3 years, 11 months ago (2017-01-06 13:03:04 UTC) #10
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/2615213002/120001
3 years, 11 months ago (2017-01-06 13:03:21 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/298220)
3 years, 11 months ago (2017-01-06 13:48:20 UTC) #15
dcheng
On 2017/01/06 13:48:20, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-06 18:44:39 UTC) #16
dcheng
On 2017/01/06 18:44:39, dcheng wrote: > On 2017/01/06 13:48:20, commit-bot: I haz the power wrote: ...
3 years, 11 months ago (2017-01-09 00:26:39 UTC) #17
dcheng
On 2017/01/09 00:26:39, dcheng wrote: > On 2017/01/06 18:44:39, dcheng wrote: > > On 2017/01/06 ...
3 years, 11 months ago (2017-01-09 22:01:31 UTC) #18
dcheng
https://codereview.chromium.org/2615213002/diff/120001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/2615213002/diff/120001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp#newcode286 third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp:286: m_lifecycle = Lifecycle::ContextInitialized; I understand the trybot failures now. ...
3 years, 11 months ago (2017-01-09 22:10:58 UTC) #19
haraken
On 2017/01/09 22:10:58, dcheng wrote: > https://codereview.chromium.org/2615213002/diff/120001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp > File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (right): > > https://codereview.chromium.org/2615213002/diff/120001/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp#newcode286 > ...
3 years, 11 months ago (2017-01-10 03:48:58 UTC) #22
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/2615213002/140001
3 years, 11 months ago (2017-01-10 03:49:25 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 06:22:24 UTC) #26
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/381723f8f6664f04b9524e6212e2...

Powered by Google App Engine
This is Rietveld 408576698