- From: CSS Meeting Bot <notifications@github.com>
- Date: Thu, 12 May 2022 08:40:45 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/issues/75/1125148793@github.com>
The Web Editing Working Group just discussed `Don't recommend user gesture in clipboard API`. <details><summary>The full IRC log of that discussion</summary> <Travis> topic: Don't recommend user gesture in clipboard API<br> <Travis> github: https://github.com/w3c/clipboard-apis/issues/75<br> <Travis> johanneswilm: last time the action was whsieh will check user-activation spec and propose number of seconds.<br> <Travis> .. and BoCupp said 1s seems reasonable.<br> <Travis> whsieh: I haven't yet decided on a specific value of seconds... :(<br> <Travis> .. I think we should just start with 1s and increase if needed.<br> <Travis> BoCupp: refresher: why the number of seconds? (Can't remember the details)<br> <Travis> .. when writing to clipboard you can write immediately. Waiting on the network, etc., isn't a problem except for the timing of performing the write call.<br> <Travis> whsieh: in this case the requestor doesn't know whether they want to call clipboard write during the user gesture.<br> <Travis> johanneswilm: e.g., in remote desktop they don't know if anything's on the clipboard.<br> <Travis> .. do I hear correctly that 1s is the recommendation?<br> <Travis> whsieh: I think we should start more conservatively. Chrome/Firefox time is currently 5s.<br> <Travis> .. Webkit's user activation time is 1s everywhere else. This would match everything else.<br> <Travis> .. then eventually we could move everything to match other browser (user-activation time delay to perhaps 5s)<br> <Travis> .. right now there is no delay--it has to be during the event handler.<br> <Travis> BoCupp: Even in navigator.clipboard.write?<br> <Travis> whsieh: yes, in webkit.<br> <Travis> .. like touchstart--other things we consider user activation.<br> <Travis> .. it has to be synchronously as part of the user gesture (no async stuff)<br> <Travis> johanneswilm: So, 1s? Will other browsers change?<br> <Travis> BoCupp: I feel like (no number of seconds) will ever be enough for some of these scenarios.<br> <Travis> johanneswilm: should there be a minimum?<br> <Travis> .. e.g., in firefox it's 5s? But other browsers have faster times (500ms), then it will break everywhere else.<br> <Travis> .. but if it's written down as 1s, then there's an expectation set.<br> <Travis> BoCupp: I'm not inclinded to write the 1s (or other time) anywhere. Would rather provide affordances for delaying rather than just changing the number of seconds for this [edge case].<br> <Travis> .. 5s seems like a really long time for a user-gesture...<br> <Travis> BoCupp: Would like to say in the issue--not likely to change this. There's no guarantee that this will solve all use cases...<br> <Travis> .. wondering if this is the kind of issue we don't need to put in the spec.<br> <Travis> whsieh: having some delay (in WebKit) would help, since there's currently no delay.<br> <Travis> johanneswilm: So, we don't want to specify any value, but should just say some amount of time?<br> <Travis> BoCupp: If we did say it, we wouldn't put it in our spec... should probably go to user-activation spec?<br> <Travis> .. increasing the seconds to solve this problem isn't really solving the problem.<br> <Travis> .. I do like having a consideration for introducing an async delay.<br> <Travis> .. I like the idea of having whsieh post to the issue and indicate they may take some action...<br> <Travis> action: whsieh to post to the issue and indicate a plan to make an adjustment to support async delay of some sort to handle this scenario.<br> </details> -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/75#issuecomment-1125148793 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/75/1125148793@github.com>
Received on Thursday, 12 May 2022 15:40:57 UTC