Chromium Code Reviews
DescriptionMerging 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 #
Messages
Total messages: 13 (8 generated)
|
||||||||||||||||||||||||||||