Bug 1208944 - Part 7. Don't post WM_IME_REQUEST on windowless plugin since we don't convert pointer over process. r=masayuki

This commit is contained in:
Makoto Kato 2015-12-29 22:57:38 +09:00
parent b5a73d3eb3
commit 6004e9b6d6

View File

@ -703,12 +703,16 @@ IMMHandler::ProcessMessageForPlugin(nsWindow* aWindow,
case WM_IME_CONTROL:
case WM_IME_KEYDOWN:
case WM_IME_KEYUP:
case WM_IME_REQUEST:
case WM_IME_SELECT:
aResult.mConsumed =
aWindow->DispatchPluginEvent(msg, wParam, lParam, false);
aRet = true;
return true;
case WM_IME_REQUEST:
// Our plugin implementation is alwasy OOP. So WM_IME_REQUEST doesn't
// allow that parameter is pointer and shouldn't handle into Gecko.
aRet = false;
return true;
}
return false;
}