Bug 874842 - Return Event instead of nsIDOMEvent

This commit is contained in:
Aryeh Gregor
2015-08-12 14:39:31 +03:00
parent 38e1f3ca4b
commit 6e1dae88e0
96 changed files with 518 additions and 712 deletions

View File

@@ -1467,12 +1467,8 @@ nsXMLHttpRequest::GetLoadGroup() const
nsresult
nsXMLHttpRequest::CreateReadystatechangeEvent(nsIDOMEvent** aDOMEvent)
{
nsresult rv = EventDispatcher::CreateEvent(this, nullptr, nullptr,
NS_LITERAL_STRING("Events"),
aDOMEvent);
if (NS_FAILED(rv)) {
return rv;
}
nsRefPtr<Event> event = NS_NewDOMEvent(this, nullptr, nullptr);
event.forget(aDOMEvent);
(*aDOMEvent)->InitEvent(NS_LITERAL_STRING(READYSTATE_STR),
false, false);