mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965468 - Make LoadStartDetectionRunnable wait for loadstart r=bent
This commit is contained in:
parent
e0b4805516
commit
6379be0937
@ -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!");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user