mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
ffd56892f2
commit
39d48b3bb0
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user