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
1
vote
1 answer

Firefox add-on will not display images

I have a blank Firefox Add-On I made using the Getting Started Tutorial. When I run my extension using jpm run I observe the following. If I navigate to any image it appears like this (image is displayed nicely in the centre): However, I have the…
LondonAppDev
  • 8,501
  • 8
  • 60
  • 87
1
vote
1 answer

Firefox Add-On CSS not displaying background-image

I am working on a Firefox Add-On which uses jQuery to insert div tags at specific locations in pages rendered. The div tags are styled using a CSS file which is injected using the following code: var style = Style({ uri: './dist/app.css' }); In…
LondonAppDev
  • 8,501
  • 8
  • 60
  • 87
1
vote
0 answers

Launching command line in a content script file within a firefox Addon SDK extention?

I am using the Addon SDK and jpm. The addon I am trying to make is for a website that gives you a specific shell command to run, but the current functionality of the website just displays the code in a text box and asks you to copy it. I thought it…
1
vote
0 answers

Plugin works in jpm, but not after being built

I have a very simple plugin which injects JavaScript into every webpage the user visits. The plugin works flawlessly whenever I run jpm on it. But the moment I build the plugin and test it in other Firefox browsers, (mine and friends) the plugin…
Jake Cross
  • 523
  • 1
  • 6
  • 14
1
vote
0 answers

How to use websocket in background scripts Firefox-addon

I'm using jpm to develop firefox addon I want to use Websocket in the firefox addon.Not in the content scripts but in the index.js[Background] But it is throwing JPM [error] Message: ReferenceError: WebSocket is not defined Then I tried by…
Madhan
  • 5,750
  • 4
  • 28
  • 61
1
vote
0 answers

Firefox JPM ignores homepage options

I just switched to JPM from CFX and am stuck on this issue. When I execute jpm run -p myDevProfile, it opens Firefox with the profile correctly, and all the bookmarks and addon settings are there. However, in this profile, the homepage is set to…
Sierra C
  • 305
  • 1
  • 11
1
vote
1 answer

How can I resend a post/get data in case of failure?

I tried to use addProgressListener but I don't know how to get post data in onStateChange and send it back. exports.main = function() { var {Cc, Ci, Cu} = require("chrome"); var windows = require("sdk/windows").browserWindows; const…
Tany
  • 393
  • 1
  • 4
  • 16
1
vote
1 answer

Pass element in emit.port for Firefox Extension

I need to pass the element from a function to another function, but only after the web service(AJAX) call is completed. content script(popup.js): function runThis(){ var elem = $(".mainelem"); var objDetails = { element : elem } …
1
vote
1 answer

Execute .jar file with a Mozilla extension

I have looked at the following questions that were answered here: How to open file in Mozilla Add-on SDK using system default application How can I open an external app from Firefox addon? (Eg: default text editor) Perfom a ShellExecute from Firefox…
Wajih
  • 229
  • 1
  • 2
  • 12
1
vote
1 answer

Firefox Add On SDK: How to build a settings page?

I am building a Firefox Add-On based on the new Mozilla jpm Add-On SDK. What ist the best way to build a settings or preferences page? Should it be made within a new panel, or a separate tab? Are there any other possibilities? There are several…
sgotre
  • 405
  • 3
  • 18
1
vote
2 answers

firefox jpm - emit to tab from outside the tab-call

In this documentation there is an example of how to emit data/events to a tab. Here is my edited version: success-window.js // "self" is a global object in content scripts // Listen for a "drawBorder" self.port.on("drawBorder", function(color) { …
Rentrop
  • 20,979
  • 10
  • 72
  • 100
1
vote
2 answers

How to assert in a JPM test

My synthetic test: exports.testAssertObject = function(assert) { console.log(arguments); assert.ok(assert, "Assert object exists"); }; fails in JPM with TypeError: assert.ok is not a function: $jpm --version 0.0.29 $jpm test JPM undefined…
Basilevs
  • 22,440
  • 15
  • 57
  • 102
1
vote
1 answer

Can jpm create a plugin for for Firefox 37.0 or older?

Jpm creates install.rdf with compatible versions range starting with 38. If created addon which works on 38, is forcefully installed on Firefox 37.0 it fails (there are no obvious related errors in the browser console, plugin installation just has…
Basilevs
  • 22,440
  • 15
  • 57
  • 102
0
votes
1 answer

jpm run command has an invalid manifest

I am following this tutorial to create add-ons for firefox. When I run jpm run -b "C:\Program Files\Firefox Developer Edition\firefox.exe", the console gives me the following warnings: 1546371425561 addons.xpi-utils WARN addMetadata:…
Itération 122442
  • 2,644
  • 2
  • 27
  • 73
0
votes
0 answers

~bash: jpm command not found on mac

I already installed npm. My current version of npm is v3.10.8 . Also I have installed firefox developer edition. I have tried many possible ways to install jpm. So here it is what I've done: - npm install jpm --global Also tried using - git clone…
Steve Islary
  • 41
  • 1
  • 9