Web-Facing Change PSA: Do not delete File kind objects in dataTransfer.clearData()

89 views
Skip to first unread message

Anupam Snigdha

unread,
Jan 8, 2024, 4:55:01 PM1/8/24
to blin...@chromium.org, Sanket Joshi (EDGE), Palak Bhatia

Contact emails

Specification

Design docs

Summary

As per the spec https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransfer-cleardata, clearData() does not affect the File objects -- it only deletes the `text` kind objects. More info: https://docs.google.com/document/d/1Y8WW9kxQQ6Q0YCo3FQkLQBIJWb2c9fZBBOOT7YUkU8o/edit?usp=sharing



Blink component

Search tags

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Firefox has already shipped this change.



Gecko: Shipped/Shipping

WebKit: No signal

Web developers: Positive (https://bugs.chromium.org/p/chromium/issues/detail?id=1402130)

Other signals:

Ergonomics

None.



Activation

None.



Security

None.



WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

Existing devtools support for DataTransfer APIs is sufficient to debug this API.



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

Yes

https://github.com/web-platform-tests/wpt/pull/43851



Flag name on chrome://flags

DataTransferClearStringItems

Finch feature name

DataTransferClearStringItems

Requires code in //chrome?

False

Tracking bug

Estimated milestones

Shipping on desktop
122
Shipping on Android
122


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None

Link to entry on the Chrome Platform Status

This intent message was generated by Chrome Platform Status.

Thanks,
Anupam

Sent from Outlook

Anupam Snigdha

unread,
Jan 8, 2024, 5:11:39 PM1/8/24
to blin...@chromium.org, Sanket Joshi (EDGE), Palak Bhatia
Making few edits in TAG review and status of Webkit. This change has already shipped in both Firefox and Safari.


From: Anupam Snigdha
Sent: Monday, January 8, 2024 1:54 PM
To: blin...@chromium.org <blin...@chromium.org>
Cc: Sanket Joshi (EDGE) <sa...@microsoft.com>; Palak Bhatia <palak...@microsoft.com>
Subject: Web-Facing Change PSA: Do not delete File kind objects in dataTransfer.clearData()
 
None. This change has already shipped in both Safari and Firefox, and has been in the DataTransfer API spec:  https://html.spec.whatwg.org/multipage/dnd.html#dom-datatransfer-cleardata.

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Firefox has already shipped this change.



Gecko: Shipped/Shipping

WebKit:
Shipped/Shipping
Reply all
Reply to author
Forward
0 new messages