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

Issue 2711853004: Fix a crash due to reentrancy in the widget while processing a theme changed notification after com… (Closed)

Created:
3 years, 10 months ago by ananta
Modified:
3 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

Merging to M57 Fix a crash due to reentrancy in the widget while processing a theme changed notification after coming out of fullscreen mode The crash occurs as views are removed/added while we are propagating theme changed notifications to the view hierarchy. Proposed fix is to add a recursion guard flag processing_theme_changed_ which is set in Widget::OnNativeThemeUpdated before propagating the theme changed notification and reset after the function returns. We check the flag in Widget::FrameTypeChanged() and bail. This function is called becaue Widget is registered as an observer on the BrowserView. BUG=681525 TBR=sky NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2703933002 Cr-Commit-Position: refs/heads/master@{#451505} (cherry picked from commit f7c7217dd882eac40d5d07e441db5ef9fe3c94a4) Review-Url: https://codereview.chromium.org/2711853004 Cr-Commit-Position: refs/branch-heads/2987@{#670} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/feff536f7394156055e3c86df0dd5901e2f49bb2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M ui/views/widget/widget.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 4 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
ananta
3 years, 10 months ago (2017-02-23 22:18:50 UTC) #3
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/2711853004/1
3 years, 10 months ago (2017-02-23 22:23:50 UTC) #5
commit-bot: I haz the power
CLs for remote refs other than refs/heads/master must contain NOTRY=true and NOPRESUBMIT=true in order for ...
3 years, 10 months ago (2017-02-23 22:23:52 UTC) #7
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/2711853004/1
3 years, 10 months ago (2017-02-23 22:26:06 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 22:28:47 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/feff536f7394156055e3c86df0dd...

Powered by Google App Engine
This is Rietveld 408576698