According to W3C WebSocket Specification,
when any value exclusive of 'blob' or 'arraybuffer' is set on binaryType of WebSocket, a SyntaxError should be raised.
Created attachment 236500[details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 236501[details]
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-06 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 236504[details]
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-06 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 236506[details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-05 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 236508[details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Comment on attachment 236578[details]
Modify typos on a test html file.
View in context: https://bugs.webkit.org/attachment.cgi?id=236578&action=review
Code change is OK, test change is not. See comments below.
> LayoutTests/http/tests/websocket/tests/hybi/binary-type.html:12
> +var syntaxErr = "SyntaxError";
This is not needed.
> LayoutTests/http/tests/websocket/tests/hybi/binary-type.html:-21
> -debug("Set invalid values to binaryType. They should be ignored. No exception should be thrown.");
I don’t think this is needed at all. We should just delete it and not add new debug lines.
> LayoutTests/http/tests/websocket/tests/hybi/binary-type.html:-24
> -ws.binaryType = "Blob";
> -shouldBeEqualToString("ws.binaryType", "blob");
The change needed here is much smaller than what's done below. It should just be this.
shouldThrow("ws.binaryType = 'Blob'", "SyntaxError");
shouldBeEqualToString("ws.binaryType", "blob");
But also, binary-type-expected.txt has to be updated too since the expected results are changing.
Created attachment 236911[details]
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-02 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 236912[details]
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Comment on attachment 236962[details]
Modify a test file and an expected file.
View in context: https://bugs.webkit.org/attachment.cgi?id=236962&action=review
This change seems good, and passed tests. Could you please revise the patch for the current source tree and resubmit for final review?
> Source/WebCore/ChangeLog:9
> + when invalid values is set on binaryType of WebSocket, a SyntaxError should be raised.
Could you provide a link to the specification here, or at least indicate the specification section that states this?
2014-08-12 22:22 PDT, Jinwoo Jeong
2014-08-12 23:17 PDT, Build Bot
2014-08-12 23:42 PDT, Build Bot
2014-08-13 00:00 PDT, Jinwoo Jeong
2014-08-13 01:19 PDT, Build Bot
2014-08-13 02:20 PDT, Build Bot
2014-08-13 02:55 PDT, Build Bot
2014-08-13 21:43 PDT, Jinwoo Jeong
2014-08-20 19:09 PDT, Jinwoo Jeong
2014-08-20 20:32 PDT, Build Bot
2014-08-20 21:30 PDT, Build Bot
2014-08-21 21:02 PDT, Jinwoo Jeong
2016-03-19 00:15 PDT, Jinwoo Jeong
2016-03-20 21:01 PDT, Jinwoo Jeong
2016-03-20 21:12 PDT, Jinwoo Jeong