mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 851674: content: nsContentUtils::CheckForSubFrameDrop: don't dereference null pointer (r=smaug)
This commit is contained in:
parent
5d5b4c184f
commit
0a2a6be894
@ -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