Skip to content

Commit

Permalink
Add concept of Default Permission State (#354)
Browse files Browse the repository at this point in the history
* Add concept of Default Permission State

* fix typo
  • Loading branch information
marcoscaceres authored Feb 4, 2022
1 parent ac6a640 commit 069b7dd
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ <h3>
implicit signals.
</p>
</aside>
<p>
Every permission has a <dfn data-for="permission">default state</dfn> (usually
[=permission/prompt=]), which is the [=permission/state=] that the permission is in when
the user has not yet given [=express permission=] to use the [=feature=] or it has been
reset because its [=permission/lifetime=] has expired.
</p>
</section>
<section>
<h2>
Expand Down Expand Up @@ -400,8 +406,7 @@ <h3>
When the permission [=permission/lifetime=] expires for an origin:
</p>
<ol>
<li>Set the permission back to its default [=permission state=] (e.g. setting it
back to "[=permission/prompt=]").
<li>Set the permission back to its [=permission/default state=].
</li>
<li>For each |browsing context| associated with the origin (if any), [=queue a
global task=] on the [=permissions task source=] with the |browsing context|'s
Expand Down Expand Up @@ -436,6 +441,19 @@ <h3>
</p>
</aside>
</dd>
<dt>
<dfn class="export" data-dfn-for="powerful feature">Default permission state</dfn>:
</dt>
<dd>
<p>
A {{PermissionState}} value that serves as a [=permission=]'s [=permission/default
state=] of a [=powerful feature=].
</p>
<p>
If not specified, the [=permission=]'s [=permission/default state=] is
{{PermissionState/"prompt"}}.
</p>
</dd>
</dl>
<p>
A <dfn class="export">default powerful feature</dfn> is a <a>powerful feature</a> with
Expand Down

0 comments on commit 069b7dd

Please sign in to comment.