Bug 1265243 - Do not initialize CacheObserver in the child process, r=honzab

This commit is contained in:
Michal Novotny
2016-04-20 11:29:50 +02:00
parent 1360105c5b
commit 59e9915f08

View File

@@ -13,6 +13,7 @@
#include "mozilla/Preferences.h"
#include "mozilla/TimeStamp.h"
#include "nsServiceManagerUtils.h"
#include "mozilla/net/NeckoCommon.h"
#include "prsystem.h"
#include <time.h>
#include <math.h>
@@ -104,6 +105,10 @@ NS_IMPL_ISUPPORTS(CacheObserver,
nsresult
CacheObserver::Init()
{
if (IsNeckoChild()) {
return NS_OK;
}
if (sSelf) {
return NS_OK;
}