зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
aeabff81b1
Коммит
fdd24c97d1
|
@ -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");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче