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

feat: better transferring #1

Merged
merged 6 commits into from
Mar 17, 2024
Merged

feat: better transferring #1

merged 6 commits into from
Mar 17, 2024

Conversation

okikio
Copy link
Contributor

@okikio okikio commented Mar 10, 2024

There are a couple problems with the way transferables work. You currently don't check for runtime support, and neither do you check for transferables in complex objects. I'm using @okikio/transferables to cover the transferables usecases. Also, for the isTransferables you're currently using getGlobalVar which is a potential security risk as it calls Function("return ...") if someone passes in custom code, you can potentially have XSS attacks.

src/rpc/rpc.ts Outdated Show resolved Hide resolved
src/rpc/rpc.ts Outdated Show resolved Hide resolved
@mys1024 mys1024 changed the title Fix handling of transferables feat: better transferring Mar 11, 2024
@okikio okikio requested a review from mys1024 March 17, 2024 09:12
@okikio
Copy link
Contributor Author

okikio commented Mar 17, 2024

Sorry, this week was a little busy for me

@mys1024
Copy link
Owner

mys1024 commented Mar 17, 2024

@okikio No need to be sorry, thanks for your contribution! 🎉

Copy link
Owner

@mys1024 mys1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mys1024 mys1024 merged commit 6c02271 into mys1024:main Mar 17, 2024
3 checks passed
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