Re: [w3c/clipboard-apis] Add Clipboard Feature Policy (#120)

@marcoscaceres commented on this pull request.



>     1. Let |p| be a new [=Promise=].
 
+   1. If the [=current settings object's=] responsible document is not
+    [=allowed to use=] the "clipboard-write" feature, then reject |p|
+    with a "NotAllowedError" DOMException.
+

This current algorithm currently continues with the rejected promise, instead of returning it. Let's do: 

```suggestion
   1. If the [=current settings object's=] responsible document is not
    [=allowed to use=] the "clipboard-write" feature, then
    return a promise rejected with a "NotAllowedError" DOMException.

   1. Let |p| be a new [=Promise=].


```

-- 
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/120#pullrequestreview-432061600

Received on Wednesday, 17 June 2020 05:08:45 UTC