Bug 83042

Summary: WebSocketServer: Honour WebSocketFrame::masked in makeFrameData
Product: WebKit Reporter: Jocelyn Turcotte <jturcotte>
Component: New BugsAssignee: Jocelyn Turcotte <jturcotte>
Status: RESOLVED FIXED    
Severity: Normal CC: tkent, yutak
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch tkent: review+

Description Jocelyn Turcotte 2012-04-03 09:48:51 PDT
WebSocketServer: Honour WebSocketFrame::masked in makeFrameData
Comment 1 Jocelyn Turcotte 2012-04-03 09:57:28 PDT
Created attachment 135348 [details]
Patch
Comment 2 Kent Tamura 2012-04-03 20:10:01 PDT
Comment on attachment 135348 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=135348&action=review

> Source/WebCore/Modules/websockets/WebSocketFrame.cpp:157
> +    char& firstByte = frameData.at(0);
> +    char& secondByte = frameData.at(1);
> +    firstByte = (final ? finalBit : 0) | (compress ? compressBit : 0) | opCode;

The variable firstByte looks unnecessary.
  frameData.at(0) = (final ? ...
Comment 3 Jocelyn Turcotte 2012-04-09 08:31:35 PDT
Committed r113580: <http://trac.webkit.org/changeset/113580>
Comment 4 Jocelyn Turcotte 2012-04-09 08:32:51 PDT
Thanks!