mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1859030 - Exit early in WorkerManagerCreatedRunnable::Run if the actor cannot send. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D191094
This commit is contained in:
parent
72fb7b9829
commit
a28468e526
@ -78,8 +78,11 @@ class WorkerManagerCreatedRunnable final : public Runnable {
|
||||
Run() {
|
||||
AssertIsOnBackgroundThread();
|
||||
|
||||
if (NS_WARN_IF(!mManagerWrapper->Manager()->MaybeCreateRemoteWorker(
|
||||
mData, mWindowID, mPortIdentifier, mActor->OtherPid()))) {
|
||||
if (NS_WARN_IF(
|
||||
!mActor->CanSend() ||
|
||||
!mManagerWrapper->Manager()->MaybeCreateRemoteWorker(
|
||||
mData, mWindowID, mPortIdentifier, mActor->OtherPid()))) {
|
||||
// If we cannot send, the error won't arrive, but we may log something.
|
||||
mActor->ErrorPropagation(NS_ERROR_FAILURE);
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user