mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Consume BOM in the text()
method of fetch bodies (#36192)
In the fetch spec, the `text()` method of `Body` (an interface mixin implemented by both `Request` and `Response`) consumes the body with the Encoding spec "UTF-8 decode" algorithm, which skips the UTF-8 BOM if it is present at the beginning of the body. Servo's implementation does not do that. This patch fixes this. Signed-off-by: Andreu Botella <abotella@igalia.com>
This commit is contained in:
parent
94bcab177e
commit
95c3033456
3 changed files with 8 additions and 61 deletions
|
@ -1,30 +1,6 @@
|
|||
[text-utf8.any.html]
|
||||
[UTF-8 with BOM with Request.text()]
|
||||
expected: FAIL
|
||||
|
||||
[UTF-8 with BOM with fetched data (UTF-16 charset)]
|
||||
expected: FAIL
|
||||
|
||||
[UTF-8 with BOM with fetched data (UTF-8 charset)]
|
||||
expected: FAIL
|
||||
|
||||
[UTF-8 with BOM with Response.text()]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[text-utf8.any.worker.html]
|
||||
[UTF-8 with BOM with Request.text()]
|
||||
expected: FAIL
|
||||
|
||||
[UTF-8 with BOM with fetched data (UTF-16 charset)]
|
||||
expected: FAIL
|
||||
|
||||
[UTF-8 with BOM with fetched data (UTF-8 charset)]
|
||||
expected: FAIL
|
||||
|
||||
[UTF-8 with BOM with Response.text()]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[text-utf8.any.serviceworker.html]
|
||||
expected: ERROR
|
||||
|
|
|
@ -8,36 +8,18 @@
|
|||
[Fetching a resource from the same origin, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.: sec-fetch-dest]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.: sec-fetch-mode]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.: sec-fetch-site]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.: sec-fetch-dest]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.: sec-fetch-mode]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.: sec-fetch-site]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.: sec-fetch-dest]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.: sec-fetch-mode]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.: sec-fetch-site]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -46,35 +28,17 @@
|
|||
[Fetching a resource from the same origin, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.: sec-fetch-dest]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.: sec-fetch-mode]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.: sec-fetch-site]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.: sec-fetch-dest]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.: sec-fetch-mode]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.: sec-fetch-site]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.: sec-fetch-dest]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.: sec-fetch-mode]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.: sec-fetch-site]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue