- From: Euclid Ye <notifications@github.com>
- Date: Tue, 12 May 2026 21:04:09 -0700
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/FileAPI/pull/220@github.com>
While implementing FileAPI in Servo, https://github.com/servo/servo/pull/44897
I notice we fail to pass some readAsDataURL WPT tests:
1. [result for Blob with unspecified MIME type](https://github.com/servo/servo/blob/1490ec70d422ee69ead5571a1c4ae93d92f0b07a/tests/wpt/tests/FileAPI/reading-data-section/filereader_readAsDataURL.any.js#L42)
2. [readAsDataURL result for empty Blob](https://github.com/servo/servo/blob/1490ec70d422ee69ead5571a1c4ae93d92f0b07a/tests/wpt/tests/FileAPI/reading-data-section/filereader_readAsDataURL.any.js#L54)
It seems that spec is not aligned with test expectations. WebKit, Chromium, Gecko would fallback to `application/octet-stream`.
Part of #104
Implementation commitment:
* [x] WebKit
* [x] Chromium
* [x] Gecko
And Servo will do this from now on.
<!--
This comment and the below content is programmatically generated.
You may add a comma-separated list of anchors you'd like a
direct link to below (e.g. #idl-serializers, #idl-sequence):
Don't remove this comment or modify anything below this line.
If you don't want a preview generated for this pull request,
just replace the whole of this comment's content by "no preview"
and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/yezhizhen/FileAPI/pull/220.html" title="Last updated on May 13, 2026, 4:03 AM UTC (ea6dc2f)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/FileAPI/220/13757c2...yezhizhen:ea6dc2f.html" title="Last updated on May 13, 2026, 4:03 AM UTC (ea6dc2f)">Diff</a>
You can view, comment on, or merge this pull request online at:
https://github.com/w3c/FileAPI/pull/220
-- Commit Summary --
* Specify Data URL media-type as `application/octet-stream` when `mimeType` not available
-- File Changes --
M index.bs (2)
-- Patch Links --
https://github.com/w3c/FileAPI/pull/220.patchhttps://github.com/w3c/FileAPI/pull/220.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/pull/220
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/FileAPI/pull/220@github.com>
Received on Wednesday, 13 May 2026 04:04:16 UTC