DEV Community

Cover image for Three hours, one small extension, and Firefox Add-ons
Antonio for Necoz

Posted on Edited on

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 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": "your-extension@yourdomain.com",
    "strict_min_version": "142.0",
    "data_collection_permissions": { "required": ["none"] }
  }
}
Enter fullscreen mode Exit fullscreen mode

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}`);
Enter fullscreen mode Exit fullscreen mode

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! 🐝

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The manifest ID detail is the one that would have cost me the most time — I would have assumed the error was in the zip, not in a draft I had deleted. And going from 9 warnings to 0 by building the DOM instead of injecting HTML is a good reminder that the review feedback is often pointing at real fragility, not just policy. Did the reviewer flag anything else you had to rework, or was the innerHTML change the whole fix?