Three hours, one small extension, and Firefox Add-ons
After Chrome Web Store (approved in about 5 hours) and Edge Add-ons (in review), I thought Firefox would be the easy one. Same extension, same Manifest V3, same zip. 😅 It took me three hours. Not because the code was br
After Chrome Web Store (approved in about 5 hours) and Edge Add-ons (in review), I thought Firefox would be the easy one. Same extension, same Manifest V3, same zip. 😅
It took me three hours. Not because the code was broken, but because Firefox Add-ons asks for a few extra things I didn't know about. Here is what I learned, so you don't have to learn it at 11 PM after a day at the factory.
1. Firefox wants an ID in the manifest
Chrome doesn't care, Firefox does:
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "142.0",
"data_collection_permissions": { "required": ["none"] }
}
}
data_collection_permissions is now required for new extensions, and it needs Firefox 142 or newer, otherwise the validator warns you about Firefox for Android.
2. Don't delete a draft add-on
I deleted my first submission to start fresh. Big mistake: the ID and the URL slug stay reserved forever. I had to pick a new ID and a new slug. The name can stay the same, only the link changes.
3. The manifest must be at the root of the zip
If you zip the folder instead of its contents, validation fails. Open the zip: manifest.json must be the first thing you see.
4. The innerHTML warnings
The validator gave me 9 warnings: "Unsafe assignment to innerHTML". Not errors, but I wanted a clean result. So I replaced them with DOM methods:
// Before
panel.innerHTML = `<b>FPS</b> ${fps}`;
// After
const label = document.createElement("b");
label.textContent = "FPS";
panel.replaceChildren(label, ` ${fps}`);
Same HUD, same look, and the result: 0 errors, 0 warnings. ✅
The result
BeeLadybug is now waiting for review on Firefox too. Three stores, one small vanilla JS extension, and a lot of patience.
If you're publishing your first Firefox extension, I hope this saves you a few hours. And if you have a Firefox story, tell me in the comments! 🐝
- 💻 Source Code: GitHub Repository
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.