mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 668352 - Ensure TabParent::GetIMEEnabled always returns a value. r=blassey
This commit is contained in:
parent
f7cb812360
commit
cbff6bd67c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user