Re: [w3c/clipboard-apis] Should clipboard-write permission be removed too? (Issue #163)

> Note that [a recent change](https://groups.google.com/a/chromium.org/g/blink-dev/c/ogthZ-gQwFE/m/SME4uq6KBgAJ?utm_medium=email&utm_source=footer) was made in Chromium to allow web authors to access clipboard within the copy/paste event handler, so that might work for your use case @robertknight ?

Our use cases generally look like the [MDN example](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText#examples) where a clipboard API to write text or HTML is called when a button is clicked. For context our app is an annotation / commenting tool for HTML / PDF and there are buttons to copy comments to the clipboard, so they can be easily pasted into a document or spreadsheet.

I tried the latest Chrome Canary release and it seems that iframes still need the `clipboard-write` permission to enable writing to the clipboard in response to a button click.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/163#issuecomment-1919902836
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/163/1919902836@github.com>

Received on Wednesday, 31 January 2024 20:29:35 UTC