Questions tagged [firefox-addon-restartless]

A restartless or bootstrapped Firefox add-on is an add-on that does not require restarting the browser in order to install, enable, disable or remove it. Restartless add-ons, however, have some limitations, such as no support for XUL overlays.

A restartless or bootstrapped Firefox add-on is an add-on that does not require restarting the browser in order to install, enable, disable or remove it. Restartless add-ons, however, have some limitations, such as no support for XUL overlays.

Some add-on types, such as dictionaries, are always restartless.

81 questions
1
vote
2 answers

.gBrowser is undefined

I'm writing a restartless Firefoxextension where I have to enumerate all open tabs and work with them. Here's the code-part that throws the error: getInfoString : function () { infos = ""; HELPER.alerting("url",…
Husky110
  • 723
  • 2
  • 10
  • 27
1
vote
2 answers

including a js file in bootstrap.js firefox for android extension

I'm working on a bootstrapped extension for firefox for android and I want to import a js file to the bootstap.js (like importing a component in xul extensions). The classic method of using the chrome.manifest to use a resource alia is not allowed…
0
votes
1 answer

How to get URL from current active Browser window/tab from within a script running in an XUL (e.g. in a sidebar)

I am creating a simple bootstrapped add-on for Firefox. I need to capture the current URL from the browser through sidebar with a button click. My bootstrap.js: const {classes: Cc, interfaces: Ci, utils: Cu} =…
Jeya Kumar
  • 1,002
  • 1
  • 13
  • 36
0
votes
1 answer

How to get the active tab URL in an e10s add-on

For a toolbar button click, I need to get the URL address of the active tab. But window.gBrowser.selectedBrowser.contentDocument gets a CPOW error. How can I get the URL location of the active tab URL within an e10s add-on?
0
votes
0 answers

SQLite storage API Insert statement freezes entire firefox in bootstrapped(Restartless) AddOn

Data to be inserted has just two TEXT columns whose individual length don't even exceed 256. I initially used executeSimpleSQL since I didn't need to get any results. It worked for simulataneous inserts of upto 20K smoothly i.e. in the bakground no…
0
votes
2 answers

jpm addon can't get icon to display in Addon Manager

In package.json, I have tried with and without a resource://, a name, a GUID, both name and GUID, neither name nor GUID, With {}s, without {}s, with @, relative and absolute, assuming ./ (relative), / (root), /data. I simply can not get the addon…
user2895783
0
votes
1 answer

How do I swap my array file in my restartless firefox extension? Kind of updating the array elements not the entire extension?

I have a restartless firefox extension in which I have an array which is used for some decision making. The elements of this array can change overtime. Currently I have my bootstrap.js file which calls various functions present in another .js…
0
votes
1 answer

Firefox addon could not convert to bootstrap

Below I have the code for xul addon which works expectedly. i.e. shows username and password input at the browser startup and whenever the topic is http-on-examine-response it validates and write in specified file. But when I try to convert it to a…
Dhay
  • 585
  • 7
  • 29
0
votes
1 answer

Intercept download link click and prevent default download dialog

We have built a download manager desktop application for windows. Now we want to add a feature that intercepts download links and adds them to the application. We think we should write an addon for each browser starting from Firefox. To…
0
votes
1 answer

gInitialPages is not defined bootstrapped extensions

I am working on Firefox extension that overwrite new tab page and I need to hide my page URL from address bar. I use this code: if (gInitialPages.indexOf(NEW_TAB_URL)===-1) gInitialPages.push(NEW_TAB_URL); It works correctly in XUL Overlay code,…
And390
  • 1,550
  • 2
  • 16
  • 22
0
votes
1 answer

Bootstrap addon: How to do proper cleanup on shutdown?

I am new to this and a bit at a loss about the exact way the garbage collection works for restartless addons. From my shutdown function I currently call all objects I have to do cleanup. They remove any event handlers to outside code they might have…
user1115652
0
votes
1 answer

OS specific css in firefox add-on

Firefox add-on. Facing some padding problems for some XUL elements in mac os (windows, linux are okay). I wish to know if there are any css tricks to identify the OS platform and apply a style to an element only for that OS ? From a search, some of…
0
votes
1 answer

In a Firefox non-overlay extension, how to add text to a browser toolbar icon?

How do you add text to your add-on's browser toolbar button? I'm interested in something exactly like how the download manager button shows the "2h" text above a progress bar, when 2 hours is remaining to download the requested file(s). Is it even…
0
votes
2 answers

gBrowser.getBrowserAtIndex(i) sometimes fails on removeTab()

Considering the following (simplified) example that works fine: var tabs = window.gBrowser.tabs; for (var i = 2, len = tabs.length; i < len; i++) { var uri = window.gBrowser.getBrowserAtIndex(i).currentURI.spec; } The following sometimes fails on…
erosman
  • 7,094
  • 7
  • 27
  • 46
0
votes
2 answers

How to get the tab Index of the right clicked inactive tab?

Who to get the tab Index of the right clicked tab that fires the Tab context-menu. Tab is NOT the active tab (not the selectedIndex)? As an example. "Close Tabs to the Right" in Tab context menu works regardless of which tab (active/not-active) tab…
erosman
  • 7,094
  • 7
  • 27
  • 46