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

transfer filtering #1121

Open
cometkim opened this issue Dec 21, 2021 · 0 comments
Open

transfer filtering #1121

cometkim opened this issue Dec 21, 2021 · 0 comments

Comments

@cometkim
Copy link
Contributor

cometkim commented Dec 21, 2021

trying sandboxing a webapp using WorkerDOM. Currently, the <script> attached by the worker thread is executed on the host, so I had to add a filter rule to prevent this.

https://github.com/ampproject/worker-dom/blob/da975ce/src/main-thread/commands/child-list.ts#L38

- if (newNode) {
+ if (filter(newNode)) {

But I think this is too close to implementation detail.

Is there a good place to configure when installing WorkerDOM?

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