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

Issue 159889: GTK: Fancy html5 draggy stuff. (Closed)

Created:
11 years, 4 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
tony, Evan Martin
CC:
chromium-reviews_googlegroups.com, brettw, Ben Goodger (Google)
Visibility:
Public.

Description

GTK: Fancy html5 draggy stuff. Also, don't crash in release mode when the tab contents is deleted during a drag. 1) Source side: when the tab contents is going down, abort the current drag (if any). Initiate drags on a GtkInvisible (matching firefox, among other programs I assume). This lets us give up ownership of the drag widget and let the drag unwind. 2) Destination side: make a seemingly harmless GTK assert point to a crbug bug. This warrants further investigation. BUG=16249 TEST=drag around ntp thumbnails BUG=18557 In release mode, you should be able to do all the following without crashing or getting any asserts besides the two mentioned in 18557 TEST=drag something from gedit over a tab that closes TEST=drag something from the render view over a tab that closes TEST=drag something from the render view off of the browser from within a tab that closes TEST=repeat all the above with a tab that is being swapped out according to the repro steps in bug 16073 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22542

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -60 lines) Patch
M chrome/app/chrome_dll_main.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.h View 1 6 chunks +42 lines, -10 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_gtk.cc View 1 20 chunks +115 lines, -50 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Evan Stade
11 years, 4 months ago (2009-08-05 00:17:09 UTC) #1
Evan Martin
http://codereview.chromium.org/159889/diff/1/3 File chrome/browser/tab_contents/tab_contents_view_gtk.cc (right): http://codereview.chromium.org/159889/diff/1/3#newcode879 Line 879: MessageLoopForUI::current()->RemoveObserver(this); Are you sure this runs in all ...
11 years, 4 months ago (2009-08-05 00:22:10 UTC) #2
tony
http://codereview.chromium.org/159889/diff/1/3 File chrome/browser/tab_contents/tab_contents_view_gtk.cc (right): http://codereview.chromium.org/159889/diff/1/3#newcode741 Line 741: tab_contents()->render_view_host()->DragSourceMovedTo( This is probably where the d&d bugs ...
11 years, 4 months ago (2009-08-05 00:24:49 UTC) #3
Evan Stade
yea, you guys are right, it does crash if the tab is closed during the ...
11 years, 4 months ago (2009-08-05 00:30:08 UTC) #4
tony
On 2009/08/05 00:30:08, Evan Stade wrote: > Tony, what happens when the tab is swapped ...
11 years, 4 months ago (2009-08-05 00:41:23 UTC) #5
Evan Stade
updated
11 years, 4 months ago (2009-08-05 20:55:30 UTC) #6
tony
11 years, 4 months ago (2009-08-05 21:32:43 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698