mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
bug 851674: content: nsContentUtils::CheckForSubFrameDrop: don't dereference null pointer (r=smaug)
This commit is contained in:
parent
1e1e9fd4c0
commit
2c481b6270
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user