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

Cookie::appropriate_for_url should check for wss schemes in addition to https #14702

Closed
jdm opened this issue Dec 23, 2016 · 3 comments
Closed

Cookie::appropriate_for_url should check for wss schemes in addition to https #14702

jdm opened this issue Dec 23, 2016 · 3 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Dec 23, 2016

Really, we should have an is_scheme_secure(&ServoUrl) abstraction, because this gets used in #14491 as well.

Code: components/net/cookie.rs

No way to write an automated test for this, unfortunately, since we can't run SSL tests yet.

@highfive
Copy link

@highfive highfive commented Dec 23, 2016

Please make a comment here if you intend to work on this issue. Thank you!

@ghost
Copy link

@ghost ghost commented Dec 24, 2016

I would like to work on this.

@cbrewster
Copy link
Member

@cbrewster cbrewster commented Dec 24, 2016

@iamrohit7 it's all yours!

@ghost ghost mentioned this issue Dec 25, 2016
4 of 4 tasks complete
bors-servo added a commit that referenced this issue Dec 25, 2016
Check for wss schemes in Cookie::appropriate_for_url

* Also adds a new helper, `ServoUrl::is_secure_scheme`.
* Refactored `CookieStorage::push` and `CookieStorage::remove` to use the new helper.
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [x] These changes fix #14702

<!-- Either: -->
- [X] These changes do not require tests because we can't test the changes yet.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14722)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Dec 25, 2016
Check for wss schemes in Cookie::appropriate_for_url

* Also adds a new helper, `ServoUrl::is_secure_scheme`.
* Refactored `CookieStorage::push` and `CookieStorage::remove` to use the new helper.
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [x] These changes fix #14702

<!-- Either: -->
- [X] These changes do not require tests because we can't test the changes yet.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14722)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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