Can't load manifest due to unexpected properties "background" and "permissions"

I’ve got an issue without loading my add-on temporarily into Firefox, the error I get is:

Reading manifest: Unexpected properties: background, permissions

Am I missing something or aren’t these standard properties included in the manifest.json?

This is a personal project I’m writing as a student, the background script will simply log the URLs of the websites visited by the user.

Here’s my manifest.json for reference (with some edited properties):

{
“manifest_version”: 2,
“name”: “nameofextension”,
“version”: “1.0”,
“description”: “does something”,
“icons”: {
“48”: “icons/icon.png”
},
“homepage_url”: “example.com/url”,
“permissions”: [
“webRequest”, “<all_urls>”
],
“background”: {
“scripts”: [“background.js”]
},
“theme”: {
“colors”: {
“frame”: “#313e61”,
“frame_inactive”: “#774a62”,
“tab_text”: “#81abbc”,
“toolbar”: “#774a62”,
“toolbar_text”: “#fbd2c9
}
}
}

I copied your manifest, but Firefox doesn’t like the quotes.
(the forum replaces regular quotes with opening and closing ones, unless you click the “Preformatted text” icon, 6th from the left)
JSONError: Unexpected token “ in JSON at position 2 while parsing near ‘{“manifest_version”: …’

Can you zip the manifest and upload it?
(the Upload icon is the arrow pointing up, 7th from the left when you reply to this post)

edit:
Firefox also doesn’t like your homepage URL, it needs to be
"https://example.org/url"

You’re only allowed a static theme section without having the extension part (background, permissions). To change the theme from an extension, you need to dynamically set the values using https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/theme

1 Like

Ah I see, thanks for the help!