зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1774467: Fixed bug where premature shutdown of dedicated worker could lead to browser crash. r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D151288
This commit is contained in:
Родитель
710fefa5e0
Коммит
24871b6adf
|
@ -360,6 +360,7 @@ already_AddRefed<Promise> ExecuteOpOnMainOrWorkerThread(
|
|||
RefPtr<PromiseWorkerProxy> promiseProxy =
|
||||
PromiseWorkerProxy::Create(workerPrivate, promise);
|
||||
if (NS_WARN_IF(!promiseProxy)) {
|
||||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче