Bug 1542535 - Ensure QuotaManagerService exists before calling AbortOperationsForProcess in ContentParent; r=asuth

This commit is contained in:
Jan Varga 2019-04-06 21:11:59 +02:00
Родитель 12c1c56204
Коммит cbaad6cbbc
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1377,8 +1377,8 @@ void ContentParent::ShutDownProcess(ShutDownMethod aMethod) {
using mozilla::dom::quota::QuotaManagerService;
if (QuotaManagerService* quotaManagerService = QuotaManagerService::Get()) {
quotaManagerService->AbortOperationsForProcess(mChildID);
if (QuotaManagerService* qms = QuotaManagerService::GetOrCreate()) {
qms->AbortOperationsForProcess(mChildID);
}
// If Close() fails with an error, we'll end up back in this function, but