Skip to content

Commit

Permalink
Use right notation for default allowlist value. (#442)
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"]`.
  • Loading branch information
rakuco authored Nov 23, 2022
1 parent b574bb9 commit 9f43814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2128,9 +2128,9 @@ An implementation of the {{Sensor}} interface for each [=sensor type=] has one
that control whether or not this implementation can be used in a document.

The [=policy-controlled feature|features=]' [=default allowlist=] is
<code>["self"]</code>.
`'self'`.

Note: The [=default allowlist=] of <code>["self"]</code> allows {{Sensor}} interface
Note: The [=default allowlist=] of `'self'` allows {{Sensor}} interface
implementation usage in same-origin nested frames but prevents third-party content
from [=sensor readings=] access.

Expand Down

0 comments on commit 9f43814

Please sign in to comment.