mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 758363: Implement NPN_ReloadPlugins for out-of-process plugins. r=bsmedberg
This commit is contained in:
parent
1fcfe4455c
commit
24a58d4585
@ -128,6 +128,8 @@ parent:
|
||||
|
||||
sync NPN_SetException(nullable PPluginScriptableObject actor,
|
||||
nsCString message);
|
||||
|
||||
async NPN_ReloadPlugins(bool aReloadPages);
|
||||
};
|
||||
|
||||
} // namespace plugins
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user