| Index: ui/views/controls/menu/menu_controller.cc
|
| diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
|
| index aa608d550c6b2ca09739a922c22983c4f7904740..29996dc50595c0d6e40e1c74da790c5840ca7d2c 100644
|
| --- a/ui/views/controls/menu/menu_controller.cc
|
| +++ b/ui/views/controls/menu/menu_controller.cc
|
| @@ -532,7 +532,13 @@ void MenuController::Cancel(ExitType type) {
|
| // WARNING: the call to MenuClosed deletes us.
|
| return;
|
| }
|
| - ExitAsyncRun();
|
| +
|
| + // On Windows and Linux the destruction of this menu's Widget leads to the
|
| + // teardown of the platform specific drag-and-drop Widget. Do not shutdown
|
| + // while dragging, leave the Widget hidden until drag-and-drop has completed,
|
| + // at which point all menus will be destroyed.
|
| + if (!drag_in_progress_)
|
| + ExitAsyncRun();
|
| }
|
|
|
| void MenuController::AddNestedDelegate(
|
|
|