mshtml: Ignore load event on detached documents.
This commit is contained in:
parent
d69297c4b7
commit
9389184d1f
|
@ -216,7 +216,7 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
|
|||
|
||||
TRACE("(%p)\n", doc);
|
||||
|
||||
if(!doc)
|
||||
if(!doc || !doc->basedoc.window)
|
||||
return NS_ERROR_FAILURE;
|
||||
doc_obj = doc->basedoc.doc_obj;
|
||||
|
||||
|
|
Loading…
Reference in New Issue