Skip to content

Obey Strict-Transport-Security header - #6722

Merged
bors-servo merged 2 commits into
servo:masterfrom
samfoo:sts-headers
Aug 2, 2015
Merged

bors-servo merged 2 commits into
servo:masterfrom
samfoo:sts-headers

Conversation

@samfoo

@samfoo samfoo commented Jul 24, 2015

Copy link
Copy Markdown
Contributor

Resolves #6703.

Done:

  • When STS headers received, add the host to the HSTS list

Todo:

  • Persist the in-memory list so that it's reloaded on the next browser boot
  • Add tests to http_loader::load - it's pretty well completely untested right now, but it's a bit gnarly to untangle and without mocking, it's hard to deal with the dependency on making a real network request. Writing a mock request object should be doable for testing, but there's a lot going on in the function right now.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 24, 2015
Comment thread components/net/http_loader.rs Outdated

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.

I'd rather use the form:

use hyper::header::{Some, Headers, Here};
use hyper::header::HeaderThatDoesNotFitOnPreviousLine;

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 24, 2015
@pcwalton

Copy link
Copy Markdown
Contributor

I'd like to suggest that the resource task e10s lands first, as this affects messages in tasks that have pending e10s PRs.

@jdm jdm added the S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. label Jul 25, 2015
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jul 27, 2015
@jdm

jdm commented Jul 27, 2015

Copy link
Copy Markdown
Member

-S-awaiting-review


Reviewed 3 of 3 files at r1, 1 of 1 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@jdm jdm removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 27, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

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

@metajack metajack added the S-needs-rebase There are merge conflict errors. label Jul 29, 2015
@metajack

Copy link
Copy Markdown
Collaborator

Waiting on #6586.

@jdm jdm removed the S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. label Aug 1, 2015
@jdm

jdm commented Aug 1, 2015

Copy link
Copy Markdown
Member

We're all good now! This can merge as soon as it's rebased :)

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

jdm commented Aug 2, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 0d94ee9 has been approved by jdm

@jdm jdm 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. S-needs-rebase There are merge conflict errors. labels Aug 2, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 0d94ee9 with merge f1c26c5...

bors-servo pushed a commit that referenced this pull request Aug 2, 2015
Obey Strict-Transport-Security header

Resolves #6703.

Done:

* [x] When STS headers received, add the host to the HSTS list

Todo:

* [ ] Persist the in-memory list so that it's reloaded on the next browser boot
* [ ] Add tests to `http_loader::load` - it's pretty well completely untested right now, but it's a bit gnarly to untangle and without mocking, it's hard to deal with the dependency on making a real network request. Writing a mock request object should be doable for testing, but there's a lot going on in the function right now.

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

Copy link
Copy Markdown
Contributor

💔 Test failed - linux3

@jdm

jdm commented Aug 2, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux1, linux2, mac1, mac2, mac3 are reusable. Rebuilding only linux3...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

@bors-servo
bors-servo merged commit 0d94ee9 into servo:master Aug 2, 2015
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