Skip to content

Add Permissions-Policy#18250

Merged
queengooborg merged 3 commits intomdn:mainfrom
chrisdavidmills:add-Permissions-Policy
Nov 21, 2022
Merged

Add Permissions-Policy#18250
queengooborg merged 3 commits intomdn:mainfrom
chrisdavidmills:add-Permissions-Policy

Conversation

@chrisdavidmills
Copy link
Copy Markdown
Contributor

@chrisdavidmills chrisdavidmills commented Nov 20, 2022

Summary

The Feature-Policy header changed to Permissions-Policy some time ago. This PR adds Permission-Policy BCD, keeping the existing Feature-Policy data but classifying it as support under an alternative name.

This is part of the work described at mdn/content#22347

See my research document at https://docs.google.com/document/d/14xHANU3n43PfJR_dCpEwVCiVYv12BAfGqOICNvd79R4/edit#heading=h.mahbkxhoku5t for a list of the Permissions-Policy directives I am intending to implement on MDN as part of this work. This gives us parity with what was previously documented under Feature-Policy, but it adds a few more that are known to be supported, and it removes mention of some that were obviously being worked on at some point, but never seem to have gotten any traction.

Note — I have not yet deleted the Feature-Policy.json file, so that the existing docs don't break if the new BCD is merged and imported sooner than the MDN content is updated. We can always delete that later on.

Test results and supporting details

New information was largely gotten from https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md.

Related issues

@github-actions github-actions Bot added the data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP label Nov 20, 2022
@chrisdavidmills chrisdavidmills changed the title Add permissions policy Add Permissions-Policy Nov 20, 2022
Copy link
Copy Markdown
Contributor

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:http Compat data for HTTP features. https://developer.mozilla.org/docs/Web/HTTP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants