Commit 481abdb3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't do anything in handle_htmlevent if document is already detached.

parent e374449e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment