← Back to release summary

Feature detection for supported clipboard formats

Category
Miscellaneous
Type
Chromium catches up
Status
Enabled by default (Chrome 121)
Intent stage
None

Summary

Currently during async clipboard write operation, there is no way for the web authors to detect if a particular mime type is supported by the UAs or not before attempting to actually write the formats to the clipboard. This not only affects developer ergonomics as now web authors have to attempt to write to the clipboard first in order to find out whether write failed due to a particular mime type not supported by the UAs (or sometimes add version checks that are unreliable at best), but also leads to unnecessary cost in terms of CPU cycles, COGS etc in order to produce an expensive web custom format which may not be supported by a particular browser.

Standards & signals

Samples: https://lake-cobalt-way.glitch.me

View on chromestatus.com