Bug 965468 - Make LoadStartDetectionRunnable wait for loadstart r=bent

This commit is contained in:
Tim Taubert 2014-01-29 12:32:50 -08:00
parent e0b4805516
commit 6379be0937

View File

@ -1070,7 +1070,7 @@ Proxy::HandleEvent(nsIDOMEvent* aEvent)
nsRefPtr<LoadStartDetectionRunnable> runnable =
new LoadStartDetectionRunnable(this, mXMLHttpRequestPrivate);
if (NS_FAILED(NS_DispatchToCurrentThread(runnable))) {
if (!runnable->RegisterAndDispatch()) {
NS_WARNING("Failed to dispatch LoadStartDetectionRunnable!");
}
}