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
parent e64d2125e2
commit 6d75d587c0

View File

@ -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);