зеркало из https://github.com/mozilla/pjs.git
Bug 207306 plugin host should be destoryed on Observe() "NS_XPCOM_SHUTDOWN_OBSERVER_ID" rarther than on "quit-application"
patch by bugspam.Callek@gmail.com r=jst sr=jst a=asa
This commit is contained in:
Родитель
6d2f6429de
Коммит
d70df2afca
|
@ -2550,7 +2550,6 @@ nsPluginHostImpl::nsPluginHostImpl()
|
|||
nsCOMPtr<nsIObserverService> obsService = do_GetService("@mozilla.org/observer-service;1");
|
||||
if (obsService)
|
||||
{
|
||||
obsService->AddObserver(this, "quit-application", PR_FALSE);
|
||||
obsService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_FALSE);
|
||||
}
|
||||
|
||||
|
@ -6120,11 +6119,9 @@ NS_IMETHODIMP nsPluginHostImpl::Observe(nsISupports *aSubject,
|
|||
#ifdef NS_DEBUG
|
||||
printf("nsPluginHostImpl::Observe \"%s\"\n", aTopic ? aTopic : "");
|
||||
#endif
|
||||
if (!nsCRT::strcmp("quit-application", aTopic))
|
||||
if (!nsCRT::strcmp(NS_XPCOM_SHUTDOWN_OBSERVER_ID, aTopic))
|
||||
{
|
||||
Destroy();
|
||||
} else if (!nsCRT::strcmp(NS_XPCOM_SHUTDOWN_OBSERVER_ID, aTopic))
|
||||
{
|
||||
UnloadUnusedLibraries();
|
||||
}
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче