Back out changeset 81b6dbef4fb1 (bug 1210330) for Android and b2g mochitest-chrome failures in test_tcpsocket_jsm.html

CLOSED TREE
This commit is contained in:
Phil Ringnalda 2015-10-13 19:40:20 -07:00
parent ffd56892f2
commit 39d48b3bb0
2 changed files with 1 additions and 2 deletions

View File

@ -1040,7 +1040,7 @@ TCPSocket::OnDataAvailable(nsIRequest* aRequest, nsISupports* aContext, nsIInput
JSContext* cx = api.cx();
JS::Rooted<JS::Value> value(cx);
if (!ToJSValue(cx, TypedArrayCreator<ArrayBuffer>(buffer), &value)) {
if (!ToJSValue(cx, TypedArrayCreator<Uint8Array>(buffer), &value)) {
return NS_ERROR_FAILURE;
}
FireDataEvent(cx, NS_LITERAL_STRING("data"), value);

View File

@ -55,7 +55,6 @@ function listenForEventsOnSocket(socket, socketType) {
socket.ondata = function(event) {
dump('(' + socketType + ' event: ' + event.type + ' length: ' +
event.data.byteLength + ')\n');
ok(event.data instanceof ArrayBuffer, 'payload is ArrayBuffer');
var arr = new Uint8Array(event.data);
if (receivedData === null) {
receivedData = arr;