Bug 1034689 part 3 - Fix remaining places in Gecko to handle Latin1 strings. r=bz

This commit is contained in:
Jan de Mooij
2014-07-12 09:43:08 +02:00
parent bcc76546cb
commit 1fd3719a70
6 changed files with 32 additions and 35 deletions

View File

@@ -201,12 +201,7 @@ JavaScriptShared::convertIdToGeckoString(JSContext *cx, JS::HandleId id, nsStrin
if (!str)
return false;
const jschar *chars = JS_GetStringCharsZ(cx, str);
if (!chars)
return false;
*to = chars;
return true;
return AssignJSString(cx, *to, str);
}
bool