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

Get device storage path on android (Firefox Add-on)

I would like to get path smthing like: storage/emulated/0 using Firefox Add-On SDK under Android OS. Analog in android sdk is getExternalStorageDirectory(). Is it possible?
Anton Kasabutski
  • 355
  • 5
  • 16
0
votes
1 answer

communicate from addon main.js to page-worker

I'm new to the community and to developing addons. I'm trying to fetch some data from 1 page-worker and sending it to the main addon then include some more data to it and then send it to some other page-worker. I'm able to do the first part i.e…
0
votes
1 answer

Firefox addon sdk browser console convinience issue

I need to debug sdk extension, but browser console is very unconvinient because it is in separate window. So I found some solution to place output in webconsole, but it is little unpleasant. const { getTabContentWindow, getActiveTab } =…
user3003873
  • 543
  • 1
  • 4
  • 21
0
votes
0 answers

Firefox Add-on SDK conflict with YouTube iFrame Player API

I'm working on a firefox addon using the Add-on SDK, in that addon i have content scripts communicating with the main addon script using the port.on() and port.emit() as described here in the Add-on SDK documentation. My addon also makes use of the…
0
votes
0 answers

Are these features possible to develop with a firefox extention?

I want to create a Firefox extension. I would ask for the feasibility of my idea. I have a PHP page show a list of emails with open on browser link next to it, when I click that button, the following will happen: Create new browser profile on the…
0
votes
1 answer

is it possible to open multi profiles on the same window?

i know that i can open multiple profiles (different proxies), every profile in a firefox window, with many extentions or with commande "-P {PROFILENAME} -no-remote". i would ask if it's possible to open multiple profiles in same window, every…
0
votes
1 answer

FF Addon (JPM) Pass message from Panel's script to main index script

I am developing a FireFox extension using JPM Addon. I am loading a panel from the main index.js file like so... var panel = require('sdk/panel'); var panel = panel.Panel({ contentURL: url('pages/popup.html'), onHide: doHide }); //and in…
Shahid Thaika
  • 2,133
  • 5
  • 23
  • 59
0
votes
1 answer

Execute script on 'onInstalled' in Firefox Add-on SDK extension

I am very new to Mozilla extension development, even I just came to know about extension and add-on development is different and I am quite stuck with what I see at MDN (Mozilla Developer Network). I want to executeScript 'content_script.js', as…
Priyanka
  • 806
  • 1
  • 9
  • 21
0
votes
1 answer

Insert a script at the top of HEAD tag in PageMod (Firefox Add-on SDK)

I want to insert a script in Firefox Add-on SDK content script added via page-mod. So, when user goes to page XXX, he gets a page with the inserted script. But, when trying to insert this at the top of HEAD, I got an error that the 1st Node child…
user2543953
  • 123
  • 1
  • 3
  • 11
0
votes
1 answer

Firefox Add-On SDK - Script don't run

So first I did a jpm init in a folder dedicated to it. Then I would like to do basic DOM manipulation with certain page. That's what I've done : ff-main.js: var pageMod = require("sdk/page-mod"); pageMod.PageMod({ include: /\/*.facebook\.*/, …
0
votes
0 answers

JPM [info] Creating a new profile

I was developing Firefox Add on. I needed to switch language in Firefox browser. If i get it correctly, then the only way to do that is to reinstall entire browser. So, i did it, and now, when i'm trying to run Add on, i'm getting this: JPM [info]…
stkvtflw
  • 12,092
  • 26
  • 78
  • 155
0
votes
1 answer

Accessing global variables in my addon's main js file from the debugger

I am trying to access global variables in my addons entry point in the debugger. Since this is not a web application there is no window object and the functions I define globally are not directly accessible in the debugger's console. Any help would…
curious
  • 133
  • 7
0
votes
1 answer

Sending PDF as binary with JS, receiving with PHP

I have a .pdf file client side that I would like to send in binary form to my server, which will be handling it with PHP. Client side, I am using a POST request that looks like this: var newFile = require("sdk/io/file"); var params = {}; params.log…
Anda
  • 101
  • 3
0
votes
2 answers

Firefox add-on get the DOM window which made an HTTP request

I'm capturing the HTTP requests in a Firefox Add-on SDK extension. I need to get the DOM window associated with the request. However, I'm getting an NS_NOINTERFACE error. Here is my code: var httpRequestObserver = { observe: function (subject,…
0
votes
1 answer

Check if page is loaded from bfcache, HTTP cache, or newly retrieved

the code below checks whether a url is loaded and then logs to the console. I would like to know if there is simple, clean method to check if a page is loaded from bfcache or http cache? Firefox documentation states that the load event should not be…
1 2 3
99
100