WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 67180
WebSocket: Receive binary message as ArrayBuffer
https://bugs.webkit.org/show_bug.cgi?id=67180
Summary
WebSocket: Receive binary message as ArrayBuffer
Yuta Kitamura
Reported
2011-08-29 23:06:25 PDT
Part of
bug 65249
. See also:
bug 67115
(Receive binary message as Blob)
Attachments
Patch
(17.77 KB, patch)
2011-08-29 23:29 PDT
,
Yuta Kitamura
no flags
Details
Formatted Diff
Diff
Patch v2
(20.74 KB, patch)
2011-08-30 05:16 PDT
,
Yuta Kitamura
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yuta Kitamura
Comment 1
2011-08-29 23:29:11 PDT
Created
attachment 105585
[details]
Patch
Kent Tamura
Comment 2
2011-08-30 01:37:19 PDT
Comment on
attachment 105585
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105585&action=review
> LayoutTests/http/tests/websocket/tests/hybi/receive-arraybuffer.html:32 > +// Create an ArrayBuffer containing all distinct bytes ("\x00" to "\xFF"). > +function createAllBytesValue()
nit: The comment is not so helpful because the function code is simple, and we can rename it to "createArrayBufferContainingAllDistinctBytes"
> LayoutTests/http/tests/websocket/tests/hybi/workers/resources/receive-arraybuffer.js:16 > +// Create an ArrayBuffer containing all distinct bytes ("\x00" to "\xFF"). > +function createAllBytesValue()
ditto.
> Source/WebCore/websockets/WebSocket.cpp:419 > + RefPtr<ArrayBuffer> arrayBuffer = ArrayBuffer::create(binaryData->data(), binaryData->size()); > + dispatchEvent(MessageEvent::create(arrayBuffer.release()));
The variable 'arrayBuffer' is not needed.
Yuta Kitamura
Comment 3
2011-08-30 05:16:32 PDT
Created
attachment 105618
[details]
Patch v2
Yuta Kitamura
Comment 4
2011-08-30 05:18:12 PDT
Comment on
attachment 105585
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105585&action=review
>> LayoutTests/http/tests/websocket/tests/hybi/receive-arraybuffer.html:32 >> +function createAllBytesValue() > > nit: The comment is not so helpful because the function code is simple, and we can rename it to "createArrayBufferContainingAllDistinctBytes"
Fixed. Updated function names in receive-blob.html too.
>> LayoutTests/http/tests/websocket/tests/hybi/workers/resources/receive-arraybuffer.js:16 >> +function createAllBytesValue() > > ditto.
Fixed.
>> Source/WebCore/websockets/WebSocket.cpp:419 >> + dispatchEvent(MessageEvent::create(arrayBuffer.release())); > > The variable 'arrayBuffer' is not needed.
Fixed.
Kent Tamura
Comment 5
2011-08-31 00:22:11 PDT
Comment on
attachment 105618
[details]
Patch v2 Looks ok.
WebKit Review Bot
Comment 6
2011-08-31 01:32:45 PDT
Comment on
attachment 105618
[details]
Patch v2 Clearing flags on attachment: 105618 Committed
r94161
: <
http://trac.webkit.org/changeset/94161
>
WebKit Review Bot
Comment 7
2011-08-31 01:32:50 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug