- From: Peter Linss <notifications@github.com>
- Date: Mon, 12 Feb 2024 13:52:05 -0800
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3ctag/design-reviews/issues/925/1939649745@github.com>
Discussed during a breakout today with @hober and @martinthomson. We're happy to see the privacy concerns addressed (though we do see this approach as somewhat kicking the can down the road if more formats are exposed later). We do have some concerns about the API shape: ```idl typedef (DOMString or Blob) ClipboardItemValue; // should this be `Promise<ClipboardItemValue>` instead? callback ClipboardItemValueCallback = ClipboardItemValue(); // this should take a `DOMString type` argument so you don't need a closure always typedef Promise<(ClipboardItemValue or ClipboardItemValueCallback)> ClipboardItemData; // A promise here is a bit strange. I might accept that you have three things: (DOMString or Blob), Promise<(DOMString or Blob)>, or a callback. [SecureContext, Exposed=Window] // should this be transferrable? interface ClipboardItem { constructor(record<DOMString, ClipboardItemData> items, optional ClipboardItemOptions options = {}); readonly attribute PresentationStyle presentationStyle; // what populates this? options? readonly attribute FrozenArray<DOMString> types; Promise<Blob> getType(DOMString type); // maybe just `get(DOMString type)` }; ``` -- Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/925#issuecomment-1939649745 You are receiving this because you are subscribed to this thread. Message ID: <w3ctag/design-reviews/issues/925/1939649745@github.com>
Received on Monday, 12 February 2024 21:52:17 UTC