wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

Stabilize the Clipboard API

Open evilpie opened this issue 1 year ago • 0 comments

Motivation

Currently the Clipboard API is in the unstable folder: https://github.com/rustwasm/wasm-bindgen/blob/main/crates/web-sys/webidls/unstable/Clipboard.webidl. Since Firefox 127 all browsers support this API in stable versions. There are still some difference like unsanitized where Safari/Firefox won't follow Chrome: https://github.com/w3c/clipboard-apis/issues/206#issue-2038753339.

Additionally this would be useful for Ruffle so we don't need to opt-in to unstable for https://github.com/ruffle-rs/ruffle/pull/16692.

Proposed Solution

I am going to make it stable.

Alternatives

n/a

Additional Context

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility

evilpie avatar Jun 18 '24 18:06 evilpie