mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Use spec compliant content-type extraction in more places and enable a <stylesheet>
quirk (#28321)
This changes includes two semi-related things: 1. Fixes some specification compliance issues when parsing mime types and charsets for `XMLHttpRequest`. 2. Implements a `<stylesheet>` parsing quirk involving mime types. Testing: There are tests for these changes. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
d8837e4a52
commit
6e97fc0bc4
17 changed files with 231 additions and 1148 deletions
3
tests/wpt/meta/fetch/nosniff/script.html.ini
vendored
3
tests/wpt/meta/fetch/nosniff/script.html.ini
vendored
|
@ -1,3 +0,0 @@
|
|||
[script.html]
|
||||
[URL query: text/ecmascript;blah]
|
||||
expected: FAIL
|
|
@ -10,9 +10,3 @@
|
|||
|
||||
[Revalidated URL query: text/json]
|
||||
expected: FAIL
|
||||
|
||||
[URL query: text/css;blah]
|
||||
expected: FAIL
|
||||
|
||||
[Revalidated URL query: text/css;blah]
|
||||
expected: FAIL
|
||||
|
|
3
tests/wpt/meta/fetch/nosniff/worker.html.ini
vendored
3
tests/wpt/meta/fetch/nosniff/worker.html.ini
vendored
|
@ -1,3 +0,0 @@
|
|||
[worker.html]
|
||||
[URL query: ?type=text/ecmascript;yay]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue