Bug 613193 - Fix illegal JSON in 'softkb-change' notification [r=blassey r=roc a=blassey]
authorMark Finkle <mfinkle@mozilla.com>
Thu, 18 Nov 2010 17:56:11 -0500
changeset 57875 ec984bdd7e406b978ba5ad31faaa8212c02a5834
parent 57874 1d85ad54b112ca21d542fc724cff1232e679aebc
child 57876 c29356cef6d4164447ab9a2352badc8ade1e42a7
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersblassey, roc, blassey
bugs613193
milestone2.0b8pre
Bug 613193 - Fix illegal JSON in 'softkb-change' notification [r=blassey r=roc a=blassey]
widget/src/gtk2/nsGtkIMModule.cpp
--- a/widget/src/gtk2/nsGtkIMModule.cpp
+++ b/widget/src/gtk2/nsGtkIMModule.cpp
@@ -594,17 +594,17 @@ nsGtkIMModule::SetIMEEnabled(nsWindow* a
         mozilla::services::GetObserverService();
     if (observerService) {
         nsAutoString rectBuf;
         PRInt32 x, y, w, h;
         gdk_window_get_position(aCaller->GetGdkWindow(), &x, &y);
         gdk_window_get_size(aCaller->GetGdkWindow(), &w, &h);
         rectBuf.Assign(NS_LITERAL_STRING("{\"left\": "));
         rectBuf.AppendInt(x);
-        rectBuf.Append(NS_LITERAL_STRING(" \"top\": "));
+        rectBuf.Append(NS_LITERAL_STRING(", \"top\": "));
         rectBuf.AppendInt(y);
         rectBuf.Append(NS_LITERAL_STRING(", \"right\": "));
         rectBuf.AppendInt(w);
         rectBuf.Append(NS_LITERAL_STRING(", \"bottom\": "));
         rectBuf.AppendInt(h);
         rectBuf.Append(NS_LITERAL_STRING("}"));
         observerService->NotifyObservers(nsnull, "softkb-change",
                                          rectBuf.get());