Addressing #22954, fixing the glitch when layout returned OK even if did not find a plugin causing a crash, r=pollmann

This commit is contained in:
av%netscape.com 2000-07-10 21:51:15 +00:00
Родитель 09160b9a9f
Коммит bfb49167ac
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -311,6 +311,8 @@ nsLayoutDLF::CreateInstance(const char *aCommand,
{
if(pluginHost->IsPluginEnabledForType(aContentType) == NS_OK)
return NS_NewPluginContentViewer(aCommand, aDocListener, aDocViewer);
else
return NS_ERROR_FAILURE;
}
return rv;