DescriptionAdd 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 #
Messages
Total messages: 13 (8 generated)
|