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

add unload permissions-policy feature #7915

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fergald
Copy link

@fergald fergald commented May 11, 2022

This PR is not at the point where it can be accepted and is currently for reference only.

Add unload as a feature controlled by Permissions-Policy. Unload events are not fired for documents where this feature is enabled.

Explainer: https://github.com/fergald/docs/blob/master/explainers/permissions-policy-unload.md

(See WHATWG Working Mode: Changes for more details.)


/browsing-the-web.html ( diff )
/infrastructure.html ( diff )

@fergald fergald marked this pull request as draft May 11, 2022 09:56
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Not sure if you were looking for review yet, but since it's so small I thought I'd give one anyway :)

source Outdated
false, then <span data-x="concept-event-fire">fire an event</span> named
<code data-x="event-unload">unload</code> at <var>document</var>'s
<span>relevant global object</span>, with <var>legacy target override flag</var> set.</p></li>
false and the "<code data-x="unload-feature">unload</code>" feature has not been disabled, then
Copy link
Member

Choose a reason for hiding this comment

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

"has not been disabled" is not precise spec language; you need to use the "allowed to use" algorithm on the appropriate document. Check the call sites of https://html.spec.whatwg.org/#allowed-to-use

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. I've updated this. Not sure if it's good enough yet.

@fergald fergald changed the title [draft] add unload permissions-policy feature add unload permissions-policy feature Jun 30, 2023
@fergald fergald marked this pull request as ready for review June 30, 2023 07:39
koagonzalo11

This comment was marked as spam.

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

Successfully merging this pull request may close these issues.

3 participants