Skip to content

Commit

Permalink
Add permission key type
Browse files Browse the repository at this point in the history
  • Loading branch information
johannhof committed Dec 2, 2022
1 parent 3a86778 commit 0128bca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion storage-access.bs
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,13 @@ The Storage Access API defines a [=powerful feature=] identified by the [=powerf

Note: The "denied" permission state is not revealed to avoid exposing the user's decision to developers. This is done to prevent retaliation against the user and repeated prompting to the detriment of the user experience.
</dd>
<dt>[=powerful feature/permission key type]</dt>
<dd>
A [=permission key] of the "<a permission><code>storage-access</code></a>" feature has the type ([=site=], [=/origin=]).
</dd>
<dt>[=powerful feature/permission key generation algorithm]</dt>
<dd>
To generate a new [=permission store key] for the "<a permission><code>storage-access</code></a>" feature, given an [=environment settings object=] |settings|, run the following steps:
To generate a new [=permission key] for the "<a permission><code>storage-access</code></a>" feature, given an [=environment settings object=] |settings|, run the following steps:

1. Let |topLevelSite| be |settings|' [=top-level site=].
1. Let |embeddedOrigin| be |settings|' [=environment settings object/origin=].
Expand Down

0 comments on commit 0128bca

Please sign in to comment.