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

"noautohide: true" does not work on jpm Firefox add-on SDK

How to void panel to auto-hide in Firefox Add-on SDK extension (i.e. using jpm for development)? I am actually trying to develop a Firefox extension using the high level APIs, and specifically trying to avoid a panel to auto-hide when you pick a…
1
vote
1 answer

Firefox Add-on does not install when running jpm with --profile argument set

For add-ons that use local storage a profile must be maintained between tests. In order to do this the "--profile" argument is specified. I found the above information in this tutorial on MDN My problem is that when I have a profile specified I get…
Seph Reed
  • 8,797
  • 11
  • 60
  • 125
1
vote
1 answer

JPM cannot find Firefox binaries when it is under p: partition

First time I have installed jpm. I created my first extension according tutorial and it is not possible to finish it so when I run command: jpm run it prints error. I have more installations of Firefox installed and profiles are not in standard…
John Boe
  • 3,501
  • 10
  • 37
  • 71
1
vote
0 answers

Make Firefox Addon tab feels like chrome://newtab

I'm working on some chrome/firefox extension and what I want to accomplish is as similar UX as possible between these two. I've already understood that while in chrome you can (through manifest.json) register to override chrome://newtab, in firefox…
NemanjaSRB
  • 398
  • 1
  • 16
1
vote
1 answer

Default Firefox path for jpm doesn't work

I am running Ubuntu 16.04 with Firefox 46.0. While trying to run 'jpm run' on a new add-on (crawler) created with 'jpm init', I receive the following output: JPM [info] Starting jpm run on Crawler JPM [info] Creating a new profile JPM [error] No…
Akhilesh Singh
  • 1,724
  • 2
  • 19
  • 35
1
vote
0 answers

Os.File.setPermission is not recognized as a function

I have this (partial) main JS code: Cu.import("resource://gre/modules/osfile.jsm"); [...] // if it is a Win environment put the attrib file to hidden OS.File.setPermission( OS.Path.join(OS.Constants.Path.homeDir, 'my_file.txt'), …
Bento
  • 223
  • 1
  • 12
1
vote
2 answers

Autorun firefox extension jpm

I need help with JPM. I am trying to develop a firefox extension with JPM. I would like my extension automatically launches when opening firefox, but I can't add an event on the onLoad I know that with the overlay I can do something like…
simon
  • 1,180
  • 3
  • 12
  • 33
1
vote
1 answer

How the tabs.open() function work with separate content script file?

I am creating Firefox addons that works like search in chrome. How can i use browser.tabs.create() function with 'url' option? I have read this article. But In here, there is no documentation of How to use this tab creation with variable…
1
vote
1 answer

Firefox Add-On signing error

I made an simple Add-On, and now I want to sign it, so it could work outside developer mode. I read documentation on mozilla website, but when I try running jpm sign command, with my API key and secret, I get this error: JPM [info] Created XPI for…
kecman
  • 813
  • 3
  • 14
  • 34
1
vote
1 answer

Exponential increase in xpi file size in Firefox addon development for each build

I am learning to develop addon for Firefox. What i observed is for each jpm sign the size of validated .xpi increases two fold from the previous .xpi file size even though the addon file change is very minimal. Following illustrates the…
bprasanna
  • 2,423
  • 3
  • 27
  • 39
1
vote
0 answers

Javascript Firefox Addon new Textwindow in the corner

I want Javascript to generate a new "area" on the top right corner. In this "area" I want to have some text and maybe a few url's. What I got so far: var x = document.createElement("TEXTAREA"); var t = document.createTextNode("Sample…
berthold5
  • 11
  • 2
1
vote
2 answers

"jmp run" opens firefox but does not opens any url

I want to create a Firefox addon. Based on this page URL I want to filter a URL.The problem is when I use jpm run command which opens a new instance of Firefox, the instance does not opens any URL at all. I even used an empty index.js file and the…
nAviD
  • 2,784
  • 1
  • 33
  • 54
1
vote
1 answer

How to detach the DOM event from a web page?

I have created an addon which shoots a new tab on firefox load and a message is displayed on the DOM of the new tab. But everytime i click on the new tab button it shows the message. I want to hamper the event after the first new tab .. i mean the…
Aksh1693
  • 59
  • 7
1
vote
1 answer

firefox android addon incompatible when submit to AMO

I recently develop an addon for Android Firefox, I only used the compatible modules according to Module_Compatibility, I package my addon using jpm-mobile. When I submit it to AMO, it just said Some platforms are not available for this type of…
Jiacai Liu
  • 2,623
  • 2
  • 22
  • 42
1
vote
1 answer

command 'jpm run' is not working

I have installed jpm in my system. Now I changed the things I wanted to in index.js. Next I used command 'jpm run'. Some error is coming on like this: JPM [info] Starting jpm run on erp Creating XPI JPM [info] XPI created at…
Rajat Raj
  • 11
  • 1