Can an addon be WebExtension type and bootstrapped at the same time?

I have been wondering how the migration to WebExtensions would work out.

Would the current bootstrapped addons have to choose between one or the other?

Keeping backward compatibility means keeping the bootstrapped version.
Should a new listing be created for the same addon as a WebExtension to cater only for later Firefox releases?

Can an addon be such that would load the bootstrapped version for the older addons and WebExtension code for the newer? (a combination of both)

No.

Okay, okay, you deserve a longer answer… :wink:
There’s obviously not going to be a good way for a WebExtension to load bootstrapped code, since that would break the sandbox (which is one of the reasons for having WebExtensions in the first place). We are working on a way to let classic extensions call WebExtension APIs, but it’s probably going to be a post-V1 feature. (Feel free to follow along there, if you want to keep up to day, or even chip in some code!)

Thanks for the question!

Thank you :slight_smile: