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
0
votes
0 answers

JPM: How to personalize a toggle button tooltip label

I have a toggle button in my addon. I want to personalize the CSS inside tooltip label who appear when you hover the button. Below example with Firebug icon tooltip label This is my toggle button var button = ToggleButton({ id: "S1", label:…
P. Frank
  • 5,691
  • 6
  • 22
  • 50
0
votes
0 answers

Can't execute the addon on Firefox v.48.0.2

I am developing an extension using Mozilla Firefox add-on SDK I am facing issue while executing the add on using jpm run command. It opens the browser window, but it's not showing the context menu or any part of the add-on, and shows the message…
Ashish Patel
  • 921
  • 1
  • 10
  • 26
0
votes
1 answer

FF Addon (JPM) Pass message from Panel's script to main index script

I am developing a FireFox extension using JPM Addon. I am loading a panel from the main index.js file like so... var panel = require('sdk/panel'); var panel = panel.Panel({ contentURL: url('pages/popup.html'), onHide: doHide }); //and in…
Shahid Thaika
  • 2,133
  • 5
  • 23
  • 59
0
votes
0 answers

jpm run shows demo ActionButton, but jpm xpi does not

Broken MDN demo I copied the very first demo, added my own custom icons, nothing else. Tested this using jpm run, works fine, buttons appear in the navigation bar, can be customized and move around, clicking button opens the tab to mozilla.org as…
user2895783
0
votes
0 answers

Require JPM not define all JS

I am currently developing a firefox extension with jpm.when I make an jpm init I have a js file index.js. In this file I can include different sdk with require for example var system = require("sdk/system"); The problem is that if I have another js…
simon
  • 1,180
  • 3
  • 12
  • 33
0
votes
1 answer

can't match a page with firefox jpm sdk page-mod inlclude

i'm writing a firefox addon, from my original greasemonkey userscript, which replaces eztv site's links with ajax ones, so when you click on show's watched/unwatched links it sends an ajax request to eztv and removes the row on success. Everthing is…
Gamesh
  • 175
  • 1
  • 10
0
votes
0 answers

Why firefox addon has no valid entry point?

I make Firefox addon using JPM, and when try to run it in dev mode: jpm run -b $(which firefox) have a message: JPM [info] Starting jpm run on bgworker JPM [error] Error: The addon has no valid entry point. Either create an entry point at…
0
votes
1 answer

Object.defineProperty() works during testing (jpm run), but doesn't do anything when using the actual xpi

Well, here I am back again with another problem concerning parts of my addon. I'm using an observer to modify values called through javascript. var observerService =…
Sintho
  • 41
  • 6
0
votes
1 answer

Firefox Addon-SDK jpm menuitem module: image not showing on Tools menubar

Possibly related to, but distinct from: firefox addon icon not showing and firefox extension not showing icons. Whereas those questions revolved around the API-user's need to use self.data.url( './icon-16.png' ) and put images in './data/' directory…
user2895783
0
votes
1 answer

Addon attaches script just fine with jpm run, but not with the actual xpi

I'm still fairly new to the addon-sdk and have run into a for me unexplainable problem. So far, I've been using jpm run to test everything - and it all works great. Now, I'm getting close to be finished with what I want to accomplish, so I wanted to…
Sintho
  • 41
  • 6
0
votes
1 answer

Got issue from running "jpm sign" command

I have tried to use "jpm sign" command to signing the Firefox extension. But I got an issue regard to version number does not match install.rdf file. JPM [info] Signing XPI: JPM [error] Server response: Version does not match install.rdf. ( status:…
sam
  • 481
  • 2
  • 8
  • 21
0
votes
1 answer

interpret jpm "useless expression"

So I have a little problem here. I tried to run "jpm test" for a add-on I tried to develop. But every time I try to run it, it just displays console.log: bf4c_autoloader: [JavaScript Warning: "TypeError: useless expression" {file:…
Feirell
  • 719
  • 9
  • 26
0
votes
2 answers

Load multiple JS files in Firefox Extension

I am creating an extension for Firefox using JPM. In the package.json file, we have this line for the entry point... "main": "index.js" How do I change it, or what else can I do, to include more JS files in my extension? I am basically porting a…
Shahid Thaika
  • 2,133
  • 5
  • 23
  • 59
0
votes
1 answer

Using ECMAScript 6 with Firefox add-ons SDK without nightly builds

I'm developing a Firefox add-on with which I want to use ECMAScript 6 features, but that's only available in the nightly builds. The nightly builds are sadly super slow and development suffers because of that. Is there any way to use ECMAScript 6…
damd
  • 6,116
  • 7
  • 48
  • 77
0
votes
1 answer

{jpm} How to replace any page to own?

How can I replace any page e.g http://google.com/ to my page (I don't want to redirect) including ? I tried this: // Import the page-mod API var pageMod = require("sdk/page-mod"); // Create a page-mod // It will run a script whenever a ".io"…
Szymon Marczak
  • 1,055
  • 1
  • 16
  • 31