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

Issue 2310453002: Disallow reentrance of FrameView::updateLifecyclePhasesInternal() (Closed)

Created:
4 years, 3 months ago by Xianzhu
Modified:
4 years, 3 months ago
Reviewers:
szager, wkorman, eae
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow reentrance of FrameView::updateLifecyclePhasesInternal() Reentrance of FrameView::updateLifecyclePhasesInternal() is bad. For example, when we are invalidating paint, we call a function which looks like a non-side-affecting getter which unexpectedly initiates another lifecycle update which may unexpectedly delete the object that the caller is processing. This CL checks reentrance of FrameView::updateLifecyclePhasesInternal(), and crash with NOTREACHED() if DCHECK is enabled or early return otherwise. BUG=590856, 621360 Committed: https://crrev.com/66f753c15a71e28594ec9502b6d1f2b9c9d14dba Cr-Commit-Position: refs/heads/master@{#416712}

Patch Set 1 #

Patch Set 2 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
Xianzhu
4 years, 3 months ago (2016-09-02 17:07:37 UTC) #5
wkorman
lgtm nit: update CL description to reflect use of NOTREACHED() vs DCHECK. Does this pass ...
4 years, 3 months ago (2016-09-02 17:39:37 UTC) #7
eae
LGTM
4 years, 3 months ago (2016-09-05 20:28:26 UTC) #15
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/2310453002/20001
4 years, 3 months ago (2016-09-06 17:53:36 UTC) #17
Xianzhu
On 2016/09/02 17:39:37, wkorman wrote: > lgtm > > nit: update CL description to reflect ...
4 years, 3 months ago (2016-09-06 17:56:13 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-06 20:39:44 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 20:41:25 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/66f753c15a71e28594ec9502b6d1f2b9c9d14dba
Cr-Commit-Position: refs/heads/master@{#416712}

Powered by Google App Engine
This is Rietveld 408576698