[w3c/permissions] Integrate "request permission to use" with user activation (PR #401)

Allows "request permission to use" to accept an optional promise.

The promise gets rejected if the page doesn't have transient activation. Also, when the promise is passed, the algorithm now consumes the user activation. If passed, the promise is resolved with the user's choice.

closes #194


You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/permissions/pull/401

-- Commit Summary --

  * Integrate "request permission to use" with user activation

-- File Changes --

    M index.html (43)

-- Patch Links --

https://github.com/w3c/permissions/pull/401.patch
https://github.com/w3c/permissions/pull/401.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/401
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/permissions/pull/401@github.com>

Received on Friday, 25 November 2022 04:27:08 UTC