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

Issue 149466: Fix a crash that happens if a tab is closed while (Closed)

Created:
11 years, 5 months ago by tony
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix a crash that happens if a tab is closed while we're in the middle of a drag originating from the tab. The problem is that the tab gets deleted out from under the drag operation which is happening in a nested message loop. To work around this, if we're in the middle of a drag and we get a tab close request, delay the tab close until after the drag operation is finished. BUG=16280

Patch Set 1 #

Total comments: 3

Patch Set 2 : use a timer #

Patch Set 3 : add comment to member var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -10 lines) Patch
M base/base_drag_source.h View 2 chunks +10 lines, -0 lines 0 comments Download
M base/base_drag_source.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_drag_source.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_view_win.h View 1 2 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_view_win.cc View 1 7 chunks +31 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tony
11 years, 5 months ago (2009-07-10 18:18:57 UTC) #1
darin (slow to review)
LGTM http://codereview.chromium.org/149466/diff/1/7 File chrome/browser/views/tab_contents/tab_contents_view_win.cc (right): http://codereview.chromium.org/149466/diff/1/7#newcode52 Line 52: view_->CloseTab(); Are you certain that view_ will ...
11 years, 5 months ago (2009-07-10 20:58:27 UTC) #2
tony
http://codereview.chromium.org/149466/diff/1/7 File chrome/browser/views/tab_contents/tab_contents_view_win.cc (right): http://codereview.chromium.org/149466/diff/1/7#newcode52 Line 52: view_->CloseTab(); On 2009/07/10 20:58:27, darin wrote: > Are ...
11 years, 5 months ago (2009-07-10 21:17:19 UTC) #3
darin (slow to review)
http://codereview.chromium.org/149466/diff/1/7 File chrome/browser/views/tab_contents/tab_contents_view_win.cc (right): http://codereview.chromium.org/149466/diff/1/7#newcode52 Line 52: view_->CloseTab(); Neither of my suggestions require changing TabContentsView ...
11 years, 5 months ago (2009-07-10 21:35:43 UTC) #4
tony
On 2009/07/10 21:35:43, darin wrote: > http://codereview.chromium.org/149466/diff/1/7 > File chrome/browser/views/tab_contents/tab_contents_view_win.cc (right): > > http://codereview.chromium.org/149466/diff/1/7#newcode52 > ...
11 years, 5 months ago (2009-07-10 21:53:37 UTC) #5
darin (slow to review)
11 years, 5 months ago (2009-07-10 21:58:38 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698