Closed Bug 1947420 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 50623 - `DataTransferItem`: improve spec compliance

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
137 Branch
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 corresponding DataTransferItem 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

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9abf2559ad08 [wpt PR 50623] - `DataTransferItem`: improve spec compliance, a=testonly https://hg.mozilla.org/integration/autoland/rev/884f282bc588 [wpt PR 50623] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.