bug 624163 - IME input does not work in rich editors with e10s r=dougt

This commit is contained in:
Brad Lassey 2011-05-20 14:44:09 -04:00
parent 6eda44f750
commit c2024b4a1b

View File

@ -527,6 +527,9 @@ TabParent::RecvGetIMEEnabled(PRUint32* aValue)
bool
TabParent::RecvSetInputMode(const PRUint32& aValue, const nsString& aType, const nsString& aAction, const PRUint32& aReason)
{
// mIMETabParent (which is actually static) tracks which if any TabParent has IMEFocus
// When the input mode is set to anything but IME_STATUS_NONE, mIMETabParent should be set to this
mIMETabParent = aValue & nsIContent::IME_STATUS_MASK_ENABLED ? this : nsnull;
nsCOMPtr<nsIWidget> widget = GetWidget();
if (!widget || !AllowContentIME())
return true;