Re: [w3c/push-api] check and consume user activation (PR #348)

@annevk commented on this pull request.



> @@ -1200,6 +1200,21 @@ <h3>
             </li>
           </ol>
         </li>
+        <li>If |global| is a {{Window}} object:
+          <ol>
+            <li>Let |permissionState| be "`push`"'s [=permission state=].
+            </li>
+            <li>If |permissionState| is "`prompt`":
+              <ol>
+                <li>If |global| does not have [=transient activation=], return [=a promise rejected

I should queue a task here and not just return a fresh promise. I do think we want to consume immediately and not from a task. Otherwise it's not very predictable for web developers.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/348#discussion_r2580669967
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/push-api/pull/348/review/3529484587@github.com>

Received on Tuesday, 2 December 2025 10:57:28 UTC