Reputation: 2054
I'm developing an Firefox add-on with it's latest jpm SDK.
After I done the major code, I use jpm run command to run the extension.
but the addon is disabled. it says "ADDON NAME could not be verified for use in FIREFOX VERSION and has been disabled."
like in the picture.
anyone know how to turn off this Firefox feature?
Upvotes: 6
Views: 683
Reputation: 31
For Developing Add-Ons for Firefox use the Developer Edition of Firefox.
Firefox 42 and beyond:
The Beta and Release versions of Firefox based on 42 and above (Beta 42 will be released at the same time as Firefox 41) will remove the preference that allows unsigned extensions to be installed, and will disable and/or prevent the installation of unsigned extensions.
The Nightly and Developer Editions of Firefox based on 42 and above will retain the preference to disable signing enforcement, allowing the development and/or use of unsigned add-ons in those versions. Unbranded versions of Firefox based on releases will also be made available for developers, and are expected to be in place for Firefox 42 for release (and potentially beta).
Upvotes: 1
Reputation: 1327
Update: You need to set xpinstall.signatures.required
to false (as mentioned above) in about:config
. However, you CANNOT do this when launching with jpm (as it will not persist). Instead you need to launch your profile via the firefox profile manager, make the change in about:config
, then quit the profile, then launch the profile via jpm (with the -p PROFILE_NAME
flag). This process applies similarly to other (persistent) changes you might want to make, e.g., preferences, bookmarks, etc.
Upvotes: 0
Reputation: 7345
If I run the same command through a script specified in my add-on package.json file, it loads my add-on correctly.
package.json:
{
...
"scripts":{
"firefox": "jpm run"
}
}
In terminal/console: npm run firefox
I have no idea why this works
Upvotes: 0
Reputation: 2205
The permanent fix in jpm to avoid having to go to preferences and disable signatures requirement every time you do "jpm run" is to change the preferences.js in your jpm profile, like this:
"xpinstall.signatures.required" : false
in file
npm\node_modules\jpm\data\preferences.js
See this changelist for an example: https://github.com/mozilla-jetpack/jpm/commit/d7f9b51f73d829e65d900a2cb0eed0cbaa957250
Credits for the original answer here
Upvotes: 5
Reputation: 128856
From a comment left on a GitHub issue with the same problem last week:
Go to about:config and toggle the xpinstall.signatures.required preference.
— Keith94's comment (linked above)
Upvotes: 3