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

Chrome / Firefox Extension APIs #71

Closed
Pauan opened this issue Jan 10, 2018 · 4 comments
Closed

Chrome / Firefox Extension APIs #71

Pauan opened this issue Jan 10, 2018 · 4 comments

Comments

@Pauan
Copy link
Contributor

Pauan commented Jan 10, 2018

There are Chrome and Firefox extension APIs which I would like to use.

Should they be added to this repo, or to a separate repo? If it's okay to add them to this repo, then I'll send some pull requests implementing them. I have a lot of experience using those APIs, so I know how to work around some bugs/quirks in them.

However, almost all of the extension APIs are asynchronous, so stdweb will need good Promise support first.

Also, ideally we should be able to write extensions that can work on either Chrome or Firefox. That could be accomplished either with runtime polyfills, or with conditional compilation within Rust.

@koute
Copy link
Owner

koute commented Jan 10, 2018

You want to write browser extensions in Rust? That's... certainly an interesting idea!

I think that would be out of scope of stdweb itself and would be more appropriate to have in a separate crate. I would be of course willing to get stdweb itself up to snuff so that actually having such functionality in a separate crate would be feasible. (As I don't really know browser extension APIs it's hard for me to tell.)

@Pauan
Copy link
Contributor Author

Pauan commented Jan 10, 2018

@koute That's reasonable. For now, the biggest blocker is lack of good Promise support. I filed a new issue #72

@Pauan Pauan closed this as completed Jan 10, 2018
@amaury1093
Copy link

amaury1093 commented Feb 19, 2020

@Pauan Did you ever get started on writing WebExtensions API for stdweb?

Edit: For future people, I found this rustwasm/gloo#21

@Pauan
Copy link
Contributor Author

Pauan commented Feb 19, 2020

@amaurymartiny I've completely moved to wasm-bindgen. I have some WebExtensions APIs created, but they're not published yet.

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

3 participants