зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1542535 - Ensure QuotaManagerService exists before calling AbortOperationsForProcess in ContentParent; r=asuth
This commit is contained in:
Родитель
12c1c56204
Коммит
cbaad6cbbc
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче