mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #25236 - pshaughn:safelistct, r=jdm
De-deplicate is_cors_safelisted_request_header helper functions <!-- Please describe your changes on the following line: --> Separate is_cors_safelisted_request_header implementations in script::dom::request and net::fetch::methods have been merged to a single implementation in net_traits::request, with additional logic for spec requirements that weren't previously there. This doesn't pass all the failing tests, but it doesn't fail any passing ones either and it reduces confusion about what's supposed to happen where. --- <!-- 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 #25235 and some but not all subcases in #25175 <!-- Either: --> - [X] There are tests for these changes, in that the WPT CORS tests that did already pass still do <!-- 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. -->
This commit is contained in:
commit
b274d59875
6 changed files with 206 additions and 138 deletions
|
@ -1,25 +1,10 @@
|
|||
[headers-no-cors.window.html]
|
||||
["no-cors" Headers object cannot have accept-language/@ as header]
|
||||
expected: FAIL
|
||||
|
||||
["no-cors" Headers object cannot have accept-language/\x01 as header]
|
||||
expected: FAIL
|
||||
|
||||
["no-cors" Headers object cannot have content-type/text/plain; long=0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901 as header]
|
||||
expected: FAIL
|
||||
|
||||
["no-cors" Headers object cannot have content-language/@ as header]
|
||||
expected: FAIL
|
||||
|
||||
["no-cors" Headers object cannot have content-language/\x01 as header]
|
||||
expected: FAIL
|
||||
|
||||
["no-cors" Headers object cannot have accept/" as header]
|
||||
expected: FAIL
|
||||
|
||||
["no-cors" Headers object cannot have accept/012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 as header]
|
||||
expected: FAIL
|
||||
|
||||
["no-cors" Headers object cannot have content-type set to text/plain;ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss, text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue