- From: CSS Meeting Bot <notifications@github.com>
- Date: Thu, 14 Jul 2022 08:20:42 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/issues/179/1184576129@github.com>
The Web Editing Working Group just discussed `should reading the clipboard throw DataError or empty clipboard items?`. <details><summary>The full IRC log of that discussion</summary> <Travis> topic: should reading the clipboard throw DataError or empty clipboard items?<br> <Travis> github: https://github.com/w3c/clipboard-apis/issues/179<br> <Travis> (reads the issue)<br> <Travis> whsieh_: this is the situation where there IS data on the clipboard, but none of it can be consumed by the webpage...?<br> <Travis> .. seems weird to throw a DataError in the case where there is nothing in the clipboard/pasteboard...<br> <Travis> .. in that case, returning an empty list.<br> <Travis> travis: I like just returning an empty list too--easy for web authors to handle with erroring out...<br> <Travis> whsieh_: In the specific example that snianu (Anupam) gave, I'm not sure if the error is OK.<br> <Travis> .. probably can't resolve on this at this time without further discussion with snianu?<br> <Travis> s/snianu?/snianu.<br> <Travis> johanneswilm: can the JS Editors differentiate between the different error conditions?<br> <Travis> .. could the user re-request? E.g., if the user didn't grant permission?<br> <Travis> whsieh_: recap; there are cases where a website might want to know whether they can try again, or whether they shouldn't try again.<br> <Travis> .. empty list vs throw error could be a way to differentiate.<br> <Travis> johanneswilm: there are two other cases...<br> <Travis> .. one where the user didn't give access, and one where the clipboard is changed after access is granted.<br> <Travis> whsieh_: in the first case, Safari throws "NotAllowed" (from the user denying paste).<br> <Travis> .. in the case where it changed, we also throw an error; but the type of error may not make sense...<br> <Travis> .. could look at changing it?<br> <Travis> (no resolution yet)<br> </details> -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/179#issuecomment-1184576129 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/179/1184576129@github.com>
Received on Thursday, 14 July 2022 15:20:55 UTC