Chrome 133 and Edge 133 now allow passing strings and Promises directly to the ClipboardItem constructor, removing the need to wrap plain text in a Blob object first. Previously, Chromium-based browsers required a Blob for all clipboard writes. This change improves developer ergonomics for simple text copying and brings Chromium in line with other browsers. Promises passed to ClipboardItem can resolve to either a string or a Blob, enabling async content fetching before writing to the clipboard.

2m read timeFrom patrickbrosset.com
Post cover image
Table of contents
Creating ClipboardItems from stringsCreating ClipboardItems from promises

Sort: