Bug 758363: Implement NPN_ReloadPlugins for out-of-process plugins. r=bsmedberg

This commit is contained in:
Josh Aas 2012-05-30 10:23:03 -04:00
parent 1fcfe4455c
commit 24a58d4585
4 changed files with 16 additions and 1 deletions

View File

@ -128,6 +128,8 @@ parent:
sync NPN_SetException(nullable PPluginScriptableObject actor,
nsCString message);
async NPN_ReloadPlugins(bool aReloadPages);
};
} // namespace plugins

View File

@ -1263,7 +1263,8 @@ _reloadplugins(NPBool aReloadPages)
{
PLUGIN_LOG_DEBUG_FUNCTION;
ENSURE_PLUGIN_THREAD_VOID();
NS_WARNING("Not yet implemented!");
PluginModuleChild::current()->SendNPN_ReloadPlugins(!!aReloadPages);
}
void NP_CALLBACK

View File

@ -1153,3 +1153,12 @@ PluginModuleParent::RecvNPN_SetException(PPluginScriptableObjectParent* aActor,
mozilla::plugins::parent::_setexception(aNPObj, NullableStringGet(aMessage));
return true;
}
bool
PluginModuleParent::RecvNPN_ReloadPlugins(const bool& aReloadPages)
{
PLUGIN_LOG_DEBUG(("%s", FULLFUNCTION));
mozilla::plugins::parent::_reloadplugins(aReloadPages);
return true;
}

View File

@ -185,6 +185,9 @@ protected:
RecvNPN_SetException(PPluginScriptableObjectParent* aActor,
const nsCString& aMessage);
NS_OVERRIDE virtual bool
RecvNPN_ReloadPlugins(const bool& aReloadPages);
static PluginInstanceParent* InstCast(NPP instance);
static BrowserStreamParent* StreamCast(NPP instance, NPStream* s);