Bug 1397231 - Skip new URLClassifierLocalChild when ContentChild is shutting down r=Ehsan

MozReview-Commit-ID: HRv5DpiPwmB

--HG--
extra : rebase_source : d5ffe6d1f9520a9031e9c5112e1bc424cf366407
This commit is contained in:
Thomas Nguyen 2017-09-07 16:16:43 +08:00
Родитель 98d8eae470
Коммит a8c2c418b0
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1800,7 +1800,9 @@ nsUrlClassifierDBService::AsyncClassifyLocalWithTables(nsIURI *aURI,
using namespace mozilla::ipc;
ContentChild* content = ContentChild::GetSingleton();
MOZ_ASSERT(content);
if (NS_WARN_IF(!content || content->IsShuttingDown())) {
return NS_ERROR_FAILURE;
}
auto actor = new URLClassifierLocalChild();