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

How mobile Firefox addon can recieve information from it's Desktop version? (if both are logged in)

I want to be able to close tabs on my mobile Firefox, while using Desktop version of Firefox. I thought Tab-sync would make it work, but it doesn't. So now I'm on the quest to fix it with an extension. I have thought about using sync area of storage…
0
votes
1 answer

WebExtension: browser.tabs is undefined in FireFox (elementary OS)

I'm trying to get access to the browser.tabs using an extension. My manifest.json currently includes these permissions: "permissions": [ "", "activeTab", "tabs", "storage" ] When I try to access browser.tabs I still get…
spekulatius
  • 1,434
  • 14
  • 24
0
votes
1 answer

Automatically redirect to another webpage when a website prefix is detected in Firefox

Is there a simple way to redirect a webrowser (Firefox) to another website whenever the actual page starts with a prefix? My case is with IEEEXplore, I'd like to redirect https://ieeexplore.ieee.org/document/ instead of…
noureddine-as
  • 453
  • 4
  • 12
0
votes
0 answers

How to check if extension/add-on used in Mozilla Firefox is a new tab extension?

I can't find out how to check if the extension used in Mozilla Firefox is a new tab extension. It works for Google Chrome. I am using the following code in my Google Chrome extension while using webextension-polyfill to be cross-platform…
0
votes
0 answers

Can a browser extension access a locally-scoped variable in my script?

I noticed that browser extensions have the permission to access localStorage from any webpage (Get localStorage from within extension without loading a page) as well as cookies (Access cookies from Google Chrome extension). If you give them…
0
votes
2 answers

Javascript framework (RightJS) as content-script in a page-mod

I'm new to the jetpack world (and firefox extension for that matter) and while doing some research on the possibility of jetpack, I found something strange. I did a simple test project that included a javascript framework (RightJS) in a pagemod…
nicon
  • 101
  • 1
  • 8
0
votes
0 answers

Want to load only JavaScript and HTML in Firefox. Everything else should be blocked. (Save RAM and CPU Usage)

I wrote a program which openes a lot of firefox-instances (up to 20). The sites are full of content and videos, pictures, cryptominers and gifs. I only want to load HTML and JavaScript to save RAM and CPU Usage. The RAM is full up to 3 - 5 GB total…
0
votes
2 answers

How to run firefox in native app of an extension?

I'm trying simple modify an extension example to run firefox,but I get a message prompt : Firefox is already running,but is no responding. To open a new new window, you must firest close the existing Firefox process, or restart your…
0
votes
1 answer

Promise resolve not called because popup closes too fast

I have the following piece of code: browser.windows.create({ url: urls }).then((newWindow) => { newWindow.tabs.slice(0, pins.length).map((tab, index) => { browser.tabs.update(tab.id, { pinned: true }) }) }) It works great when I…
Adrien
  • 2,088
  • 1
  • 18
  • 35
0
votes
1 answer

How to call function in certain time interval

I need to run a certain API function, in a certain time period once the access token is granted, and check the status and inform the user if there any changes. So far i did it by clicking a button on popup window of the firefox addon and calling the…
0
votes
0 answers

NS_ERROR_FILE_ACCESS_DENIED error when Firefox Addon is installed the second time

We have the Firefox Addon (the .xpi file) hosted locally. The xpi file is downloaded from the Mozilla Addon developer hub and put on our server. When we install the Addon from the browser, the first time there is no error. Tho, before the Addon is…
0
votes
1 answer

call page function from firefox addon with location.href doesn't work

i try to call a javascript function from the original page from my firefox extension content_script like this: content_scripts.js location.href="javascript:tellParent('lightboxClose();'); void 0"; This works very well in my Chrome Extension but…
Fendo
  • 21
  • 5
0
votes
0 answers

Mozilla addons server API: "Duplicate add-on ID found"

I try to write the script that will publish my extension to all stores, done with Chrome but stuck with Firefox. I was guided by this documentation. I am able to upload to Mozilla store through the web page. I know that I can use existing cli but I…
0
votes
1 answer

XMLHttpRequest cross-domain in Firefox addon extension

i am developping an addon chrome and firefox. My problem is only appearing on firefox but not on chrome. I want to make an XMLHttpRequest with url domain1.com in a tab of domain2.com (not in the background script) var xmlHttp = new…
0
votes
2 answers

Porting Add-on SDK to Webextension

I hope someone can help me with webextensions in Firefox 57. Im trying to port an plugin from Add-on SDK to Webextension. All I have is this following code Package.json { "name": "myPlugin", "title": "Grafic", "id": "myID", "main":…