Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spec: fix 'src' permissions policy allowlist. #172

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,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 @@ -3409,7 +3410,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
Loading