Closed Bug 1872992 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 43851 - Do not remove File kind objects in dataTransfer.clearData().

Categories

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

task

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 43851 into mozilla-central (this bug is closed when the sync is complete).

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

Palak Bhatia <palakbhatia@microsoft.com> wrote:

Do not remove File kind objects in dataTransfer.clearData().

As per the spec
https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransfer-cleardata,
clearData() does not delete the File objects.
This aligns the behavior of clearData() with other browsers such as
Firefox and Safari.

Bug: 1402130
Change-Id: Ic5cb875675368f03e110b91056235a93de7aa98d
Reviewed-on: https://chromium-review.googlesource.com/5124820
WPT-Export-Revision: e006da24cbead11c0610922e9e82fec88954acd8

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1008a654a44d [wpt PR 43851] - Do not remove File kind objects in dataTransfer.clearData()., a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.