Repository navigation
Make SSL cert verification errors work again. Add a horrible, no-good… - #6935
Conversation
There was a problem hiding this comment.
Nit: you can use let instead of match here since there is only one variant.
(This is still hacky, but I feel much better about this than what we could do before Error::downcast_ref was added.)
|
☔ The latest upstream changes (presumably #7238) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@Ms2ger Could you take a look at this please? |
|
This is an awful test and you should feel bad :) r? @Manishearth for the code changes. Reviewed 3 of 5 files at r1. tests/wpt/mozilla/tests/mozilla/resources/origin_helpers.js, line 1 [r1] (raw file): Comments from the review on Reviewable.io |
|
r+ on the code |
…, very bad regression test.
|
@bors-servo: r=Manishearth |
|
📌 Commit 5e123df has been approved by |
Make SSL cert verification errors work again. Add a horrible, no-good… …, very bad regression test. Here are the list of awful things this test exploits: - Servo can't load HTTPS content in WPT tests (#6919) - Our web workers don't report error events to the parent worker object after the initial network load completes - Our worker resource load don't have a same-origin check The good news is that this test should start failing if any of those "features" change, so this should not silently break on us. Other attempts to test this included: - iframes (didn't work because of #6672 and #3939) - XMLHttpRequest (I was hit by CORS, I think; maybe I could have made it work if I returned the right headers) r? @Ms2ger <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6935) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
…, very bad regression test.
Here are the list of awful things this test exploits:
The good news is that this test should start failing if any of those "features" change, so this should not silently break on us.
Other attempts to test this included:
r? @Ms2ger