bug 1216916 clean up when InvokeDragSession() fails r=roc

This commit is contained in:
Karl Tomlinson
2015-10-21 22:16:40 +13:00
parent b78d6a06db
commit 13517b1a0a
10 changed files with 63 additions and 55 deletions

View File

@@ -225,7 +225,15 @@ nsBaseDragService::InvokeDragSession(nsIDOMNode *aDOMNode,
// are in the wrong coord system, so turn off mouse capture.
nsIPresShell::ClearMouseCapture(nullptr);
return NS_OK;
nsresult rv = InvokeDragSessionImpl(aTransferableArray,
aDragRgn, aActionType);
if (NS_FAILED(rv)) {
mSourceNode = nullptr;
mSourceDocument = nullptr;
}
return rv;
}
NS_IMETHODIMP