Bug 1029504 - remove an incorrect assertion on XPCOM services being available, that failed when triggered late by the CC - r=smaug CLOSED TREE

This commit is contained in:
Benoit Jacob 2014-06-24 09:06:57 -04:00
Родитель aeabff81b1
Коммит fdd24c97d1
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -155,8 +155,9 @@ WebGLObserver::UnregisterMemoryPressureEvent()
nsCOMPtr<nsIObserverService> observerService =
mozilla::services::GetObserverService();
MOZ_ASSERT(observerService);
// Do not assert on observerService here. This might be triggered by
// the cycle collector at a late enough time, that XPCOM services are
// no longer available. See bug 1029504.
if (observerService) {
observerService->RemoveObserver(this, "memory-pressure");
}