Questions tagged [jpm]

jpm was a Firefox Add-on SDK command-line tool that could be used to initialize, run, test, and package add-ons.

From the official website:

The Firefox Add-on SDK command-line tool that you use to initialize, run, test, and package add-ons.

jpm is based on Node.js. You can use jpm for Firefox 38 to 57. The jpm tool was the replacement for cfx. It enables you to test, run, and package add-ons.

jpm is deprecated in Firefox 53 and EOL'd in Firefox, as it was part of the Add-on SDK (which has been replaced by WebExtensions).

79 questions
13
votes
5 answers

How to install my .xpi on firefox android

I work on a firefox addon using JPM. I want to install it on my android phone, i've run "jpm xpi" and copy xpi on my sdcard. When i browse to file://path/to/my/xpi in android firefox nothing happen. Same issue if i upload xpi on my server and browse…
Lezme
  • 266
  • 1
  • 3
  • 12
11
votes
2 answers

How to update lodash to the latest version

I am using npm on the debian Linux flavor to install Jpm. But am getting errors about the versions of lodash installed (as follows) test@localhost:~# npm install jpm --global npm WARN deprecated lodash@2.4.1: lodash@<3.0.0 is no longer maintained.…
OshoParth
  • 1,492
  • 2
  • 20
  • 44
9
votes
1 answer

JPM not working

I've just tried using JPM for the first time, and I can't get anything to work. My index.js file looks like this: const actionButton = require('sdk/ui/button/action'); const TAG = "Addon Scratchpad / Index "; console.log(TAG+'in index.js'); var…
willlma
  • 7,353
  • 2
  • 30
  • 45
6
votes
5 answers

Firefox disable the add on I'm developing

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…
Hank X
  • 1,988
  • 2
  • 14
  • 32
5
votes
1 answer

jpm run does NOT work with Firefox 48, or later

jpm version is 1.1.3 npm version is 2.15.8 Node version is 4.4.7 Firefox version is 48.0 Content of index.js: var self = require("sdk/self"); console.log("************************************"); Output of "jpm run" command JPM [info] Starting…
5
votes
1 answer

Do I have to use `jpm run` every time I change the Firefox add-on I'm developing?

I've gone over the Mozilla Developer Network "Getting Started (jpm)" guide to getting started with Firefox add-on development. This guide suggests that to see the effects of changes that I make to my add-on's code I need to: Close Firefox Rebuild…
urig
  • 16,016
  • 26
  • 115
  • 184
5
votes
2 answers

How do I use `jpm` with webextension in Firefox?

I'm starting a Firefox addon and from what I see: jpm is the tool to manage a Firefox addon ; WebExtensions are a new way to write Firefox extensions compatible with the extension API supported by Google Chrome and Opera ; yet I can't find if jpm…
5
votes
1 answer

How do I convert a package.json to install.rdf for a Firefox add-on?

I've got a working add-on for Firefox, which was built using the cfx tool. The tool is being depracated in favor of jpm from Firefox 38 onwards. I followed the instructions to make the switch, but while running, I get the term undefined often, even…
aalaap
  • 4,145
  • 5
  • 52
  • 59
5
votes
3 answers

No icon for addon created with jpm

I can't seem to get my addon icon to show up when I use jpm. The relevant items in package.json are "icon": "icon.png", "icon64": "icon64.png", and when I unpack the extension, I see them in install.rdf as…
willlma
  • 7,353
  • 2
  • 30
  • 45
3
votes
1 answer

How to add a file other than index.js to a Firefox add-on using jpm

I am building a Firefox add-on and like to include code that is used in the index.js, as well as in the worker script. Instead of copying the function, I would like to add it in a file next to the index.js if possible.
Dandorid
  • 205
  • 2
  • 12
3
votes
1 answer

drawWindow() broken with multiprocess Firefox (e10s)?

The Firefox drawWindow()-Function expects as first parameter a XUL content-window as provided by the low-level api tab utils. However with the introduction of the multiprocess architecture in Firefox (codenamed electrolysis or e10s) directly…
Michael Große
  • 1,818
  • 1
  • 16
  • 20
3
votes
1 answer

Generating signed XPI via jpm failed

There was a problem signing an Add-On via jpm: The command jpm -v sign --api-key 'user:xxxxxxxx:xxx' --api-secret xxxxxxxxxxxxxxxxxxxxxxxxx failed with the error message Error: Received bad response from the server while requesting…
serv-inc
  • 35,772
  • 9
  • 166
  • 188
3
votes
0 answers

When running Firefox from JPM CSS doesn't load

I am testing a Firefox extension using jpm run. I am using Firefox 42.0 on Windows 10. It seems if I test my extension, all pages appear to have SSL certificate issues and the CSS doesn't load for a number of pages. For example, the Firefox homepage…
LondonAppDev
  • 8,501
  • 8
  • 60
  • 87
3
votes
1 answer

Firefox Addon: bootstrap.js mit sdk/page-mod for versions < 38.0

tl;dr: We created a firefox addon using the Addon SDK. Since compiling the addon is one step in a larger build system (we also compile for chrome), our build system packages the xpi manually and does not use jpm. However, we used the contents of a…
3
votes
1 answer

Disabled Firefox Add-on ActionButton not grayed out

When creating a Firefox Add-on ActionButton disabled, e.g., var button = new ActionButton({ id: 'my-link', label: 'My label', icon: { '16': './icon-16.png', '32': './icon-32.png', '64': './icon-64.png' }, onClick: handleClick, …
Nico Schlömer
  • 53,797
  • 27
  • 201
  • 249
1
2 3 4 5 6