mshtml: Don't do anything in handle_htmlevent if document is already detached.
This commit is contained in:
parent
e374449e30
commit
481abdb304
|
@ -288,6 +288,11 @@ static nsresult NSAPI handle_htmlevent(nsIDOMEventListener *iface, nsIDOMEvent *
|
|||
|
||||
TRACE("%p\n", This->This);
|
||||
|
||||
if(!doc) {
|
||||
WARN("NULL doc\n");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsAString_Init(&type_str, NULL);
|
||||
nsIDOMEvent_GetType(event, &type_str);
|
||||
nsAString_GetData(&type_str, &type);
|
||||
|
|
Loading…
Reference in New Issue