mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status
This commit is contained in:
parent
df880ae53f
commit
98546534b0
17 changed files with 102 additions and 56 deletions
|
|
@ -340,7 +340,7 @@ WebSocketImpl::PrintErrorOnConsole(const char *aBundleURI,
|
|||
new PrintErrorOnConsoleRunnable(this, aBundleURI, aError, aFormatStrings,
|
||||
aFormatStringsLen);
|
||||
ErrorResult rv;
|
||||
runnable->Dispatch(rv);
|
||||
runnable->Dispatch(Killing, rv);
|
||||
// XXXbz this seems totally broken. We should be propagating this out, but
|
||||
// none of our callers really propagate anything usefully. Come to think of
|
||||
// it, why is this a syncrunnable anyway? Can't this be a fire-and-forget
|
||||
|
|
@ -629,7 +629,7 @@ WebSocketImpl::Disconnect()
|
|||
RefPtr<DisconnectInternalRunnable> runnable =
|
||||
new DisconnectInternalRunnable(this);
|
||||
ErrorResult rv;
|
||||
runnable->Dispatch(rv);
|
||||
runnable->Dispatch(Killing, rv);
|
||||
// XXXbz this seems totally broken. We should be propagating this out, but
|
||||
// where to, exactly?
|
||||
rv.SuppressException();
|
||||
|
|
@ -1293,7 +1293,7 @@ WebSocket::ConstructorCommon(const GlobalObject& aGlobal,
|
|||
new InitRunnable(webSocketImpl, !!aTransportProvider, aUrl,
|
||||
protocolArray, nsDependentCString(file.get()), lineno,
|
||||
column, aRv, &connectionFailed);
|
||||
runnable->Dispatch(aRv);
|
||||
runnable->Dispatch(Terminating, aRv);
|
||||
}
|
||||
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
|
|
@ -1377,7 +1377,7 @@ WebSocket::ConstructorCommon(const GlobalObject& aGlobal,
|
|||
"not yet implemented");
|
||||
RefPtr<AsyncOpenRunnable> runnable =
|
||||
new AsyncOpenRunnable(webSocket->mImpl, aRv);
|
||||
runnable->Dispatch(aRv);
|
||||
runnable->Dispatch(Terminating, aRv);
|
||||
}
|
||||
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue