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

Issue 214083004: Prevents crash when a menu gets closed during drag (Closed)

Created:
6 years, 9 months ago by varkha
Modified:
6 years, 8 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Prevents crash when a menu gets closed during drag. This only gets exposed with patch https://codereview.chromium.org/196213004/ applied. DesktopNativeWidgetAura::ViewRemoved should do the same as NativeWidgetAura::ViewRemoved and clean up the drag state by calling ResetTargetViewIfEquals for the submenu view. The use case that exposes this is when a bookmark bar model gets reloaded (and menu drop down is closed) during a drag of a bookmark over the menu. BUG=349154 TEST=Open a new browser on a new tab page and immediately drag a bookmark over a bookmark bar drop down menu. After a few seconds the menu may close when bookmark menu model gets synced but the browser should not crash. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260751

Patch Set 1 #

Patch Set 2 : Prevents crash when a menu gets closed during drag (typo) #

Total comments: 4

Patch Set 3 : Prevents crash when a menu gets closed during drag (removed unnecessary part of the change) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 2 chunks +3 lines, -2 lines 1 comment Download

Messages

Total messages: 19 (0 generated)
varkha
sadrul@, sky@, can you please take a look? I am trying to land this before ...
6 years, 8 months ago (2014-03-27 20:30:27 UTC) #1
sky
https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc File ui/views/controls/menu/menu_host.cc (right): https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc#newcode98 ui/views/controls/menu/menu_host.cc:98: ViewHierarchyChanged(details); I think this is a deficiency in how ...
6 years, 8 months ago (2014-03-27 21:40:43 UTC) #2
varkha
https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc File ui/views/controls/menu/menu_host.cc (right): https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc#newcode98 ui/views/controls/menu/menu_host.cc:98: ViewHierarchyChanged(details); On 2014/03/27 21:40:43, sky wrote: > I think ...
6 years, 8 months ago (2014-03-27 22:05:09 UTC) #3
sky
https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc File ui/views/controls/menu/menu_host.cc (right): https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc#newcode98 ui/views/controls/menu/menu_host.cc:98: ViewHierarchyChanged(details); On 2014/03/27 22:05:10, varkha wrote: > On 2014/03/27 ...
6 years, 8 months ago (2014-03-27 23:31:28 UTC) #4
varkha
On 2014/03/27 23:31:28, sky wrote: > https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc > File ui/views/controls/menu/menu_host.cc (right): > > https://codereview.chromium.org/214083004/diff/20001/ui/views/controls/menu/menu_host.cc#newcode98 > ...
6 years, 8 months ago (2014-03-27 23:59:00 UTC) #5
sky
On Thu, Mar 27, 2014 at 4:59 PM, <varkha@chromium.org> wrote: > On 2014/03/27 23:31:28, sky ...
6 years, 8 months ago (2014-03-28 15:37:25 UTC) #6
varkha
sky@, the part of the change that was confusing proved to be unnecessary and wrong. ...
6 years, 8 months ago (2014-03-31 17:40:51 UTC) #7
sky
Makes sense, LGTM
6 years, 8 months ago (2014-03-31 20:21:17 UTC) #8
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 8 months ago (2014-03-31 20:34:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/214083004/60001
6 years, 8 months ago (2014-03-31 20:36:16 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 21:08:44 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-03-31 21:08:44 UTC) #12
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 8 months ago (2014-03-31 21:22:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/214083004/60001
6 years, 8 months ago (2014-03-31 21:24:13 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 21:45:37 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-03-31 21:45:38 UTC) #16
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 8 months ago (2014-04-01 01:00:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/214083004/60001
6 years, 8 months ago (2014-04-01 01:01:03 UTC) #18
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 02:17:05 UTC) #19
Message was sent while issue was closed.
Change committed as 260751

Powered by Google App Engine
This is Rietveld 408576698