зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1750525: Do not IPC_FAIL in BackgroundRequestChild::RecvPreprocess on SendContinue dispatch failure. r=dom-storage-reviewers,janv
If SendContinue(rv) fails, our channel is already dead so there is no need for another IPC_FAIL. Differential Revision: https://phabricator.services.mozilla.com/D136134
This commit is contained in:
Родитель
e6ac5384f1
Коммит
6a6cf01877
|
@ -2635,14 +2635,11 @@ mozilla::ipc::IPCResult BackgroundRequestChild::RecvPreprocess(
|
|||
}
|
||||
|
||||
default:
|
||||
MOZ_CRASH("Unknown params type!");
|
||||
return IPC_FAIL(this, "Unknown params type!");
|
||||
}
|
||||
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
if (!SendContinue(rv)) {
|
||||
return IPC_FAIL_NO_REASON(this);
|
||||
}
|
||||
return IPC_OK();
|
||||
QM_WARNONLY_TRY(OkIf(SendContinue(rv)));
|
||||
}
|
||||
|
||||
return IPC_OK();
|
||||
|
|
Загрузка…
Ссылка в новой задаче