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

How to message child process in Firefox add-on like Chrome native messaging

I am trying to emulate Chrome's native messaging feature using Firefox's add-on SDK. Specifically, I'm using the child_process module along with the emit method to communicate with a python child process. I am able to successfully send messages to…
7
votes
2 answers

Firefox Addon Development - Usage of low-level or non-SDK interface

I am working on Firefox Addon development, I have successfully built the addon, but it is giving me validation error on submission as "Warning: Your add-on uses an interface which bypasses the high-level protections of the add-on SDK. This interface…
user4596341
7
votes
0 answers

Programmatically update firefox profiles

Windows 7 / Firefox Latest versions / Preferrably 64bit beta versions Whenever a Firefox Profile is updated, the user is presented with a dialog to check for updates to the addons. I would like to interact with tha dialog programmatically so that it…
7
votes
1 answer

firefox extension works through sdk but not when installed in browser - compatibility issue?

---Update---- After experimenting more with this, I've determined that the contentScript I have written is not the problem here. For example, if I reduce the extension to merely: var buttons = require('sdk/ui/button/action'); var data =…
7
votes
2 answers

Firefox Addon API for Taking Screenshot

I am looking for firefox addon api to take screenshot of visible area of document. Chrome and Safari have api's to achieve this. And they are pretty fast. I could not find anything specific for firefox. I found a workaround at How do I use the…
Teoman shipahi
  • 47,454
  • 15
  • 134
  • 158
7
votes
5 answers

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. with FF version 26.0 and selenium standalone jar 2.39

I am trying to connect to selenium 2.30 with FF version 26.0 installed in my AWS unix machine but I am getting below error when I start both my client which access selenium. Also, when I try the same with selenium standalone jar 2.38.0, it works…
7
votes
1 answer

Firefox SDK access preferences from content script

About I'm working on a Firefox Add-on using the Firefox Add-on SDK. The add-on will be site specific and it will hide certain elements based on user preferences. I already made this add-on a few years back, but with the new SDK things work a bit…
Bob van Ham
  • 125
  • 5
7
votes
3 answers

Why doesn't ContentScriptFile work in PageMod?

I try to inject content script on page and use console.log("starting addon"); pageMod.PageMod({ include: "*",//tempopary contentScriptFile: self.data.url("testPreload.js"), contentScriptWhen:…
Suhan
  • 1,434
  • 2
  • 13
  • 28
7
votes
2 answers

Modifying the timeout of notifications in a firefox extension

I am using the notification function of the firefox SDK to create a firefox extensions. the problem is that after showing the notification it fades away too quickly , is there a way to modify the timeout of the notification ? this is the code i'm…
zaraki
  • 73
  • 1
  • 5
7
votes
2 answers

How to localize Firefox SDK Add-on name and description?

I'm developing an add-on for Firefox and I now wish to localize the name and description of the add-on itself, as visible to the user in the Add-ons Manager menu. However, the guides I've seen online only seem to mention preferences in package.json…
BeneGal
  • 180
  • 1
  • 11
7
votes
3 answers

Relative image url in content script in Firefox Add-On SDK

I'm currently developing a Firefox extension using Add-On SDK and bumped into a real problem. Basically my extension just injects a content script into a webpage like this: main.js var pageMod = require("page-mod"); var self =…
Kirill Ivlev
  • 12,310
  • 5
  • 27
  • 31
7
votes
1 answer

Options page for Firefox addon using the Add-on Builder (JetPack)

I am developing a Firefox extension and want to open a custom html page where the user can adjust the settings. I am able to do it in different ways, but would like to use the standard Options button that is shown in the add-on manager of Firefox. I…
cprcrack
  • 17,118
  • 7
  • 88
  • 91
7
votes
2 answers

How to reference a file in the data directory of a Firefox extension?

I'm working on a Firefox extension and I need to inject a JavaScript into a page from a content script. In my Chrome extension I have done the following: this.initializeJplayerSupport = function() { var script = document.createElement('script'); …
PeeHaa
  • 71,436
  • 58
  • 190
  • 262
6
votes
2 answers

An alternative to XMLHttpRequest?

I am writing a Firefox extension. I am using a content script that matches a specific domain. I want to get data from a PHP page. Eventually adding a CSS file to the page to change the styling. The content of the PHP page will be the name of the CSS…
Jacques Blom
  • 1,794
  • 5
  • 24
  • 42
6
votes
1 answer

how to use post in "Request" function at firefox-addon-sdk

I read about function 'Request' as this link: https://addons.mozilla.org/en-US/developers/docs/sdk/1.1/packages/addon-kit/docs/request.html And I would like to use the "post" method. There is no explaination or example on how to send a variable…
Roy
  • 251
  • 3
  • 10