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:
Chris Jones
2010-11-08 20:48:59 -06:00
parent 71652b5d20
commit 909899b3df
4 changed files with 48 additions and 0 deletions

View File

@@ -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)
{