Open Bug 1931644 Opened 17 days ago

Consider making nsIClipboard.getDataSnapshot{Sync}() takes no flavor list and simply returns an nsIClipboardDataSnapshot containing all available clipboard formats

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)

enhancement

Tracking

()

People

(Reporter: edgar, Unassigned)

Details

Currently, nsIClipboard.getDataSnapshot{Sync}() requires specifying a list of formats to retrieve, and the returned nsIClipboardDataSnapshot will only contain those formats if available. This makes nsIClipboardDataSnapshot difficult to share, as they might contain different formats even when referencing the same clipboard contents.

I’m considering changing the API so that it doesn’t require specifying a list of formats. Instead, the returned nsIClipboardDataSnapshot would contain all available formats from the system clipboard, making it easier to share.

You need to log in before you can comment on or make changes to this bug.