Closed Bug 1793535 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36243 - Blob fetch with no type has an empty content type

Categories

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

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Dan Robertson <drobertson@mozilla.com> wrote:

Blob fetch with no type has an empty content type

When fetching a blob with and empty type, the content-type header should be the empty string.

Related to: https://github.com/whatwg/fetch/issues/1436

Component: web-platform-tests → DOM: Networking
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 2 tests and 17 subtests

Status Summary

Firefox

OK : 2
PASS: 18
FAIL: 16

Chrome

OK : 2
PASS: 20
FAIL: 14

Safari

OK : 2
PASS: 30
FAIL: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

  • /fetch/api/basic/scheme-blob.sub.any.worker.html [wpt.fyi]
    • Fetching URL.createObjectURL(empty_blob) is OK: FAIL (Chrome: FAIL, Safari: PASS)
    • Fetching URL.createObjectURL(empty_type_blob) is OK: FAIL (Chrome: FAIL, Safari: PASS)
    • Fetching URL.createObjectURL(empty_data_blob) is OK: FAIL (Chrome: PASS, Safari: PASS)
    • Blob content is not sniffed for a content type [image/png]: FAIL (Chrome: FAIL, Safari: PASS)
    • Blob content is not sniffed for a content type [text/xml]: FAIL (Chrome: FAIL, Safari: PASS)
    • Set content type to the empty string for slice with invalid content type: FAIL (Chrome: FAIL, Safari: FAIL)
    • Set content type to the empty string for slice with no content type : FAIL (Chrome: FAIL, Safari: FAIL)
    • Blob.slice should not sniff the content for a content type: FAIL (Chrome: FAIL, Safari: PASS)
  • /fetch/api/basic/scheme-blob.sub.any.html [wpt.fyi]
    • Fetching URL.createObjectURL(empty_blob) is OK: FAIL (Chrome: FAIL, Safari: PASS)
    • Fetching URL.createObjectURL(empty_type_blob) is OK: FAIL (Chrome: FAIL, Safari: PASS)
    • Fetching URL.createObjectURL(empty_data_blob) is OK: FAIL (Chrome: PASS, Safari: PASS)
    • Blob content is not sniffed for a content type [image/png]: FAIL (Chrome: FAIL, Safari: PASS)
    • Blob content is not sniffed for a content type [text/xml]: FAIL (Chrome: FAIL, Safari: PASS)
    • Set content type to the empty string for slice with invalid content type: FAIL (Chrome: FAIL, Safari: FAIL)
    • Set content type to the empty string for slice with no content type : FAIL (Chrome: FAIL, Safari: FAIL)
    • Blob.slice should not sniff the content for a content type: FAIL (Chrome: FAIL, Safari: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8afa45262754 [wpt PR 36243] - Blob fetch with no type has an empty content type, a=testonly https://hg.mozilla.org/integration/autoland/rev/97933af7e828 [wpt PR 36243] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.