这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@blu25
Copy link
Collaborator

@blu25 blu25 commented Sep 28, 2023

The current permisisons policy spec patches correctly have the load blocking algorithm where we won’t load a fenced frame if any of the effective enabled permissions are not set. The patches do not, however, handle setting the permissions policies correctly. The spec allows the create a permissions policy algorithm to simply inherit from its embedder, which allows for information to leak across a fenced boundary.

This PR patches that so that the permissions that are set when a fenced frame loads are only the permissions in the "effective enabled permissions". This will ensure that all the permissions required to load are set (since that is checked at navigation time), but will not allow extra permissions to be enabled (including permissions set in the allow attribute of the fenced frame).

See document for more information.


Preview | Diff

Copy link
Collaborator

@domfarolino domfarolino left a comment

Choose a reason for hiding this comment

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

Beautiful!

@domfarolino domfarolino merged commit f806eda into master Nov 7, 2023
@domfarolino domfarolino deleted the liam-permissions-changes branch November 7, 2023 00:38
github-actions bot added a commit that referenced this pull request Nov 7, 2023
SHA: f806eda
Reason: push, by domfarolino

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants