Skip to content

Make SSL cert verification errors work again. Add a horrible, no-good… - #6935

Merged
bors-servo merged 1 commit into
servo:masterfrom
jdm:sslverify
Nov 13, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
jdm:sslverify

Conversation

@jdm

@jdm jdm commented Aug 3, 2015

Copy link
Copy Markdown
Member

…, 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

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 3, 2015

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #7238) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 20, 2015
@jdm

jdm commented Aug 23, 2015

Copy link
Copy Markdown
Member Author

@Ms2ger Could you take a look at this please?

@Ms2ger

Ms2ger commented Nov 13, 2015

Copy link
Copy Markdown
Contributor

This is an awful test and you should feel bad :)

r? @Manishearth

for the code changes.


Reviewed 3 of 5 files at r1.
Review status: 3 of 5 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.


tests/wpt/mozilla/tests/mozilla/resources/origin_helpers.js, line 1 [r1] (raw file):
I don't think these eval()s should be necessary.


Comments from the review on Reviewable.io

@highfive highfive assigned Manishearth and unassigned Ms2ger Nov 13, 2015
@Manishearth

Copy link
Copy Markdown
Member

r+ on the code

@jdm jdm removed the S-needs-rebase There are merge conflict errors. label Nov 13, 2015
@jdm

jdm commented Nov 13, 2015

Copy link
Copy Markdown
Member Author

@bors-servo: r=Manishearth

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 5e123df has been approved by Manishearth

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 5e123df with merge 0735cec...

bors-servo pushed a commit that referenced this pull request Nov 13, 2015
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 -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 13, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants