Closed Bug 1750939 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 32447 - Add tests for processing non-ASCII data URLs

Categories

(Core :: DOM: Networking, task, P4)

task

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 32447 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/32447
Details from upstream follow.

Andreu Botella <andreu@andreubotella.com> wrote:

Add tests for processing non-ASCII data URLs

In particular, that any charset parameter of the MIME type does not affect the URL parsing or decoding of the content.

(Although all browsers pass these tests, the relevant code in WebKit passes the MIME type's charset to the percent-decoder algorithm, even though it is effectively unused: https://bugs.webkit.org/show_bug.cgi?id=235308)

Component: web-platform-tests → DOM: Networking
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 4 tests and 73 subtests

Status Summary

Firefox

OK : 4
PASS : 244
FAIL : 48

Chrome

OK : 4
PASS : 204
FAIL : 88

Safari

OK : 3
PASS : 219
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/fetch/data-urls/processing.any.html
"data://test:test/,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:;x=x;charset=x,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:;x=x,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:IMAGE/gif;hi=x,%C2%B1": FAIL (Chrome: FAIL, Safari: PASS)
"data:image/png,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:application/javascript,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:unknown/unknown,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:text/plain;a=",",X": FAIL (Chrome: FAIL, Safari: PASS)
"data:text/plain;a=%2C,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:x/x;base64;charset=x,WA": FAIL (Chrome: FAIL, Safari: PASS)
"data:x;base64;x,WA": FAIL (Chrome: FAIL, Safari: PASS)
"data:;base64;,WA": FAIL (Chrome: FAIL, Safari: PASS)
/fetch/data-urls/processing.any.sharedworker.html
"data://test:test/,X": FAIL (Chrome: FAIL)
"data:;x=x;charset=x,X": FAIL (Chrome: FAIL)
"data:;x=x,X": FAIL (Chrome: FAIL)
"data:IMAGE/gif;hi=x,%C2%B1": FAIL (Chrome: FAIL)
"data:image/png,X X": FAIL (Chrome: FAIL)
"data:application/javascript,X X": FAIL (Chrome: FAIL)
"data:unknown/unknown,X X": FAIL (Chrome: FAIL)
"data:text/plain;a=",",X": FAIL (Chrome: FAIL)
"data:text/plain;a=%2C,X": FAIL (Chrome: FAIL)
"data:x/x;base64;charset=x,WA": FAIL (Chrome: FAIL)
"data:x;base64;x,WA": FAIL (Chrome: FAIL)
"data:;base64;,WA": FAIL (Chrome: FAIL)
/fetch/data-urls/processing.any.worker.html
"data://test:test/,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:;x=x;charset=x,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:;x=x,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:IMAGE/gif;hi=x,%C2%B1": FAIL (Chrome: FAIL, Safari: PASS)
"data:image/png,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:application/javascript,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:unknown/unknown,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:text/plain;a=",",X": FAIL (Chrome: FAIL, Safari: PASS)
"data:text/plain;a=%2C,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:x/x;base64;charset=x,WA": FAIL (Chrome: FAIL, Safari: PASS)
"data:x;base64;x,WA": FAIL (Chrome: FAIL, Safari: PASS)
"data:;base64;,WA": FAIL (Chrome: FAIL, Safari: PASS)
/fetch/data-urls/processing.any.serviceworker.html
"data://test:test/,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:;x=x;charset=x,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:;x=x,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:IMAGE/gif;hi=x,%C2%B1": FAIL (Chrome: FAIL, Safari: PASS)
"data:image/png,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:application/javascript,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:unknown/unknown,X X": FAIL (Chrome: FAIL, Safari: PASS)
"data:text/plain;a=",",X": FAIL (Chrome: FAIL, Safari: PASS)
"data:text/plain;a=%2C,X": FAIL (Chrome: FAIL, Safari: PASS)
"data:x/x;base64;charset=x,WA": FAIL (Chrome: FAIL, Safari: PASS)
"data:x;base64;x,WA": FAIL (Chrome: FAIL, Safari: PASS)
"data:;base64;,WA": FAIL (Chrome: FAIL, Safari: PASS)

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.