Intent to Ship: Support creating ClipboardItem with Promise<DOMString>

320 views
Skip to first unread message

Chromestatus

unread,
Oct 24, 2024, 6:08:14 AMOct 24
to blin...@chromium.org, rago...@microsoft.com, sa...@microsoft.com, sambamurt...@microsoft.com

Contact emails

sambamurt...@microsoft.com, rago...@microsoft.com, sa...@microsoft.com

Explainer

None

Specification

https://www.w3.org/TR/clipboard-apis/#typedefdef-clipboarditemdata

Summary

The ClipboardItem, which is the input to the async clipboard write method, now accepts string values in addition to Blobs in its constructor. ClipboardItemData can be a Blob, a string, or a Promise that resolves to either a Blob or a string.



Blink component

Blink>DataTransfer

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

This is already supported in Firefox and Safari



Gecko: Shipped/Shipping (https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem#data)

WebKit: Shipped/Shipping (https://webkit.org/blog/10855/async-clipboard-api)

Web developers: No signals

Other signals:

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

None



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://wpt.fyi/results/clipboard-apis/async-navigator-clipboard-basics.https.html



Flag name on chrome://flags

None

Finch feature name

ClipboardItemWithDOMStringSupport

Requires code in //chrome?

False

Tracking bug

https://issues.chromium.org/issues/40766145

Estimated milestones

DevTrial on desktop 132
DevTrial on Android 132
DevTrial on iOS 132


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

https://chromestatus.com/feature/4926138582040576?gate=4779038837833728

This intent message was generated by Chrome Platform Status.

Daniel Bratell

unread,
Oct 25, 2024, 5:22:41 AMOct 25
to Chromestatus, blin...@chromium.org, rago...@microsoft.com, sa...@microsoft.com, sambamurt...@microsoft.com

LGTM1 - but I do have some comments.

It's good catching up here, but I recommend always to write an explainer. For a trivial change, it might be a trivial explainer, but just something for those that are not intimately familiar with the area. Might just be a one or a few sentences. And it's not too late.

I see that Chromium currently also fails the DOMString test without promises, but with a Promise error so that test may be buggy.

/Daniel

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/671a1c83.710a0220.3c7610.03ef.GAE%40google.com.

Yoav Weiss (@Shopify)

unread,
Oct 30, 2024, 6:20:25 AMOct 30
to Daniel Bratell, Chromestatus, blin...@chromium.org, rago...@microsoft.com, sa...@microsoft.com, sambamurt...@microsoft.com
Can y'all flip the review bits in the chromestatus entry? 

Sambamurthy Bandaru

unread,
Oct 30, 2024, 2:04:33 PMOct 30
to blink-dev, Yoav Weiss (@Shopify), Chromestatus, blin...@chromium.org, rago...@microsoft.com, sa...@microsoft.com, sambamurt...@microsoft.com, Daniel Bratell
Done. 

Domenic Denicola

unread,
Oct 31, 2024, 2:05:48 AMOct 31
to blink-dev, Sambamurthy Bandaru, Yoav Weiss, Chromestatus, blin...@chromium.org, rago...@microsoft.com, Sanket Joshi (Edge), Daniel Bratell
LGTM2.

I agree with Daniel's comments that a couple sentences of explainer would have helped here.

Note that the WPTs are showing as failing on wpt.fyi because your CL marked the new feature as "test" instead of "experimental". This is fine, but in the future it's slightly nicer if you mark them as "experimental". Since wpt.fyi runs in experimental mode, that lets us verify that the tests are passing a bit more easily.

Daniel Clark

unread,
Nov 12, 2024, 2:46:03 PMNov 12
to Domenic Denicola, blink-dev, Samba Murthy Bandaru, Yoav Weiss, Chromestatus, blin...@chromium.org, Rakesh Goulikar, Sanket Joshi (EDGE), Daniel Bratell, Alex Russell

In https://chromestatus.com/feature/4926138582040576?gate=4779038837833728 I see that 3 API Owners are marked as having approved, but in this thread there are only two votes.

I assume that it’s this thread that should be treated as the source of truth (is that right?), but maybe Alex can clarify if he meant to record an LGTM here as well?

 

-- Dan

Daniel Bratell

unread,
Dec 4, 2024, 10:55:44 AM (3 days ago) Dec 4
to Daniel Clark, Domenic Denicola, blink-dev, Samba Murthy Bandaru, Yoav Weiss, Chromestatus, Rakesh Goulikar, Sanket Joshi (EDGE), Alex Russell

They should really just be in sync. We have not discussed if one of them is more canon than the other.

Alex, just missing a mail for your lgtm?

/Daniel

Alex Russell

unread,
Dec 4, 2024, 11:04:27 AM (3 days ago) Dec 4
to blink-dev, Daniel Bratell, Samba Murthy Bandaru, Yoav Weiss, Chromestatus, Rakesh Goulikar, Sanket Joshi (Edge), Alex Russell, dan...@microsoft.com, Domenic Denicola
LGTM3; sorry for the delay.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Reply all
Reply to author
Forward
0 new messages