Bug 737765 - Use aLength in insertTextCB(). r=hub
authorCharles Chan <charles.wh.chan@gmail.com>
Fri, 23 Mar 2012 21:47:26 -0700
changeset 93579 ec81d6124138c6704a1d11439a5c55b6b758a3db
parent 93578 c2a5e0dba377180ae77acbd98c14bbc9b3ecfa3d
child 93580 2c14032c09e15253da2f5fa70ac423a93b9549cd
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershub
bugs737765
milestone14.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 737765 - Use aLength in insertTextCB(). r=hub
accessible/src/atk/nsMaiInterfaceEditableText.cpp
--- a/accessible/src/atk/nsMaiInterfaceEditableText.cpp
+++ b/accessible/src/atk/nsMaiInterfaceEditableText.cpp
@@ -95,17 +95,17 @@ insertTextCB(AtkEditableText *aText,
         return;
 
     nsCOMPtr<nsIAccessibleEditableText> accText;
     accWrap->QueryInterface(NS_GET_IID(nsIAccessibleEditableText),
                             getter_AddRefs(accText));
     if (!accText)
         return;
 
-    NS_ConvertUTF8toUTF16 strContent(aString);
+    NS_ConvertUTF8toUTF16 strContent(aString, aLength);
 
     // interface changed in nsIAccessibleEditableText.idl ???
     //
     // PRInt32 pos = *aPosition;
     // nsresult rv = accText->InsertText(strContent, aLength, &pos);
     // *aPosition = pos;
 
     accText->InsertText(strContent, *aPosition);