- From: mbrodesser <notifications@github.com>
- Date: Wed, 15 Dec 2021 03:35:18 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 15 December 2021 11:35:30 UTC
@mbrodesser commented on this pull request.
>
1. Run the following steps [=in parallel=]:
- 1. Let |r| be the result of running [=check clipboard read permission=] [=in parallel=]
+ 1. Let |r| be the result of running [=check clipboard read permission=].
+
+ Note: Clipboard permission is not supported on Safari. However, the read() method must be called inside
+ a user gesture event and the user must select the paste option from the native context menu that pops up
+ when read() is called from JS, otherwise, the promise will be rejected.
+
+ 1. If |r| is false, then:
+
+ 1. [=Queue a global task=] on the [=permission task source=], given |realm|'s [=Realm/global object=], to [=reject=] |p| with {{"NotAllowedError"}} DOMException in |realm|.
TBH "permission task source" and why it's needed is unclear to me. Its 'definition', https://w3c.github.io/permissions/#dfn-permissions-task-source, isn't really one. @domenic could you please shed some light on this?
--
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/pull/158#pullrequestreview-832697802
Received on Wednesday, 15 December 2021 11:35:30 UTC