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

Sandboxing untrusted code offline is currently impossible #1727

Open
BlobTheKat opened this issue Aug 28, 2024 · 0 comments
Open

Sandboxing untrusted code offline is currently impossible #1727

BlobTheKat opened this issue Aug 28, 2024 · 0 comments

Comments

@BlobTheKat
Copy link

BlobTheKat commented Aug 28, 2024

The normal approach to sandboxing untrusted HTML/JS is to use an iframe with a sandbox attribute.

This is not possible offline as a service worker cannot control a sandboxed iframe

Consider adding an inherit-controller value to the sandbox attribute, allowing the parent's service worker to intercept requests from a sandboxed iframe. This attribute would work recursively, allowing an iframe to delegate the same service worker more levels down, for as long as those iframes are sandboxed

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

No branches or pull requests

1 participant