I'm developing an Firefox add-on with it's latest jpm SDK.
After I done the major code, I use jpm run mand 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?
I'm developing an Firefox add-on with it's latest jpm SDK.
After I done the major code, I use jpm run mand 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?
Share Improve this question asked Aug 17, 2015 at 15:20 Hank XHank X 2,0542 gold badges15 silver badges33 bronze badges 3- I don't use Firefox, but a quick search dug this up: github./ancestorak/brief/issues/152 Not sure if that'll solve your problem. – James Donnelly Commented Aug 17, 2015 at 15:24
- thanks, it works. @JamesDonnelly – Hank X Commented Aug 17, 2015 at 15:29
- Awesome, I've posted it as an answer. – James Donnelly Commented Aug 17, 2015 at 15:30
5 Answers
Reset to default 5The 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./mozilla-jetpack/jpm/mit/d7f9b51f73d829e65d900a2cb0eed0cbaa957250
Credits for the original answer here
From a ment left on a GitHub issue with the same problem last week:
Go to about:config and toggle the xpinstall.signatures.required preference.
— Keith94's ment (linked above)
For Developing Add-Ons for Firefox use the Developer Edition of Firefox.
More about it:
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).
If I run the same mand 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
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.