[wpt-sync] Sync PR 50623 - `DataTransferItem`: improve spec compliance
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 50623 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/50623
Details from upstream follow.
Gae24 <96017547+Gae24@users.noreply.github.com> wrote:
DataTransferItem
: improve spec compliance<!-- Please describe your changes on the following line: -->
Avoid copying the kind enum inside DataTransferItem when constructing it; fetch it through drag_data_store instead.
According to spec if an item is removed from the drag data store item list, the correspondingDataTransferItem
will be in a disabled mode.I decided to use IndexMap since it was already a dependency and access by both index and a key was required.
For key i simply used a u16, maybe use a newtype for clarity?Reviewed in servo/servo#35418
Assignee | ||
Updated•1 month ago
|
Assignee | ||
Comment 1•26 days ago
|
||
Assignee | ||
Comment 2•26 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 2 subtests
Status Summary
Firefox
OK
: 1
PASS
: 1
FAIL
: 1
Chrome
OK
: 1
PASS
: 1
FAIL
: 1
Safari
OK
: 1
PASS
: 1
FAIL
: 1
Links
Details
New Tests That Don't Pass
- /html/editing/dnd/datastore/datatransferitemlist-remove.html [wpt.fyi]
- remove()ing an item will put the associated DataTransferItem object in the disabled mode:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- remove()ing an item will put the associated DataTransferItem object in the disabled mode:
Comment 4•24 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9abf2559ad08
https://hg.mozilla.org/mozilla-central/rev/884f282bc588
Description
•