mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Should only call SetWindow() if the plugin has not been stopped.
This commit is contained in:
parent
1fb68e4d70
commit
ba1eb7a956
@ -463,7 +463,7 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
|
||||
{
|
||||
// XXX 4.x plugins don't want a SetWindow(NULL).
|
||||
|
||||
if (window == NULL)
|
||||
if (window == NULL || mStarted == PR_FALSE)
|
||||
return NS_OK;
|
||||
|
||||
NPError error;
|
||||
|
@ -463,7 +463,7 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
|
||||
{
|
||||
// XXX 4.x plugins don't want a SetWindow(NULL).
|
||||
|
||||
if (window == NULL)
|
||||
if (window == NULL || mStarted == PR_FALSE)
|
||||
return NS_OK;
|
||||
|
||||
NPError error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user