From cbff6bd67cc1858e1b742fa32355a8ad3c7b0626 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 29 Jun 2011 17:24:47 -0400 Subject: [PATCH] Bug 668352 - Ensure TabParent::GetIMEEnabled always returns a value. r=blassey --- dom/ipc/TabParent.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom/ipc/TabParent.cpp b/dom/ipc/TabParent.cpp index 11fb64bed3c..1cddde7eba9 100644 --- a/dom/ipc/TabParent.cpp +++ b/dom/ipc/TabParent.cpp @@ -514,8 +514,10 @@ bool TabParent::RecvGetIMEEnabled(PRUint32* aValue) { nsCOMPtr widget = GetWidget(); - if (!widget) + if (!widget) { + *aValue = nsIWidget::IME_STATUS_DISABLED; return true; + } IMEContext context; widget->GetInputMode(context);