Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Issue 1437623002: Ensure proper response to chrome client_max_window_bits (Closed)

Created:
5 years, 1 month ago by butlermatt
Modified:
5 years, 1 month ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Ensure proper response to chrome client_max_window_bits request. I undid the patch John McCutchan did to disable compression and compiled and verify that Chrome does not experience any issues with websocket compression negotiation and that compression is enabled. Also tested with observatory on Firefox and Edge (IE) and both work with current configuration. BUG=#24864 subject: Ensure proper response to chrome client_max_window_bits R=sgjesse@google.com Committed: https://github.com/dart-lang/sdk/commit/bcd7466b562e1ac873e9a7309ca95eb9b84f723e

Patch Set 1 #

Patch Set 2 : Always send client_max_window_bits on response #

Total comments: 6

Patch Set 3 : Fix function annotation #

Patch Set 4 : Add tests for known websocket headers #

Patch Set 5 : Minor update to test #

Patch Set 6 : Add window resize test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -41 lines) Patch
M sdk/lib/io/websocket.dart View 1 2 3 4 5 2 chunks +38 lines, -35 lines 0 comments Download
M sdk/lib/io/websocket_impl.dart View 1 2 3 3 chunks +16 lines, -6 lines 0 comments Download
M tests/standalone/io/web_socket_compression_test.dart View 1 2 3 4 5 4 chunks +97 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
butlermatt
This should resolve issue with Observatory running in Chrome per bug: https://github.com/dart-lang/sdk/issues/24864 Matt
5 years, 1 month ago (2015-11-10 18:15:19 UTC) #3
butlermatt
Fixed method return type noticed by William Hesse on github, cc'd as reviewer here too.
5 years, 1 month ago (2015-11-11 13:01:04 UTC) #5
Søren Gjesse
Thanks for fixing this. Please add a test where an http client sends the same ...
5 years, 1 month ago (2015-11-11 13:31:08 UTC) #6
butlermatt
I've refactored the _createHeader methods to use a new descriptive class rather than a List. ...
5 years, 1 month ago (2015-11-11 18:26:31 UTC) #7
butlermatt
Minor update to new test to make it more configurable.
5 years, 1 month ago (2015-11-11 18:31:43 UTC) #8
butlermatt
I added another test to verify window sizes decreased on demand. As a result of ...
5 years, 1 month ago (2015-11-11 20:06:29 UTC) #9
Søren Gjesse
LGTM Good to see that the tests revealed something.
5 years, 1 month ago (2015-11-12 16:01:33 UTC) #10
Søren Gjesse
Committed patchset #6 (id:100001) manually as bcd7466b562e1ac873e9a7309ca95eb9b84f723e (presubmit successful).
5 years, 1 month ago (2015-11-12 16:04:17 UTC) #11
kevmoo
We should have browser-based tests for this implementation as well. Keneth?
5 years, 1 month ago (2015-11-12 19:21:44 UTC) #13
butlermatt
5 years, 1 month ago (2015-11-12 19:39:01 UTC) #14
Message was sent while issue was closed.
On 2015/11/12 19:21:44, kevmoo wrote:
> We should have browser-based tests for this implementation as well.
> 
> Keneth?

Hi Kevin,

I'd be happy to add tests for it, but since this is a dart:io only change, all
we can test in the browser is the response from a server and if that response
causes the browser to blow up or not. Do we have any existing tests where we
validate dart:io responses in the browser that I can use as a template to
elaborate on?

Thanks,

Matt

Powered by Google App Engine
This is Rietveld 408576698