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

Issue 2603953002: Remove an isGlobalInitialized() check from WindowProxy::updateDocument() (Closed)

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

Description

Remove an isGlobalInitialized() check from WindowProxy::updateDocument() Context states transit from Uninitialized to Initialized, and then to Detached. - isGlobalInitialized() returns true when the context state is Initialized or Detached. - isContextInitialized() returns true when the context state is Initialized. Thus !isContextInitialized() is stronger than !isGlobalInitialized(). Hence we can remove if(!isGlobalInitialized()) from WindowProxy::updateDocument(). BUG=677253 Committed: https://crrev.com/403eecaa2fc7ea026528eecbdeeda3483b45ca6f Cr-Commit-Position: refs/heads/master@{#440842}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 chunk +1 line, -2 lines 2 comments Download

Messages

Total messages: 12 (6 generated)
haraken
PTAL https://codereview.chromium.org/2603953002/diff/1/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/2603953002/diff/1/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp#newcode471 third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp:471: if (!isContextInitialized()) Actually I think this check is ...
3 years, 11 months ago (2016-12-28 08:45:43 UTC) #2
Yuki
LGTM. https://codereview.chromium.org/2603953002/diff/1/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (right): https://codereview.chromium.org/2603953002/diff/1/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp#newcode471 third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp:471: if (!isContextInitialized()) On 2016/12/28 08:45:43, haraken wrote: > ...
3 years, 11 months ago (2016-12-28 08:53:19 UTC) #4
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/2603953002/1
3 years, 11 months ago (2016-12-28 09:01:23 UTC) #6
haraken
On 2016/12/28 08:53:19, Yuki wrote: > LGTM. > > https://codereview.chromium.org/2603953002/diff/1/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp > File third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp (right): > ...
3 years, 11 months ago (2016-12-28 09:01:45 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2016-12-28 10:50:59 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:48:49 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/403eecaa2fc7ea026528eecbdeeda3483b45ca6f
Cr-Commit-Position: refs/heads/master@{#440842}

Powered by Google App Engine
This is Rietveld 408576698