Should only call SetWindow() if the plugin has not been stopped.
git-svn-id: svn://10.0.0.236/trunk@33837 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user