зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 94349 - Work around for nsIObserverService problem
r=ccarlen and sr=darin
This commit is contained in:
Родитель
41bf2e10fe
Коммит
59dfce9a7b
|
@ -205,10 +205,15 @@ NS_IMETHODIMP nsAutoConfig::Observe(nsISupports *aSubject,
|
|||
rv = DownloadAutoCfg();
|
||||
|
||||
// We are done with AutoConfig, removing it from the observer list
|
||||
nsCOMPtr<nsIObserverService> observerService =
|
||||
do_GetService(NS_OBSERVERSERVICE_CONTRACTID, &rv);
|
||||
if (observerService)
|
||||
rv = observerService->RemoveObserver(this,NS_LITERAL_STRING("profile-after-change").get());
|
||||
|
||||
// Commenting out the RemoveObserver code, it is causing
|
||||
// nsIObserverService to skip the next element. bug 94349
|
||||
|
||||
/* nsCOMPtr<nsIObserverService> observerService =
|
||||
do_GetService(NS_OBSERVERSERVICE_CONTRACTID, &rv);
|
||||
if (observerService)
|
||||
rv = observerService->RemoveObserver(this,NS_LITERAL_STRING("profile-after-change").get());
|
||||
*/
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче