Remove a bogus check added in bug 572618; a=me DONTBUILD
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 23 Nov 2010 13:09:41 -0500
changeset 58086 5f38f9a553453f24946f8457f1203aad66ff81d3
parent 58085 29323301bb1717bff13fc9d0e8eb159dad8107b3
child 58087 3b157fcde70875a7a2dbcf6102bf1c11af68a069
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersme
bugs572618
milestone2.0b8pre
Remove a bogus check added in bug 572618; a=me DONTBUILD
editor/libeditor/base/nsEditorEventListener.cpp
--- a/editor/libeditor/base/nsEditorEventListener.cpp
+++ b/editor/libeditor/base/nsEditorEventListener.cpp
@@ -708,17 +708,18 @@ nsEditorEventListener::CanDrop(nsIDOMDra
   nsCOMPtr<nsIDOMNSDataTransfer> dataTransferNS(do_QueryInterface(dataTransfer));
   NS_ENSURE_TRUE(dataTransferNS, PR_FALSE);
 
   // If there is no source node, this is probably an external drag and the
   // drop is allowed. The later checks rely on checking if the drag target
   // is the same as the drag source.
   nsCOMPtr<nsIDOMNode> sourceNode;
   dataTransferNS->GetMozSourceNode(getter_AddRefs(sourceNode));
-  NS_ENSURE_TRUE(sourceNode, PR_TRUE);
+  if (!sourceNode)
+    return PR_TRUE;
 
   // There is a source node, so compare the source documents and this document.
   // Disallow drops on the same document.
 
   nsCOMPtr<nsIDOMDocument> domdoc;
   nsresult rv = mEditor->GetDocument(getter_AddRefs(domdoc));
   NS_ENSURE_SUCCESS(rv, PR_FALSE);