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

fix case sensitivity in cookie domains #15789

Open
avadacatavra opened this issue Mar 2, 2017 · 0 comments
Open

fix case sensitivity in cookie domains #15789

avadacatavra opened this issue Mar 2, 2017 · 0 comments
Labels

Comments

@avadacatavra
Copy link
Contributor

@avadacatavra avadacatavra commented Mar 2, 2017

In tests/unit/net/cookie_http_state.rs::test_domain0026, the test is run with the domain 'home.eXaMpLe.org.' After #15775, this test fails because of case sensitivity in components/net/cookie.rs::domain_match and components/net/cookie_storage.rs::reg_host.

  • Determine if this test should pass or fail
  • If it should pass, do it in a better way than some adhoc placement of "to_lowercase()"
bors-servo added a commit that referenced this issue Mar 7, 2017
Assert that `domain_match` is operating on lowercase text

> (Note that both the domain string and the string will have been
> canonicalized to lower case at this point.)

Related to #15789

<!-- 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/15844)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Mar 7, 2017
Assert that `domain_match` is operating on lowercase text

> (Note that both the domain string and the string will have been
> canonicalized to lower case at this point.)

Related to #15789

<!-- 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/15844)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Mar 8, 2017
Assert that `domain_match` is operating on lowercase text

> (Note that both the domain string and the string will have been
> canonicalized to lower case at this point.)

Related to #15789

<!-- 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/15844)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Mar 9, 2017
Assert that `domain_match` is operating on lowercase text

> (Note that both the domain string and the string will have been
> canonicalized to lower case at this point.)

Related to #15789

<!-- 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/15844)
<!-- Reviewable:end -->
clementmiao added a commit to clementmiao/servo that referenced this issue Apr 7, 2017
> (Note that both the domain string and the string will have been
> canonicalized to lower case at this point.)

Related to servo#15789
@nox nox self-assigned this Apr 8, 2017
@nox nox removed their assignment Oct 8, 2017
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.

None yet
2 participants
You can’t perform that action at this time.