Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix brotli decoding #22616
Fix brotli decoding #22616
Conversation
highfive
commented
Jan 4, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jan 4, 2019
|
Waiting to hear about dropbox/rust-brotli-decompressor#4 to see if we need to maintain the brotli fork long-term. |
|
@bors-servo try=wpt |
Fix brotli decoding work This replaces our current decoding setup by https://github.com/seanmonstar/reqwest/blob/master/src/async_impl/decoder.rs, and integrates brotli and deflate decoding to maintain our existing support. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22228 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22616) <!-- Reviewable:end -->
|
|
|
|
||
| impl fmt::Debug for Decoder { | ||
| fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
| f.debug_struct("Decoder").finish() |
This comment has been minimized.
This comment has been minimized.
Eijebong
Jan 4, 2019
Member
Not sure what this is exactly doing but I don't think it gives the type of decode and it might be useful to know it ? i.e plain, gzip...
f7b5b42
to
76dd959
|
@bors-servo try=wpt |
Fix brotli decoding This replaces our current decoding setup by https://github.com/seanmonstar/reqwest/blob/master/src/async_impl/decoder.rs, and integrates brotli and deflate decoding to maintain our existing support. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22228 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22616) <!-- Reviewable:end -->
|
|
|
The failures seem relevant to the patch, do you want me to look into them? |
| var input = client.responseText; | ||
| var client2 = new XMLHttpRequest() | ||
| client2.open("GET", "resources/brotli.py?pipe=trickle(1:d1)", false); | ||
| client2.onload = test.step_func(function() { |
This comment has been minimized.
This comment has been minimized.
| assert_equals(client.responseText, input); | ||
| test.done(); | ||
| } | ||
| async_test(function(test) { |
This comment has been minimized.
This comment has been minimized.
nox
Jan 8, 2019
Member
Nit: you could do var test = async_test(); and not have to indent the entire test.
This comment has been minimized.
This comment has been minimized.
jdm
Jan 9, 2019
Author
Member
That's how the test was originally written, but that excludes the code outside of the test from reporting errors. This format provides better coverage.
|
@bors-servo r=nox |
|
|
|
@bors-servo r=nox |
|
|
Fix brotli decoding This replaces our current decoding setup by https://github.com/seanmonstar/reqwest/blob/master/src/async_impl/decoder.rs, and integrates brotli and deflate decoding to maintain our existing support. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22228 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22616) <!-- Reviewable:end -->
|
|
|
Both task cluster and Travis failed with following error
|
|
sounds of wailing and gnashing of teeth |
…some content is present.
|
@bors-servo r=nox |
|
|
Fix brotli decoding This replaces our current decoding setup by https://github.com/seanmonstar/reqwest/blob/master/src/async_impl/decoder.rs, and integrates brotli and deflate decoding to maintain our existing support. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22228 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22616) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
jdm commentedJan 4, 2019
•
edited by SimonSapin
This replaces our current decoding setup by https://github.com/seanmonstar/reqwest/blob/master/src/async_impl/decoder.rs, and integrates brotli and deflate decoding to maintain our existing support.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is