Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept Brotli-compressed HTTP responses #8156 #8192

Merged
merged 1 commit into from Nov 1, 2015

Conversation

@nxnfufunezn
Copy link
Contributor

nxnfufunezn commented Oct 25, 2015

r? @jdm

Review on Reviewable

@jdm
Copy link
Member

jdm commented Oct 25, 2015

This looks like what I expected; thanks! Have you tested it manually? Easiest way to verify it's working is to comment out the branch on 427 and find a page that serves Brotli-encoded data (and therefore is full of garbage), then uncomment that branch and see that the page shows up correctly.

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 26, 2015

@jdm Is there any site that serves Brotli-encoded data ? Or how can I verify this any other way ?

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 26, 2015

@jdm It should be Accept-Encoding: br instead of Accept-Encoding: Brotli am I right ?

@@ -16,6 +16,9 @@ path = "../util"
[dependencies.devtools_traits]
path = "../devtools_traits"

[dependencies.brotli]
git = "https://github.com/ende76/brotli-rs"

This comment has been minimized.

Copy link
@frewsxcv

frewsxcv Oct 26, 2015

Member

Don't forget to add the Cargo.lock files

@jdm
Copy link
Member

jdm commented Oct 26, 2015

@nxnfufunezn You're right! Aso, https://http2.cloudflare.com/ supports Brotli encoding according to my Firefox network inspector.

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 26, 2015

Oh I am using this python script : https://gist.github.com/nxnfufunezn/d3fe9c805004a94a262d for testing...

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 26, 2015

@jdm
Copy link
Member

jdm commented Oct 26, 2015

Even better! That looks like something we could turn into an automated test, like this one: http://mxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/XMLHttpRequest/resources/gzip.py?force=1

@jdm
Copy link
Member

jdm commented Oct 26, 2015

Yep, you're correct.

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 26, 2015

okay I will do that also.. 👍

@jdm jdm self-assigned this Oct 26, 2015
@nxnfufunezn nxnfufunezn force-pushed the nxnfufunezn:brotli-decompressor branch from d1a0431 to 05ca36b Oct 26, 2015
@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 26, 2015

screenshot from 2015-10-26 12-08-24
@jdm It works now..

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 26, 2015

@jdm
Copy link
Member

jdm commented Oct 26, 2015

@nxnfufunezn That looks really good!

@nxnfufunezn nxnfufunezn force-pushed the nxnfufunezn:brotli-decompressor branch from 05ca36b to 58207c0 Oct 28, 2015
@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 29, 2015

@jdm
Copy link
Member

jdm commented Oct 29, 2015

Looks great! We just need to rebase this to get the proper manifest output, as described in the comment. Please also include the Cargo.lock changes, like @frewsxcv pointed out.
-S-awaiting-review +S-needs-rebase


Reviewed 3 of 3 files at r1, 6 of 6 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions.


tests/wpt/mozilla/meta/MANIFEST.json, line 3806 [r2] (raw file):
If you rebase to master and run ./mach test-wpt --update-manifest again, this should produce difference results since #8185 merged.


Comments from the review on Reviewable.io

@frewsxcv
Copy link
Member

frewsxcv commented Oct 29, 2015

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 29, 2015

tests/wpt/mozilla/tests/mozilla/resources/brotli.py, line 5 [r2] (raw file):
So I don't need brotli compressed data there ?


Comments from the review on Reviewable.io

@frewsxcv
Copy link
Member

frewsxcv commented Oct 29, 2015

tests/wpt/mozilla/tests/mozilla/resources/brotli.py, line 5 [r2] (raw file):
What do you mean by that? My code block is identical in functionality to your if..else statement


Comments from the review on Reviewable.io

@nxnfufunezn
Copy link
Contributor Author

nxnfufunezn commented Oct 29, 2015

@jdm
Copy link
Member

jdm commented Nov 1, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

📌 Commit 468eaac has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

Testing commit 468eaac with merge 58a0ded...

bors-servo added a commit that referenced this pull request Nov 1, 2015
 Accept Brotli-compressed HTTP responses #8156

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8192)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

💔 Test failed - mac-rel-wpt

@frewsxcv
Copy link
Member

frewsxcv commented Nov 1, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

Testing commit 468eaac with merge 2e4454a...

bors-servo added a commit that referenced this pull request Nov 1, 2015
 Accept Brotli-compressed HTTP responses #8156

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8192)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

💔 Test failed - mac-rel-wpt

@jdm
Copy link
Member

jdm commented Nov 1, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

Previous build results for android, gonk, linux-dev, linux-rel, mac-dev-ref-unit are reusable. Rebuilding only mac-rel-css, mac-rel-wpt...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

💔 Test failed - mac-rel-wpt

@eefriedman
Copy link
Contributor

eefriedman commented Nov 1, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

Previous build results for android, gonk, linux-dev, linux-rel, mac-dev-ref-unit are reusable. Rebuilding only mac-rel-css, mac-rel-wpt...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 1, 2015

@bors-servo bors-servo merged commit 468eaac into servo:master Nov 1, 2015
2 of 3 checks passed
2 of 3 checks passed
code-review/reviewable Review in progress: 7 of 11 files reviewed, 2 unresolved discussions
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@nxnfufunezn nxnfufunezn deleted the nxnfufunezn:brotli-decompressor branch Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

8 participants
You can’t perform that action at this time.