From 4ac3b93a3a89cd7f5842b286215404d9e479329b Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Tue, 23 Nov 2010 13:09:41 -0500 Subject: [PATCH] Remove a bogus check added in bug 572618; a=me DONTBUILD --- editor/libeditor/base/nsEditorEventListener.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/libeditor/base/nsEditorEventListener.cpp b/editor/libeditor/base/nsEditorEventListener.cpp index 9a4eb2c75b2..5344958416a 100644 --- a/editor/libeditor/base/nsEditorEventListener.cpp +++ b/editor/libeditor/base/nsEditorEventListener.cpp @@ -713,7 +713,8 @@ nsEditorEventListener::CanDrop(nsIDOMDragEvent* aEvent) // is the same as the drag source. nsCOMPtr 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.