Bug 1307708 - Make the GetKeyState IPDL call sync (it was intr). r=jimm

This should avoid destruction messages from deleting the actor while the intr message is awaiting a response.
This commit is contained in:
David Parks
2017-02-06 11:53:59 -08:00
parent 338a4a24e9
commit 5691514b86
4 changed files with 7 additions and 7 deletions

View File

@@ -3403,19 +3403,19 @@ PluginModuleChromeParent::RecvProfile(const nsCString& aProfile)
}
mozilla::ipc::IPCResult
PluginModuleParent::AnswerGetKeyState(const int32_t& aVirtKey, int16_t* aRet)
PluginModuleParent::RecvGetKeyState(const int32_t& aVirtKey, int16_t* aRet)
{
return IPC_FAIL_NO_REASON(this);
}
mozilla::ipc::IPCResult
PluginModuleChromeParent::AnswerGetKeyState(const int32_t& aVirtKey,
PluginModuleChromeParent::RecvGetKeyState(const int32_t& aVirtKey,
int16_t* aRet)
{
#if defined(XP_WIN)
*aRet = ::GetKeyState(aVirtKey);
return IPC_OK();
#else
return PluginModuleParent::AnswerGetKeyState(aVirtKey, aRet);
return PluginModuleParent::RecvGetKeyState(aVirtKey, aRet);
#endif
}