Skip to content

Commit 9f43814

Browse files
author
Raphael Kubo da Costa
authored
Use right notation for default allowlist value. (w3c#442)
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"]`.
1 parent b574bb9 commit 9f43814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,9 +2128,9 @@ An implementation of the {{Sensor}} interface for each [=sensor type=] has one
21282128
that control whether or not this implementation can be used in a document.
21292129

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

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

0 commit comments

Comments
 (0)