Don't delay stopping the Quicktime plugin. b=425157 r+sr=jst a1.9=beltzner

This commit is contained in:
mats.palmgren%bredband.net 2008-04-14 23:39:59 +00:00
Родитель 7690a6377c
Коммит 196f48c789
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1779,7 +1779,9 @@ DoStopPlugin(nsPluginInstanceOwner *aInstanceOwner, PRBool aDelayedStop)
else
inst->SetWindow(nsnull);
if (aDelayedStop) {
// Don't delay stopping Quicktime (bug 425157).
if (aDelayedStop &&
strcmp(::GetMIMEType(inst), "video/quicktime") != 0) {
nsCOMPtr<nsIRunnable> evt = new nsStopPluginRunnable(aInstanceOwner);
NS_DispatchToCurrentThread(evt);
@ -1796,7 +1798,9 @@ DoStopPlugin(nsPluginInstanceOwner *aInstanceOwner, PRBool aDelayedStop)
else
inst->SetWindow(nsnull);
if (aDelayedStop) {
// Don't delay stopping Quicktime (bug 425157).
if (aDelayedStop &&
strcmp(::GetMIMEType(inst), "video/quicktime") != 0) {
nsCOMPtr<nsIRunnable> evt = new nsStopPluginRunnable(aInstanceOwner);
NS_DispatchToCurrentThread(evt);