mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 621366 - Content process nsDOMStorageManager observes notifications needlessly; r=honzab a=jst
--HG-- extra : rebase_source : 1e5a0785225b16402a0e864357605b3ae52382c4
This commit is contained in:
parent
b0453d9ad0
commit
452180b28a
@ -271,6 +271,12 @@ nsDOMStorageManager::Initialize()
|
||||
|
||||
NS_ADDREF(gStorageManager);
|
||||
|
||||
#ifdef MOZ_IPC
|
||||
// No observers needed in non-chrome
|
||||
if (XRE_GetProcessType() != GeckoProcessType_Default)
|
||||
return NS_OK;
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIObserverService> os = mozilla::services::GetObserverService();
|
||||
if (!os)
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user