mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backing out ade671d15514
This commit is contained in:
parent
7faddbb34c
commit
5509213034
@ -109,9 +109,6 @@ public:
|
||||
bool IsRunning() {
|
||||
return RUNNING == mRunning;
|
||||
}
|
||||
bool HasStartedDestroying() {
|
||||
return mRunning >= DESTROYING;
|
||||
}
|
||||
|
||||
// Indicates whether the plugin is running normally or being shut down
|
||||
bool CanFireNotifications() {
|
||||
|
@ -1218,7 +1218,7 @@ nsPluginHost::TagForPlugin(nsNPAPIPlugin* aPlugin)
|
||||
}
|
||||
}
|
||||
// a plugin should never exist without a corresponding tag
|
||||
NS_ERROR("TagForPlugin has failed");
|
||||
NS_ASSERTION(PR_FALSE, "TagForPlugin has failed");
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
@ -3209,12 +3209,10 @@ nsPluginHost::StopPluginInstance(nsIPluginInstance* aInstance)
|
||||
PLUGIN_LOG(PLUGIN_LOG_NORMAL,
|
||||
("nsPluginHost::StopPluginInstance called instance=%p\n",aInstance));
|
||||
|
||||
nsNPAPIPluginInstance* instance = static_cast<nsNPAPIPluginInstance*>(aInstance);
|
||||
if (instance->HasStartedDestroying())
|
||||
return NS_OK;
|
||||
|
||||
aInstance->Stop();
|
||||
|
||||
nsNPAPIPluginInstance* instance = static_cast<nsNPAPIPluginInstance*>(aInstance);
|
||||
|
||||
// if the plugin does not want to be 'cached' just remove it
|
||||
PRBool doCache = PR_TRUE;
|
||||
aInstance->ShouldCache(&doCache);
|
||||
|
Loading…
Reference in New Issue
Block a user