Bug 668352 - Ensure TabParent::GetIMEEnabled always returns a value. r=blassey

This commit is contained in:
Josh Matthews 2011-06-29 17:24:47 -04:00
parent f7cb812360
commit cbff6bd67c

View File

@ -514,8 +514,10 @@ bool
TabParent::RecvGetIMEEnabled(PRUint32* aValue)
{
nsCOMPtr<nsIWidget> widget = GetWidget();
if (!widget)
if (!widget) {
*aValue = nsIWidget::IME_STATUS_DISABLED;
return true;
}
IMEContext context;
widget->GetInputMode(context);