зеркало из https://github.com/mozilla/gecko-dev.git
Bug 673017 - Shutdown nsIOService in NS_XPCOM_WILL_SHUTDOWN_OBSERVER_ID.
The nsIOService can use sBlockedScriptRunners and that is deleted by LayoutShutdownObserver reacting to NS_XPCOM_SHUTDOWN_OBSERVER_ID, so we cannot wait for NS_XPCOM_SHUTDOWN_OBSERVER_ID in nsIOService. --HG-- extra : rebase_source : 17c7964c9a0a0b0dae896ab88885aacaaa68a01a
This commit is contained in:
Родитель
f7f42ad40d
Коммит
ac93007443
|
@ -234,7 +234,7 @@ nsIOService::Init()
|
|||
if (observerService) {
|
||||
observerService->AddObserver(this, kProfileChangeNetTeardownTopic, PR_TRUE);
|
||||
observerService->AddObserver(this, kProfileChangeNetRestoreTopic, PR_TRUE);
|
||||
observerService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_TRUE);
|
||||
observerService->AddObserver(this, NS_XPCOM_WILL_SHUTDOWN_OBSERVER_ID, PR_TRUE);
|
||||
observerService->AddObserver(this, NS_NETWORK_LINK_TOPIC, PR_TRUE);
|
||||
}
|
||||
else
|
||||
|
@ -969,7 +969,7 @@ nsIOService::Observe(nsISupports *subject,
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (!strcmp(topic, NS_XPCOM_SHUTDOWN_OBSERVER_ID)) {
|
||||
else if (!strcmp(topic, NS_XPCOM_WILL_SHUTDOWN_OBSERVER_ID)) {
|
||||
// Remember we passed XPCOM shutdown notification to prevent any
|
||||
// changes of the offline status from now. We must not allow going
|
||||
// online after this point.
|
||||
|
|
Загрузка…
Ссылка в новой задаче