Bug 598862, part 3: Have plugin parents keep a 'proxy ref' to plugin X resources by duping the plugin's X socket. r=karlt
This commit is contained in:
@@ -545,6 +545,19 @@ PluginModuleParent::NPP_SetValue(NPP instance, NPNVariable variable,
|
||||
return i->NPP_SetValue(variable, value);
|
||||
}
|
||||
|
||||
bool
|
||||
PluginModuleParent::RecvBackUpXResources(const FileDescriptor& aXSocketFd)
|
||||
{
|
||||
#ifndef MOZ_X11
|
||||
NS_RUNTIMEABORT("This message only makes sense on X11 platforms");
|
||||
#else
|
||||
NS_ABORT_IF_FALSE(0 > mPluginXSocketFdDup.mFd,
|
||||
"Already backed up X resources??");
|
||||
mPluginXSocketFdDup.mFd = aXSocketFd.fd;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
PluginModuleParent::AnswerNPN_UserAgent(nsCString* userAgent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user