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
Родитель c8b9f55356
Коммит 8041c1a27e
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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;