Skip to content

Initial design sketch for a web embedding to replace the JS-API - #686

Open
eqrion wants to merge 1 commit into
WebAssembly:mainfrom
eqrion:web
Open

Initial design sketch for a web embedding to replace the JS-API#686
eqrion wants to merge 1 commit into
WebAssembly:mainfrom
eqrion:web

Conversation

@eqrion

@eqrion eqrion commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

I'm presenting on Mozilla's prototype implementation which is based off of this, so I wanted to have it publicly accessible somewhere. It needs a couple more iterations before it's ready for detailed review. High-level feedback is welcome though.

@ValorZard

Copy link
Copy Markdown

I have a few dumb questions

  1. What parts of the Web APIs DON'T fall under WebIDL?
  2. When interacting with javascript types and functions through webidl, are those objects still garbage collected, or does the wasm component take full ownership of them. If I'm writing a rust WASM component for the web, and I get access to a Button, is that button garbage collected? And if so, how? Can I "free" that button in the Rust component and accidentally remove it from the browser somehow?

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