Skip to content

Mozilla WebExtension-Polyfill support? #267

Open
@der-ofenmeister

Description

@der-ofenmeister

Hi everyone!

Hope y'all are safe and well!

Really really great work with this package, @tshaddix. This package seems to be my lifesaver!

Just wanted to know if there's mozilla's web-extension polyfill support here (or planned). In what fashion are the browser API's used (i.e. is it chrome, or a series of checks which pick up the appropriate namespace/polyfill when required?)

If there's no polyfill support, I'll get hacking and try to come up with something a little general-purpose, or so I hope.

I think it'll be pretty dang useful because :

  1. It structures the callback mess that the folks over at Google seem to like. This might be opinionated, but I think using promises is better in the sense that your code is much cleaner, simpler and readable.

  2. Apple has added support for the webextensions from Safari 14 onwards (you can read more here: apple developer, mozilla dev blogs and wwdc notes).

  3. Long story short, cross-compatibility seems to be less of a hassle now, and there might even be a possibility of Apple adding support for this to iOS as well. That's a nice cherry on top of a very tasty cake.

Also, if someone can fill me in as to what's up in general with this package and the direction it's headed, that'd be a very big help. I just stumbled upon this an hour back when I realised how much of a pain passing messages from background to my redux store in a vanilla react-redux extension is, as my codebase exponentiated (and this seems perfect for my that).

Once again, awesome work peeps! Looking forward to hearing back, and (possibly) contributing to this project!!

Cheers!
Rohan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions