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 extension share async function with return gives => Error: Permission denied to access property "then"

i'm trying to call an async function defined in my extension from a webpage and print the returned value of this function, but i get "Error: Permission denied to access property "then"" (if i do it with a non async function i still get a Permission…
0
votes
1 answer

Rerun Firefox addon's script on URL dynamic change

To simplify the scenario, lets say I'm working on an extension that just contains: alert("Hello") whenever you load a page in example.com. Relevant manifest.json part: "content_scripts": [ { "matches":…
Cyber Shadow
  • 100
  • 1
  • 11
0
votes
1 answer

How to sleep in a firefox extension (old and native JS methods not working)?

I tried let { setTimeout } = require('sdk/timers'); browser.webNavigation.onCompleted.addListener(setTimeout(resetSpeed, 3000)); browser.webNavigation.onHistoryStateUpdated.addListener(setTimeout(resetSpeed, 3000)); (...) it didn't work. Another…
user96769
  • 25
  • 5
0
votes
0 answers

insert content from firefox webextension

I created a simple Firefox extension to show an external page in a popup. I was now wondering if it's possible to use the content from the external page to fill a field in the current tab or if this is only possible when loading the content…
vespino
  • 1,714
  • 3
  • 15
  • 28
0
votes
1 answer

loading simple iframe from extension firefox

I have created a webpage that runs a script that I would like to be able to open from a button on the Firefox taskbar like an extension. If this looks something like this addon layout wise that would be fine. I was hoping to open an iframe in which…
0
votes
1 answer

Problem with adding functionality to JavaScript Firefox Extension?

Works: chrome.browserAction.onClicked.addListener(function (tabs) { if (allowedAddresses(tabs.url)) { chrome.tabs.sendMessage(tabs.id, { command: "getVideosArray" }, function ( response ) { setIconBadgeTextFromValue(tabs.id,…
user96769
  • 25
  • 5
0
votes
1 answer

browser.tabs.executeScript in Firefox Extension return value

How to return a value in browser.tabs.executeScript in Firefox Extension? I need to access var selectedText. I have tried this but it doesn't work: var test = browser.tabs.executeScript( { code: ` var selectedText = ''; if (window.getSelection)…
0
votes
1 answer

Is there a way to download ALL addons for firefox?

For my final year uni project I am scanning firefox addons. I need to download the .xpi for every possible extension, what is the best way to do this? Thanks.
0
votes
1 answer

How to publish extension on Firefox in beta version

I want to publish my extension on Firefox for beta testing team. So someone can express me how to do this. Or any steps to do them, it will be more help for me.
0
votes
1 answer

Firefox Addon Publishing API

Does Firefox provide access to do the following programmatically? Upload Firefox addon package/files Update/modify addon package Get analytics on extension (installs, uninstalls, etc.) Delete/remove addon package
0
votes
1 answer

Retrieve TargetElement with targetElementId for Firefox Addon

I am trying to create an add-on for Firefox which enables me to input password from a REST based server to input field. To achieve this, I added context menus with the add-on to Firefox. The listener for these context menus is implemented as…
reschiram
  • 33
  • 4
0
votes
1 answer

Access current document from Firefox extension browser action background script

I'm building a toolbar button extension for Firefox. In my background script, I need to access the document for the current tab when the toolbar button is clicked. window in this context is the window for the extension, not for the current tab.…
Chris
  • 11,819
  • 19
  • 91
  • 145
0
votes
1 answer

Cannot type slash or single quote in firefox add-on input field

I'm learning to develop a Firefox add-on. I've made a simple dev-tools tab with an input box. I'm finding that I can type every character into the input box with the exception of "/" or "'". A forward slash or single quote will not populate. Nothing…
0
votes
1 answer

Writing to file without user's confirmation

I'm looking for a way to write to a file from firefox webextension addon like it was possible in old addons. I know it was removed because of security concerns but something like writing to a file inside extension's folder will be enough. Creating…
0
votes
1 answer

HTML5 canvas drawWindow on FF4/JetPack error

I borrowed code from thumbnail.js modified it so that it takes screenshot of the entire page (at least thats the idea) Code: function takeScreenshot(window) { const { Cc, Ci, Cu } = require("chrome"); const AppShellService =…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805