Skip to content

Add missing features for html.elements.iframe.allow#23487

Merged
caugner merged 10 commits intomdn:mainfrom
queengooborg:html/elements/iframe/allow/additions
Oct 25, 2024
Merged

Add missing features for html.elements.iframe.allow#23487
caugner merged 10 commits intomdn:mainfrom
queengooborg:html/elements/iframe/allow/additions

Conversation

@queengooborg
Copy link
Contributor

@queengooborg queengooborg commented Jun 21, 2024

This PR adds the missing features of the allow member of the iframe HTML element. The data is copied from the Permissions-Policy header and then cleaned up accordingly.

This fixes #15987, fixes #21979, fixes #23949.

This PR adds the missing features of the `allow` member of the `iframe` HTML element. The data is copied from the Permissions-Policy header and then cleaned up accordingly.
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just found three missing tags, and have two other comments, one about wildcards, the other about battery missing in the permission-policy feature.

queengooborg and others added 3 commits October 3, 2024 11:55
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
@caugner
Copy link
Contributor

caugner commented Oct 15, 2024

(@queengooborg Don't forget to re-request a review. 😉 )

@caugner caugner self-requested a review October 15, 2024 13:20
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

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

Added tags look good, but my question about the wildcards value remains.

}
}
},
"battery": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like adding battery is not a good idea after all, because it isn't supported in any browser, so the linter complains:

browsers dating back two or more years ago.
 ✖ html.elements.iframe.allow.battery - Error → feature was never implemented.

},
"identity-credentials-get": {
"__compat": {
"spec_url": "https://fedidcg.github.io/FedCM/#permissions-policy-integration",
Copy link
Contributor

Choose a reason for hiding this comment

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

The linter complains about this spec:

 Spec URLs - 1 problem (1 error, 0 warnings):
 ✖ html.elements.iframe.allow.identity-credentials-get - Error → Invalid specification URL found: https://fedidcg.github.io/FedCM/#permissions-policy-integration. Check if:
         - there is a more current specification URL
         - the specification is listed in https://github.com/w3c/browser-specs
         - the specification has a "good" standing

@caugner caugner merged commit 7851899 into mdn:main Oct 25, 2024
@caugner caugner mentioned this pull request Oct 25, 2024
@queengooborg queengooborg deleted the html/elements/iframe/allow/additions branch October 25, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Projects

None yet

2 participants