- From: Mike Taylor <notifications@github.com>
- Date: Wed, 07 Dec 2022 18:44:00 -0800
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/permissions/pull/390/review/1209376779@github.com>
@miketaylr approved this pull request. LGTM - thank you! > + <ol class="algorithm"> + <li> + Return |settings|'s [=environment/top-level origin=]. + </li> + </ol> + <aside class="note" title="Permission Delegation"> + Most powerful features grant permission to the top-level origin and delegate access to the requesting document via [[[Permissions-Policy]]]. + This is known as permission delegation. + </aside> + </dd> + <dt> + A <dfn data-dfn-for="powerful feature" class="export">permission key comparison algorithm</dfn>: + </dt> + <dd> + <p> + Takes two [=permission keys=] and returns a boolean that shows whether the two keys are equal. ```suggestion Takes two [=permission keys=] and returns a [=boolean=] that shows whether the two keys are equal. ``` > + The user agent maintains a single <dfn class="export">permission store</dfn> which is a [=/list=] of [=permission store entries=]. + </p> + <p> + The user agent MAY remove [=entries=] from the [=permission store=] when their respective [=permission=]'s [=permission/lifetime=] has expired. + </p> + <p> + A <dfn class="export" data-local-lt="entry">permission store entry</dfn> is a [=tuple=] of {{PermissionDescriptor}} <dfn class="export" data-dfn-for="permission store entry">descriptor</dfn>, [=permission key=] <dfn class="export" data-dfn-for="permission store entry">key</dfn>, and [=permission/state=] <dfn class="export" data-dfn-for="permission store entry">state</dfn>. + </p> + <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. Ah, yeah - makes sense. Thx. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/permissions/pull/390#pullrequestreview-1209376779 You are receiving this because you are subscribed to this thread. Message ID: <w3c/permissions/pull/390/review/1209376779@github.com>
Received on Thursday, 8 December 2022 02:44:12 UTC