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

Issue 2741923002: Add CHECKs in WindowProxy initialization/detach to enforce invariants (Closed)

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

Description

Add CHECKs in WindowProxy initialization/detach to enforce invariants This changes the DCHECKs in disposeContext() to CHECKs and adds a new CHECK in setGlobal(). This should help catch situations where: - an already initialized global proxy object is overwritten but not reinitialized: this can happen during WebFrame::swap() if the embedder tries to access other script contexts, leading to out of sync state. - the global proxy object that WindowProxy retains and the global proxy object retained by the v8::Context differ, also leading to out of sync state. BUG=700077 Review-Url: https://codereview.chromium.org/2741923002 Cr-Commit-Position: refs/heads/master@{#456016} Committed: https://chromium.googlesource.com/chromium/src/+/e8b77cc6ed024fb219d6de46378bf18eb05ae7f6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -12 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
dcheng
WDYT? All the previous crashes were from instances of this bug, so this should help ...
3 years, 9 months ago (2017-03-10 05:18:24 UTC) #4
Yuki
LGTM.
3 years, 9 months ago (2017-03-10 06:25:01 UTC) #5
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/2741923002/1
3 years, 9 months ago (2017-03-10 07:20:18 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/e8b77cc6ed024fb219d6de46378bf18eb05ae7f6
3 years, 9 months ago (2017-03-10 07:25:26 UTC) #12
haraken
3 years, 9 months ago (2017-03-10 09:13:39 UTC) #13
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698