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

Restrict subPanel.url's origin to the extension's bundles files #2898

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

NiklasGollenstede
Copy link
Contributor

It somehow feels like a bad idea to allow other extensions to (directly) show just any remote content in the subPanel.

This restricts the .url to sources in the registering extensions origin, and allows relative URLs to be interpreted in that namespace.

I am not sure how you do error reporting here. A bit more type checking and the registration or other RPC calls failing with a reported error on invalid types, would probably be a good idea in general.

Hope you don't mind the trim on the first line too much.

@piroor piroor merged commit c7c2f0c into piroor:trunk Jun 1, 2021
@piroor
Copy link
Owner

piroor commented Jun 1, 2021

Thanks a lot!

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.

2 participants