-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
d653fb7
to
d0785a6
Compare
This PR is not at the point where it can be accepted and is currently for reference only.
Add
unload
as a feature controlled byPermissions-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 )