- From: Johann Hofmann <notifications@github.com>
- Date: Thu, 01 Dec 2022 14:43:09 -0800
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/permissions/pull/390/review/1201759798@github.com>
@johannhof commented on this pull request.
> + <p>
+ To <dfn class="export">get a permission store entry</dfn> given a {{PermissionDescriptor}} |descriptor| and [=permission key=] |key|, run these steps:
+ <ol class="algorithm">
+ <li>
+ If the user agent's [=permission store=] [=list/contains=] an [=entry=] whose [=permission store entry/descriptor=] is |descriptor|, and whose [=permission store entry/key=] [=permission key/is equal to=] |key| given |descriptor|, return that entry.
+ </li>
+ <li>
+ Return null.
+ </li>
+ </ol>
+ </p>
+ <p>
+ To <dfn class="export">set a permission store entry</dfn> given a {{PermissionDescriptor}} |descriptor|, a [=permission key=] |key|, and a [=permission/state=] |state|, run these steps:
+ <ol class="algorithm">
+ <li>
+ Let |newEntry| be a new [=permission store entry=] whose [=permission store entry/descriptor=] is |descriptor|, and whose [=permission store entry/key=] [=permission key/is equal to=] |key| given |descriptor|, and whose [=permission store entry/state=] is |state|.
Ooh, duh. What is my brain.
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/390#discussion_r1037627190
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/permissions/pull/390/review/1201759798@github.com>
Received on Thursday, 1 December 2022 22:43:21 UTC