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

Issue 2697533003: Fix crash in widget destruction (Closed)

Created:
3 years, 10 months ago by yiyix
Modified:
3 years, 10 months ago
Reviewers:
dmazzoni, sadrul
CC:
chromium-reviews, oshima+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash in widget destruction During the widget destruction, chrome crashes if this widget's |view| visibility changes during |view|'s destruction. During the destruction of the widget, the root view is reset to nullptr first, then the destruction of its children views start. If |view| updates its visibility, it needs to access the root view which is set to nullptr earlier. This is where the crash happens. TEST=AXViewTest.LayoutCalledInvalidateRootView BUG=680536 Review-Url: https://codereview.chromium.org/2697533003 Cr-Commit-Position: refs/heads/master@{#450198} Committed: https://chromium.googlesource.com/chromium/src/+/437537edc6fe22fd892be8fc83a5b303378f19b7

Patch Set 1 #

Patch Set 2 : fix mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -2 lines) Patch
M ui/views/accessibility/ax_widget_obj_wrapper.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/accessibility/native_view_accessibility_unittest.cc View 1 2 chunks +69 lines, -1 line 0 comments Download

Messages

Total messages: 31 (25 generated)
yiyix
@sadrul, could you please review this change? Thank you very much
3 years, 10 months ago (2017-02-13 19:16:00 UTC) #8
dmazzoni
lgtm, thanks for the good test
3 years, 10 months ago (2017-02-13 19:27:44 UTC) #12
sadrul
lgtm thanks! (and as discussed offline, making the test aura-only should fix the failure on ...
3 years, 10 months ago (2017-02-13 20:21:36 UTC) #15
yiyix
On 2017/02/13 20:21:36, sadrul wrote: > lgtm thanks! (and as discussed offline, making the test ...
3 years, 10 months ago (2017-02-13 20:23:28 UTC) #18
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/2697533003/100001
3 years, 10 months ago (2017-02-14 02:01:27 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 02:09:36 UTC) #31
Message was sent while issue was closed.
Committed patchset #2 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/437537edc6fe22fd892be8fc83a5...

Powered by Google App Engine
This is Rietveld 408576698