[wpt-sync] Sync PR 63346 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326468
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63346 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63346
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326468
WebKit export from bug: DataTransfer treats any format starting with "text/plain" (e.g. "text/plainfoo") as text/plain
<pre>
DataTransfer treats any format starting with "text/plain" (e.g. "text/plainfoo") as text/plainThis patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
normalizeType() mapped every format that started with "text/plain" to text/plain,
because the check had no ";". As a result, setData("text/plainfoo", ...) overwrote
the text/plain item, getData("text/plainfoo") returned the text/plain data, and
clearData("text/plainfoo") removed text/plain.The HTML spec only normalizes the exact strings "text" and "url". This patch
matches "text/plain" exactly, or requires a ";" after "text/plain", the same way
the text/uri-list and text/html checks next to it already do. This matches Blink.
Formats with MIME parameters, such as "text/plain;charset=utf-8", still map to
text/plain.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326468">https://bugs.webkit.org/show_bug.cgi?id=326468</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322954@main">https://commits.webkit.org/322954@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=101952
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 9 tests and 2 subtests
Status Summary
Firefox
OK : 1[GitHub] 9[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 10[GitHub] 33[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 10
Chrome
OK : 1
PASS: 10
Safari
OK : 1
PASS: 1
FAIL: 9
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/editing/dnd/datastore/datatransfer-getdata-url.html [wpt.fyi]
- The format is matched ASCII case-insensitively after stripping whitespace:
FAIL - Requesting text/uri-list does not convert to a URL:
FAIL - Leading blank lines are skipped:
FAIL
- The format is matched ASCII case-insensitively after stripping whitespace:
- /html/editing/dnd/datastore/datatransferitem-disabled-mode.html [wpt.fyi]
- remove() puts a string item into the disabled mode:
FAIL - remove() puts a File item into the disabled mode:
FAIL - clear() puts every item into the disabled mode:
FAIL - clearData() puts the removed string item into the disabled mode:
FAIL - setData() puts the replaced string item into the disabled mode:
FAIL
- remove() puts a string item into the disabled mode:
- /html/editing/dnd/datastore/datatransferitemlist-clear-read-only.html [wpt.fyi]
- DataTransferItemList.clear() is a no-op in the protected and read-only modes:
FAIL
- DataTransferItemList.clear() is a no-op in the protected and read-only modes:
- /html/editing/dnd/datastore/datatransferitemlist-remove.html [wpt.fyi]
- remove()ing an item will put the associated DataTransferItem object in the disabled mode:
FAIL
- remove()ing an item will put the associated DataTransferItem object in the disabled mode:
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•