How to make an extension for Firefox Quantum compatible?

Hi.

We are looking for help, because we can’t make our extensions compatible with Firefox Quantum, actually we don’t know where to start and how to do it.

So someone could shed some light on this ?

PS: We are French, please apologize if there is any error in pronunciation.

You’ll find some documentation is translated to french, not sure how up to date the french versions are, however. Excuse me for linking the English versions and please feel free to sue the language switcher in the bottom left to get the french version.

The official resource to introduce WebExtensions for legacy extension developers is https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Comparison_with_XUL_XPCOM_extensions. I’m not sure how up to date it is in therms of listing WebExtension alternatives to things, a lot of APIs have been added since the article was initially written.

My suggestion for finding documentation is to use https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions for navigation and not the sidebar, since the sidebar is lacking some pages.

I hope that provides a good entry point!

So if I understand correctly, it would come from my file manifest.json !?

{

“manifest_version”: 2,
“name”: “Name Extension”,
“description”: “…”,
“author”: “Dev Extension”,

“browser_specific_settings”: {
“firefox”: {
“min”: “66.0”
}
},

“version”: “0.0.0.0”,
“icons”: { “128”: “img/imgselect.png” },

“permissions”: [“activeTab”],

“browser_action”: {
“default_icon”: “img/imgselect.png”,
“default_popup”: “index.html”
},

“content_scripts”: [
{
“matches”: ["://.mozilla.org/*"],
“js”: [“borderify.js”]
}
]

}

Here is the content currently in use, what should I add for it to be compatible with Firefox Quantum ?

You shouldn’t have to add anything to your manifest.json for the manifest file to be compatible with it.

Note that min isn’t the proper way to require a minimum version of Firefox, nor is firefox the right key for that. See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings

P.S.: to insert code blocks, you can use three back ticks (```) like on github (so normal markdown; including the syntax highlighting annotation).

I’m not sure I understand the “currently in use” part of your question. Do you currently have an extension that runs in Google Chrome?