Bug 1523577 - Make sure we don't initialize tickler on child processes r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D108267
This commit is contained in:
owlishDeveloper 2021-03-15 22:13:15 +00:00
Родитель e64d2125e2
Коммит 6d75d587c0
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -46,6 +46,10 @@ Tickler::~Tickler() {
}
nsresult Tickler::Init() {
if (!XRE_IsParentProcess()) {
return NS_ERROR_FAILURE;
}
MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(!mTimer);
MOZ_ASSERT(!mActive);