Bug 618921 - the chat capability of etherpad application doesn't work with fennec. r=smaug
authorAlex Pakhotin <alexp@mozilla.com>
Fri, 28 Oct 2011 17:05:02 -0700
changeset 82237 38e4456727805e36a044ad07bca9000437fb1fcd
parent 82236 3b3c9e09abe39372b3d8cb488f1c7e827db9299b
child 82238 5ed397fc162a3ff37410b900e2854818e77eb28f
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs618921
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 618921 - the chat capability of etherpad application doesn't work with fennec. r=smaug
content/events/src/nsIMEStateManager.cpp
--- a/content/events/src/nsIMEStateManager.cpp
+++ b/content/events/src/nsIMEStateManager.cpp
@@ -325,17 +325,19 @@ nsIMEStateManager::SetIMEState(PRUint32 
           } else if (formElement && formElement->Tag() == nsGkAtoms::form && formElement->IsHTML() &&
                      static_cast<nsHTMLFormElement*>(formElement)->HasSingleTextControl()) {
             willSubmit = true;
           }
         }
         context.mActionHint.Assign(willSubmit ? control->GetType() == NS_FORM_INPUT_SEARCH
                                                   ? NS_LITERAL_STRING("search")
                                                   : NS_LITERAL_STRING("go")
-                                              : NS_LITERAL_STRING("next"));
+                                              : formElement
+                                                  ? NS_LITERAL_STRING("next")
+                                                  : EmptyString());
       }
     }
 
     if (XRE_GetProcessType() == GeckoProcessType_Content) {
       context.mReason = aReason | IMEContext::FOCUS_FROM_CONTENT_PROCESS;
     } else {
       context.mReason = aReason;
     }