Skip to content

Sandboxing scripts in shared contexts #339

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

Open
Tracked by #150
makspll opened this issue Mar 2, 2025 · 0 comments
Open
Tracked by #150

Sandboxing scripts in shared contexts #339

makspll opened this issue Mar 2, 2025 · 0 comments

Comments

@makspll
Copy link
Owner

makspll commented Mar 2, 2025

Currently the shared contexts feature has very limited uses, due to the fact scripts don't actually get sandboxed, meaning every single callback will be overwritten the moment another script using it gets loaded.

One way we can do this is by loading each script into a "sub"-context within the context, and then before handling, loading each sub-context into the global namespace

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