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
Made binary files show an info message instead of garbled text. #7956
Conversation
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon. |
This should solve #7706 I think. |
Thanks for doing this work! Reviewed 1 of 1 files at r1. components/script/dom/servohtmlparser.rs, line 135 [r1] (raw file): components/script/dom/servohtmlparser.rs, line 136 [r1] (raw file): Comments from the review on Reviewable.io |
-S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r2. components/script/dom/servohtmlparser.rs, line 142 [r2] (raw file): Comments from the review on Reviewable.io |
@jdm anything else I should change? |
Nope! Just squash these three commits into one and we're good to merge! Reviewed 1 of 1 files at r3, 1 of 1 files at r4. Comments from the review on Reviewable.io |
@jdm I might have done the squash incorrectly, doesn't seem like there's a problem though. |
@bors-servo: r+ |
📌 Commit 93721d8 has been approved by |
Made binary files show an info message instead of garbled text. Content-types with the TopLevel "Application" such as * application/octet-stream * application/pdf now show an info message instead of trying to view binary data as html. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7956) <!-- Reviewable:end -->
💔 Test failed - linux-rel |
Ah, presumably the server is giving us |
@jdm So I'm adding text/xhtml to the match statement right? |
@jdm http://www.w3.org/International/articles/serving-xhtml/ says xhtml has 3 possible mime types.
Which ones should I add? |
Hopefully just |
☔ The latest upstream changes (presumably #8051) made this pull request unmergeable. Please resolve the merge conflicts. |
Any updates? |
@jdm @Manishearth Just updated the PR to compile and hopefully pass the xhtml tests. |
@bors-servo: r+ |
📌 Commit aa7a391 has been approved by |
Made binary files show an info message instead of garbled text. Content-types with the TopLevel "Application" such as * application/octet-stream * application/pdf now show an info message instead of trying to view binary data as html. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7956) <!-- Reviewable:end -->
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
Content-types with the TopLevel "Application" such as
now show an info message instead of trying to view binary data as html.