Questions tagged [firefox-addon-sdk]

The Add-on SDK is a set of tools and APIs that allow you to create Firefox add-ons using standard web technologies (HTML, CSS, and JavaScript). The SDK includes APIs, a test framework and documentation as well as a command-line tool for creating, running and testing extensions.

The Add-on SDK was an API for creating simple Firefox extensions using standard web technologies (HTML, CSS, and JavaScript). The SDK included APIs, a test framework and documentation as well as a command-line tool for creating, running and testing extensions. Earlier versions of the Add-on SDK were released under the name Jetpack.

The Add-on SDK was deprecated in Firefox 53 and EOL'd in Firefox 57 in favor of WebExtensions. The Add-on SDK is now considered to be a legacy technology, as extensions built with it will not work after Firefox 57.

For general information about Firefox add-ons incl. SDK add-ons, see the tag.


Documentation :

2083 questions
0
votes
0 answers

Adjusting the matching pages for a PageMod through multiple button clicks

I'm actually working on a add-on for Firefox, in my index.js, I have a pageMod pageMod.PageMod({ include: "*.leclercdrive.fr", contentScriptFile: blabla } ); I have also set a Menubutton on the Firefox toolbar: What I need to do is…
0
votes
0 answers

How to hide the title of the sidebar created by ui/sidebar

How do I hide the Titlebar of a sidebar in the Firefox Add-on SDK? I created a simple sidebar using: ui/sidebar, but I want to hide the titlebar. Is there any way to get rid of this? On WebAPI I saw is possible, but in Firefox SDK, I didn't see any…
user5990040
0
votes
1 answer

Firefox SDK JPM error when trying to attach scripts on tab ready event

This started on 02-11-2016 - firefox developer edition (but apparently also the main one) Code: var self = require("sdk/self"); var tabs = require("sdk/tabs"); tabs.on('ready', function(tab){ tab.attach({ contentScriptFile:…
Radu Andrei
  • 1,075
  • 10
  • 19
0
votes
1 answer

Firefox Extension Address Bar Styling

I'm building a Firefox extension and was confused by what I can and cannot do with the WebExtensions API. Basically what I'm trying to do is perform some CSS operation in the address bar of Firefox, for simplicity, say add an underline to the URL…
0
votes
1 answer

Firefox SDK extension - JPM error

Since last night, i'm getting this error out of the blue, when trying to communicate with a content script, after the "ready" event is fired in the tab that loads the page to which the script is being attached to. console.error: JPM [error] …
Radu Andrei
  • 1,075
  • 10
  • 19
0
votes
0 answers

nsICookieManager XPCOM Interface does not work properly

I am developing an add-on for Mozilla. I use this function when I visit a site to list all the cookies contained there. At first, the code was working properly. When I visited a site, I was getting a list with the cookies contained in there, then in…
0
votes
1 answer

Simple storage variables saving after uninstall of add-on

Can we store the simple storage variables after add-on uninstallation also?. I mean if the user undo's the add-on uninstallation, are they available to use. If possible how do that? In my experience, simple storage is wiping after add-on…
0
votes
0 answers

Detect URL changes in Firefox add-on SDK (multiprocess)

I'm developing my first add-on with Add-on SDK, jpm (because I need to support old versions of Firefox) I need to track URL changes in address bar, I found that such thing can be done with using of a nsIWebProgressListener interface. I found this…
Kesantielu Dasefern
  • 266
  • 1
  • 3
  • 12
0
votes
1 answer

Prevent uninstall of Firefox sdk add-on

I am able to know when the user is uninstalling or disabling the add-on by using the following code. exports.onUnload = function (reason) { if(reason==="disable"||reason==="uninstall"){ //stuff here }}; I need to stop…
0
votes
1 answer

Firefox add-on with binary classifier

As an experiment, I want to use mljs/naive-bayes classifier in my Firefox add-on. Before the classifier can be useful, it has to be trained first. In my case, I'll be training it using an array of 20000 entries. The entries come from a text file in…
0
votes
1 answer

Sentry Raven inside Firefox Addon SDK

I am making a Firefox Extension and I want to log the errors/messages/exceptions produced by the extension code using Sentry. I tried the JavsScript Raven client but I guess its not really made to live inside the "Content" context. The error I get…
MarZab
  • 2,543
  • 21
  • 28
0
votes
1 answer

Listen to pin/unpin tab events in Firefox Add-on SDK

I am writing a Firefox Add-on SDK extension. I want to be notified when any tab is pinned or unpinned. Unfortunately, the sdk/tabs module doesn't provide such events. Is there some low-level API which provides events for pinning/unpinning tabs?
qzb
  • 8,163
  • 3
  • 21
  • 27
0
votes
1 answer

How to get the title of all the tabs which is open in multiple window in firefox?

I'm creating a firefox extension using Add-on SDK, which will display all the tab details including memory, title and url. I have tried to get the tab title using require("sdk/tabs"); tab package. Below is the sample code: popup.js
Vipin
  • 847
  • 1
  • 10
  • 21
0
votes
0 answers

Generate and test update.rdf for firefox addon-sdk

How do I generate update.rdf for the Firefox addon-sdk and then test it to ensure everything is working correctly?
0
votes
1 answer

Firefox addon requires chrome

I'm working on creating a Firefox add-on to show SSL certificate information. I only need to read the certificate, I don't want to change it in any way. I'm trying to use this example to get the code, but the javascript stops running at const {Cc,…
1 2 3
99
100