Proposal: expose more mv3 APIs to mv2 extensions #118
Labels
implemented: safari
Implemented in Safari
inconsistency
Inconsistent behavior across browsers
proposal
Proposal for a change or new feature
spec clarification
Needs clarification when specified
Currently some new mv3 changes like the object notation for
content_security_policy
andbackground.service_worker
are also available in mv2.To ease transition, it would be very helpful if mv3 APIs can be exposed to mv2 extensions as well. There might be specific technical reasons why this hasn't been done before tho, if so, I would love to hear.
Some APIs which would benefit here are the new
scripting
API, likescripting.registerContentScripts
. Also theaction.getUserSettings
of the action API would be very helpful forbrowserAction
to get the pinned state of extensions.Feature detection can then be used to check if it's available. Something like:
This raises the question why for some of these APIs a new manifest version is required in general.
The text was updated successfully, but these errors were encountered: