use GetCurrentSession() instead of QI to get drag session from service. r=pchen/sr=sfraser. bug# 77380
git-svn-id: svn://10.0.0.236/trunk@93168 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -741,8 +741,8 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromDrop(nsIDOMEvent* aDropEvent)
|
||||
NS_WITH_SERVICE(nsIDragService, dragService, "@mozilla.org/widget/dragservice;1", &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIDragSession> dragSession(do_QueryInterface(dragService));
|
||||
|
||||
nsCOMPtr<nsIDragSession> dragSession;
|
||||
dragService->GetCurrentSession(getter_AddRefs(dragService)));
|
||||
if (!dragSession) return NS_OK;
|
||||
|
||||
// Get the nsITransferable interface for getting the data from the drop
|
||||
|
||||
Reference in New Issue
Block a user