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

WebIDL impl: remove unsafe JSObject when returning a ReadableStream #30891

Open
gterzian opened this issue Dec 19, 2023 · 3 comments
Open

WebIDL impl: remove unsafe JSObject when returning a ReadableStream #30891

gterzian opened this issue Dec 19, 2023 · 3 comments
Labels
A-content/script Related to the script thread C-assigned There is someone working on resolving the issue I-safety Some piece of code violates memory safety guarantees. L-javascript Javascript is required

Comments

@gterzian
Copy link
Member

Part of #30862

Same as #30889

Depends on #29881

All the below should return a concrete, and safe, ReadableStream object.

fn Stream(&self, _cx: JSContext) -> NonNull<JSObject> {

fn GetBody(&self, _cx: SafeJSContext) -> Option<NonNull<JSObject>> {

fn GetBody(&self, _cx: SafeJSContext) -> Option<NonNull<JSObject>> {

@gterzian gterzian added I-safety Some piece of code violates memory safety guarantees. A-content/script Related to the script thread L-javascript Javascript is required labels Dec 19, 2023
@SummerGram
Copy link

@servo-highfive assign me

@servo-highfive servo-highfive added the C-assigned There is someone working on resolving the issue label Feb 16, 2024
@servo-highfive
Copy link

Hey @SummerGram! Thanks for your interest in working on this issue. It's now assigned to you!

@gterzian
Copy link
Member Author

gterzian commented Feb 16, 2024

@SummerGram Thank you for your interest! This one is complicated and there is already a WIP at #29881

I can help you find one that would match your current skillset better. I've messaged you in the relevant topic on zullip...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-content/script Related to the script thread C-assigned There is someone working on resolving the issue I-safety Some piece of code violates memory safety guarantees. L-javascript Javascript is required
Projects
None yet
Development

No branches or pull requests

3 participants