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 some 'nosniff' tests #27851

Merged
merged 1 commit into from Mar 29, 2021
Merged

Fix some 'nosniff' tests #27851

merged 1 commit into from Mar 29, 2021

Conversation

ghostd
Copy link
Contributor

@ghostd ghostd commented Nov 26, 2020

This PR implements some standard function to work with headers, hence it fixes some 'nosniff' test/

I create a PR as Draft because i have some questions:

  • i added the code info the net module instead of script::dom::headers to avoid some cyclic dependencies... but i'm not sure about this choice. Is there another potential location to put this code?
  • i used String object to match the spectification (it states to collect sequences of "code points", but some code use byte arrays. Should i change the code to work with bytes?

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because ___

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @KiChjang: components/net/fetch/methods.rs, components/net/lib.rs, components/net/fetch/headers.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 26, 2020
@jdm
Copy link
Member

jdm commented Nov 26, 2020

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

⌛ Trying commit 9da4613 with merge 1692409...

bors-servo added a commit that referenced this pull request Nov 26, 2020
Fix some 'nosniff' tests

This PR implements some standard function to work with headers, hence it fixes some 'nosniff' test/

I create a PR as Draft because i have some questions:
* i added the code info the `net` module instead of `script::dom::headers` to avoid some cyclic dependencies... but i'm not sure about this choice. Is there another potential location to put this code?
* i used String object to match the spectification (it states to collect sequences of "code points", but some code use byte arrays. Should i change the code to work with bytes?

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

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

☀️ Test successful - status-taskcluster
State: approved= try=True

@bors-servo
Copy link
Contributor

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

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Dec 19, 2020
@ghostd
Copy link
Contributor Author

ghostd commented Mar 8, 2021

I rebased onto master.

I think i'll needs these changes for future works.

@jdm
Copy link
Member

jdm commented Mar 29, 2021

@bors-servo r+
Thanks!

@bors-servo
Copy link
Contributor

📌 Commit 3b38240 has been approved by jdm

@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. S-needs-rebase There are merge conflict errors. labels Mar 29, 2021
@bors-servo
Copy link
Contributor

⌛ Testing commit 3b38240 with merge 970a3b6...

@bors-servo
Copy link
Contributor

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 970a3b6 to master...

@bors-servo bors-servo merged commit 970a3b6 into servo:master Mar 29, 2021
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 29, 2021
@ghostd ghostd deleted the fix-nosniff branch March 29, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants