Bug 777806. r=bent

This commit is contained in:
Andrew McCreight 2012-08-03 09:29:53 -07:00
parent d3ec16b6fe
commit 5e33ad1781

View File

@ -977,6 +977,8 @@ nsXMLHttpRequest::CreateResponseParsedJSON(JSContext* aCx)
if (!aCx) {
return NS_ERROR_FAILURE;
}
RootResultArrayBuffer();
// The Unicode converter has already zapped the BOM if there was one
if (!JS_ParseJSON(aCx,
static_cast<const jschar*>(mResponseText.get()),