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

iFrame support #108

Closed
kenchris opened this issue May 25, 2022 · 6 comments
Closed

iFrame support #108

kenchris opened this issue May 25, 2022 · 6 comments

Comments

@kenchris
Copy link
Contributor

Use-case from @fideltian: The Zoom SDK is commonly used in iframes so we need to investigate if/how we can support the feature in iframes and what it means for privacy

@anssiko

@anssiko
Copy link
Member

anssiko commented May 25, 2022

One possible solution is to use the allow attribute of the iframe element.

This would require 3rd party developers integrating Zoom SDK via an iframe to update their HTML slightly and add the allow attribute to make use of the Compute Pressure API. I believe this is the most architecturally clean way to solve this issue.

<iframe src="https://example.org/app" allow="foobar"></iframe>

If the allow attribute is not defined, all the things would work except the Compute Pressure API would not be enabled.

@fideltian your thoughts?

@kenchris
Copy link
Contributor Author

@anssiko do you know of any spec that does this that I can refer to for spec text?

@kenchris
Copy link
Contributor Author

kenchris commented May 30, 2022

OK I assume this is what I need: https://www.w3.org/TR/screen-wake-lock/#policy-control

Plus this:

If document is not [allowed to use] the [policy-controlled feature] named "screen-wake-lock", return [a promise rejected with] a "[NotAllowedError]" [DOMException].

Would need to make that work with workers as well

@anssiko
Copy link
Member

anssiko commented May 30, 2022

@anssiko do you know of any spec that does this that I can refer to for spec text?

The list of Policy Controlled Features is probably the best resource.

@kenchris
Copy link
Contributor Author

I have run into some challenges while trying to support this.

First of all, the permission policy doesn't support workers yet and it shouldn't be inherited from the creator document of the worker according to discussions: w3c/webappsec-permissions-policy#207

Secondly, we say that top level docs should be focused (focusable area) and workers should have a focused document in their ownet set. This is much harder to spec

@kenchris
Copy link
Contributor Author

Iframes should work now, thought we probably need a policy for the workers but that is not yet supported so filed #110

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

No branches or pull requests

2 participants