bug 851674: content: nsContentUtils::CheckForSubFrameDrop: don't dereference null pointer (r=smaug)

This commit is contained in:
Mook 2013-03-15 15:02:01 -07:00
parent 5d5b4c184f
commit 0a2a6be894

View File

@ -5293,7 +5293,7 @@ bool
nsContentUtils::CheckForSubFrameDrop(nsIDragSession* aDragSession, nsDragEvent* aDropEvent)
{
nsCOMPtr<nsIContent> target = do_QueryInterface(aDropEvent->originalTarget);
if (!target && !target->OwnerDoc()) {
if (!target) {
return true;
}