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

Issue 795303002: Fix crash when the source browser window is deleted during a drag (Closed)

Created:
6 years ago by pkotwicz
Modified:
6 years ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org, noyau+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@drag_drop_end_move_loop2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash when the source browser window is deleted during a drag This CL makes Widget::RunShellDrag() and DesktopDragDropClientWin not crash if the browser window is deleted during a drag-drop operation. An extension can delete the browser window during the drag-drop operation. BUG=440534 TEST=BookmarkBarViewTest22.* Committed: https://crrev.com/460bdd69c6f96191a4293da61e9e4999acd0f5ff Cr-Commit-Position: refs/heads/master@{#309360}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -7 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 6 chunks +76 lines, -5 lines 0 comments Download
M chrome/test/base/view_event_test_base.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc View 1 3 chunks +10 lines, -2 lines 0 comments Download
M ui/views/widget/widget.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
pkotwicz
Scott, can you please take a look?
6 years ago (2014-12-15 17:39:51 UTC) #8
sky
https://codereview.chromium.org/795303002/diff/120001/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc (right): https://codereview.chromium.org/795303002/diff/120001/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc#newcode67 ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc:67: if (drag_drop_in_progress_) Should this be a DCHECK?
6 years ago (2014-12-15 20:44:13 UTC) #9
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/795303002/diff/120001/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc (right): https://codereview.chromium.org/795303002/diff/120001/ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc#newcode67 ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc:67: if (drag_drop_in_progress_) ...
6 years ago (2014-12-15 21:54:11 UTC) #10
sky
LGTM
6 years ago (2014-12-15 22:59:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795303002/140001
6 years ago (2014-12-16 15:45:34 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/8975)
6 years ago (2014-12-16 17:21:23 UTC) #15
pkotwicz
I am landing this CL with the test disabled on Windows. (So that I can ...
6 years ago (2014-12-20 18:46:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795303002/160001
6 years ago (2014-12-20 18:46:39 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:160001)
6 years ago (2014-12-20 20:25:35 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/460bdd69c6f96191a4293da61e9e4999acd0f5ff Cr-Commit-Position: refs/heads/master@{#309360}
6 years ago (2014-12-20 20:26:15 UTC) #20
Avi (use Gerrit)
6 years ago (2014-12-21 00:36:16 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:160001) has been created in
https://codereview.chromium.org/818983002/ by avi@chromium.org.

The reason for reverting is: Since landing this, Linux ChromiumOS Ozone Tests
(1) is failing three DND tests.

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...

@@@STEP_LOG_LINE@DND@BookmarkBarViewTest5.DND (run #1):@@@
@@@STEP_LOG_LINE@DND@[ RUN      ] BookmarkBarViewTest5.DND@@@
@@@STEP_LOG_LINE@DND@@@@
@@@STEP_LOG_LINE@DND@BookmarkBarViewTest5.DND (run #2):@@@
@@@STEP_LOG_LINE@DND@[ RUN      ] BookmarkBarViewTest5.DND@@@
@@@STEP_LOG_LINE@DND@@@@
@@@STEP_LOG_LINE@DND@BookmarkBarViewTest5.DND (run #3):@@@
@@@STEP_LOG_LINE@DND@[ RUN      ] BookmarkBarViewTest5.DND@@@
@@@STEP_LOG_LINE@DND@@@@
@@@STEP_LOG_LINE@DND@BookmarkBarViewTest5.DND (run #4):@@@
@@@STEP_LOG_LINE@DND@[ RUN      ] BookmarkBarViewTest5.DND@@@
@@@STEP_LOG_LINE@DND@@@@
@@@STEP_LOG_END@DND@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@BookmarkBarViewTest7.DNDToDifferentMenu (run
#1):@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@[ RUN      ]
BookmarkBarViewTest7.DNDToDifferentMenu@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@BookmarkBarViewTest7.DNDToDifferentMenu (run
#2):@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@[ RUN      ]
BookmarkBarViewTest7.DNDToDifferentMenu@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@BookmarkBarViewTest7.DNDToDifferentMenu (run
#3):@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@[ RUN      ]
BookmarkBarViewTest7.DNDToDifferentMenu@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@BookmarkBarViewTest7.DNDToDifferentMenu (run
#4):@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@[ RUN      ]
BookmarkBarViewTest7.DNDToDifferentMenu@@@
@@@STEP_LOG_LINE@DNDToDifferentMenu@@@@
@@@STEP_LOG_END@DNDToDifferentMenu@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@BookmarkBarViewTest8.DNDBackToOrigi...
(run #1):@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@[ RUN      ]
BookmarkBarViewTest8.DNDBackToOriginatingMenu@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@BookmarkBarViewTest8.DNDBackToOrigi...
(run #2):@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@[ RUN      ]
BookmarkBarViewTest8.DNDBackToOriginatingMenu@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@BookmarkBarViewTest8.DNDBackToOrigi...
(run #3):@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@[ RUN      ]
BookmarkBarViewTest8.DNDBackToOriginatingMenu@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@BookmarkBarViewTest8.DNDBackToOrigi...
(run #4):@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@[ RUN      ]
BookmarkBarViewTest8.DNDBackToOriginatingMenu@@@
@@@STEP_LOG_LINE@DNDBackToOriginatingMenu@@@@
@@@STEP_LOG_END@DNDBackToOriginatingMenu@@@
.

Powered by Google App Engine
This is Rietveld 408576698