Skip to content

Is firefox-mv2 build supposed to work from a mv3 extension? #517

Answered by louisgv
heartgg asked this question in Q&A
Discussion options

You must be logged in to vote

Can you post the error you're seeing? - the chrome object is actually available in firefox for compatibility, but for some API it's not available and you might need to use something like webextpolyfill: https://github.com/mozilla/webextension-polyfill

I don't really like that package since it throws top-level error at import, making it not suitable to write reusable code for all runtime such as sandbox pages or mainworld

On the other hand - try out the firefox-mv3 target and see if it works ;d...

Also I'm curious - which chrome API is firefox complaining about?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@heartgg
Comment options

@louisgv
Comment options

Answer selected by heartgg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants