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

Firefox SDK PageMod ContentScript: window.location.replace does not redirect to a local URL

I am testing window.location.replace to redirect the current URL to a new one. It works fine when the URL in the window.location.replace is for another internet website (e.g. google.com). But, it does not work when the URL points to a local html…
user6875880
  • 651
  • 1
  • 7
  • 17
0
votes
1 answer

What is the best way to run background script in firefox Addon script?

I have to make a small modification on a legacy addon built in Addon SDK that's why I am not using webextension. I am trying to make a background script that should be running in the background as long as the addon is installed. I have an HTML panel…
user7945230
  • 1,075
  • 2
  • 13
  • 20
0
votes
1 answer

How to intercept URL request in firefox Addon SDK

I need to intercept the URL request before it is sent. e.g. to check the requested URL is not blacklisted. I found several Addon examples that do this like https://addons.mozilla.org/en-us/firefox/addon/blocksite/?src=search. But they are bsed on…
user7945230
  • 1,075
  • 2
  • 13
  • 20
0
votes
2 answers

How to listen to press submit button in HTML page

This script emits the text-entered after the user press the enter key. What I need is to listen to click on the submit button in my HTML page. This is the script: // When the user hits return, send the "text-entered" // message to main.js. // The…
user7945230
  • 1,075
  • 2
  • 13
  • 20
0
votes
1 answer

How to pass user input from HTML panel to Addon script in firefox Addon SDK

I am using Addon SDK. I am confused on how to pass user input to my addon index.js. I looked at Content Script but it is not exactly what I look for. I have an HTML page that pops up when the user clicks on the Addon button. Here is the HTML…
user7945230
  • 1,075
  • 2
  • 13
  • 20
0
votes
1 answer

Can I change the configurations in FireFox webextension

I want to build a Firefox extension that will need to change the configurations (about:config). It is not obvious whether I can change the configurations (about:config) in webextension? If not, is there any way to do this in the old development…
0
votes
1 answer

How to use jetpack.storage.setting in Jetpack SDK 0.9

When we use Jetpack 0.6, we could manifest something like this, var manifest = { settings: [ { name: "foo", type: "group", label: "Twitter Account", settings: [ { name: "twitterId", type: "text", label:…
banyan
  • 3,837
  • 2
  • 31
  • 25
0
votes
0 answers

How attach contentScript to frame?

I use this code to attach my script into the tab. tabs.activeTab.attach({ contentScript: "alert('test');" }); }) It works fine, but i want to attach my code into the IFRAME. How can I do it?
inter
  • 37
  • 1
  • 1
  • 4
0
votes
1 answer

Save and restore webextensions options page

I am new to programming and i am building a simple add-on for firefox but i am using web extensions, my options page has a few check box's I need to save the values of these checkbox's and then restore them, Sample code is appreciated. function…
0
votes
0 answers

Change Firefox Add-on SDK sidebar to a tab or window

I need help with Firefox plugin sidebar: sdk/ui/sidebar var sidebars = require("sdk/ui/sidebar"), ... var orderSidebar = sidebars.Sidebar({ id: "order-sidebar", title: "clix Sidebar", url: self.data.url("html/order-sidebar.html"), …
0
votes
1 answer

How to use `nsIParserUtils.parseFragment()` for Firefox addon

Our Firefox addon issues queries to Google at the backend (main.js), then extracts some content through xpath. For this purpose, we use innerHTML to create a document instance for xpath parsing. But when we submit this addon to Mozilla, we got…
Joy
  • 9,430
  • 11
  • 44
  • 95
0
votes
1 answer

How to low-level debug a COM DLL (Firefox plugin) method via C++ code without debug info?

Given the following: the 32-bit DLL code file of some old Firefox plugin (i.e. a DLL containing among other a Typelib, XSD and XSL entries), without source code or debug info, originally coded in C++ and compiled with Visual Studio, the name and…
0
votes
0 answers

Hiding SDK add-ons

How to make an SDK add-on hidden in Mozilla Firefox. I mean, there are add-ons which are installed in Firefox browser but not visible in about:addons. When I am using AddonManager service and printing all installed add-ons, there is a list of…
0
votes
1 answer

Add-on not compatible with Firefox upon .xpi install attempt

I'm trying to publish my first Firefox extension and having trouble installing it. I sign the package with jpm xpi. However, when I try to install the .xpi file, I get the error: [extension name] could not be installed because it is not compatible…
George
  • 3
  • 2
0
votes
0 answers

Access Firefox' LocalStorage from extension

I build a Firefox Extension with an options page using this documentation Implement a settings page On this settings page, the user has the possibility to enter Username and Password which then are stored in localStorage. function saveOptions()…