Skip to content

Commit

Permalink
Spec: fix 'src' permissions policy allowlist. (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
blu25 authored Sep 11, 2024
1 parent 916f93c commit c10d8f6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ spec: permissions-policy; urlPrefix: https://w3c.github.io/webappsec-permissions
text: the special value *; url: the-special-value
text: permissions policy; url: permissions-policy
text: policy directive; url: policy-directive
text: declared origin; url: declared-origin
for: permissions policy
text: declared policy; url: permissions-policy-declared-policy
text: inherited policy; url: permissions-policy-inherited-policy
Expand Down Expand Up @@ -3433,7 +3434,21 @@ algorithms to achieve the outcomes described in the above explanatory content.
and |origin| is [=same origin=] with |document|'s origin, return "Enabled".
</div>

<div algorithm=declared-origin-patch>
Modify the [=declared origin=] algorithm. Add a new step after step 3 that reads:

4. If |node|'s [=Node/node document=]'s [=Document/browsing context=]'s [=browsing context/fenced
frame config instance=] is not null, then return |node|'s [=Node/node document=]'s
[=Document/browsing context=]'s [=browsing context/fenced frame config instance=]'s [=fenced
frame config instance/mapped url=].

Note: This ensures that the `'src'` [=allowlist=] that can be set in the <{fencedframe/allow}>
attribute works when using a [=fenced frame config=] to navigate a <{fencedframe}> (or a urn that
maps to a [=fenced frame config=] to navigate an <{iframe}>).
</div>

<wpt>
/fenced-frame/allow-attribute-src.https.html
/fenced-frame/default-enabled-features-allow-all.https.html
/fenced-frame/default-enabled-features-allow-none.https.html
/fenced-frame/default-enabled-features-allow-self.https.html
Expand Down

0 comments on commit c10d8f6

Please sign in to comment.