Re: [w3c/payment-handler] Define requestPermission() behavior. (#180)

rsolomakhin commented on this pull request.



> @@ -697,6 +716,14 @@
             When called, this method executes the following steps:
           </p>
           <ol>
+            <li>Let <var>permission</var> be the result of running
+              <a data-cite="!permissions#dfn-retrieve-the-permission-state">retrieve
+              the permission state algorithm</a> of the permission associated
+              with <a>payment handler</a>.
+            </li>
+            <li>If <var>permission</var> is not "granted", then return a
+            <a>Promise</a> rejected with a <a>SecurityError</a>.

`NotAllowedError` might be better, IMHO.

-- 
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/payment-handler/pull/180#pullrequestreview-45444518

Received on Wednesday, 21 June 2017 14:11:29 UTC