mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +00:00
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:
parent
b00e140232
commit
71c2d7a3b9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user