Re: [w3c/clipboard-apis] What happens if promises to Blobs are not resolved within a reasonable amount of time? (Issue #161)

> The spec's user activation rules solve this: you get 1 second. If the clipboard promises only have 1 second, then there's no need for the promise API at all, and it can all just be done under user activation rules.

Thanks for bringing up user activation.

User activation is required when calling `clipboard.write()` or `clipboard.writeText()`, see https://w3c.github.io/clipboard-apis/#dom-clipboard-writetext down to https://html.spec.whatwg.org/multipage/interaction.html#transient-activation-duration. The spec only mentions that the duration should be "at most a few seconds", but even if it were more precise, it wouldn't answer the questions raised in https://github.com/w3c/clipboard-apis/issues/161#issue-1037708147.

@snianu: thanks for bringing up the questions, I didn't investigate them exhaustively yet, but AFAIU, the behavior is currently not covered by the spec. But it should be. CC @annevk 

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

Received on Monday, 1 November 2021 10:08:59 UTC