Closed Bug 1796812 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36594 - fetch: fix blob.slice tests content-length assert

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 36594 into mozilla-central (this bug is closed when the sync is complete).

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

Dan Robertson <drobertson@mozilla.com> wrote:

fetch: fix blob.slice tests content-length assert

The content-length checks in the fetch blob.slice tests are not valid. Add content to the input blob to ensure that blob.slice does not sniff the content-type and fix the content-length check.

See: https://github.com/web-platform-tests/wpt/pull/36243#pullrequestreview-1151195449

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

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.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.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)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d3e1a19844d1 [wpt PR 36594] - fetch: fix blob.slice tests content-length assert, 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.