b=721762 don't startDragSession when invokeDragSession will fail r=enndeakin

--HG--
extra : transplant_source : f%A7%A13%B1%C1%5E%A2%3B%D2C%1F%AC%E5%A2%92%13G0%9B
This commit is contained in:
Karl Tomlinson 2012-02-02 15:10:43 +13:00
parent 3ca6d13e3c
commit 87bba57d29

View File

@ -345,6 +345,8 @@ nsDragService::InvokeDragSession(nsIDOMNode *aDOMNode,
mSourceRegion = nsnull;
if (context) {
StartDragSession();
// GTK uses another hidden window for receiving mouse events.
mGrabWidget = gtk_grab_get_current();
if (mGrabWidget) {
@ -361,8 +363,6 @@ nsDragService::InvokeDragSession(nsIDOMNode *aDOMNode,
gtk_target_list_unref(sourceList);
StartDragSession();
return rv;
}