Skip to content

Commit

Permalink
Use right notation for default allowlist value. (#244)
Browse files Browse the repository at this point in the history
w3c/webappsec-permissions-policy#123 clarified the notation and types used
by allowlists and default allowlists.

Default allowlists are not allowlists themselves, so we need to use `"self"`
rather than `["self"]`.

Fixes #154
  • Loading branch information
arskama committed Nov 10, 2023
1 parent f398d17 commit 4fd844d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h3>
<p>
The Compute Pressure API defines a [=policy-controlled feature=]
identified by the token "compute-pressure".
Its [=policy-controlled feature/default allowlist=] is `["self"]`.
Its [=policy-controlled feature/default allowlist=] is `'self'`.
</p>
<p>
Workers (dedicated and shared) adhere to the permission policy set by their
Expand All @@ -307,7 +307,7 @@ <h3>
</aside>
<aside class="note">
<p>
The [=policy-controlled feature/default allowlist=] of `["self"]` allows usage in
The [=policy-controlled feature/default allowlist=] of `'self'` allows usage in
same-origin nested frames but prevents third-party content from using
the feature.
</p>
Expand Down

0 comments on commit 4fd844d

Please sign in to comment.