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

Converting to bootstrapped: Notification undefined

I wrote a Firefox add-on that works fine as an overlay, but now I'm converting it to be boostrapped (restartless). It registers a tab listener, and then opens up an HTML5 notification under certain circumstances when a tab is closed. The add-on…
1
vote
1 answer

Download and open Firefox

I am a new user of Firefox's plugin system. I wanted to create a plugin that will download multiple files in a que, and then open them for practice. My question is if there is a way to download a file from the Internet in the plugin. I am aware of…
1
vote
1 answer

Opening a background window using the Firefox Add-ons SDK

I am writing a Firefox add-on, and I am using the high-level Firefox Add-on SDK API. My add-on opens a new window, and opens several tabs in that window. How can I get this new window to open in the background? I do not want its opening to disrupt…
1
vote
1 answer

Is relative URL/path possible in openDialog()?

Is it possible to use a relative path for the URL? changelog.htm is in the same directory as options.xul Section of options.xul
1
vote
1 answer

How do I wait until all areas are registered with CustomizableUI in bootstrap.js::startup()?

I'm building a restartless add-on that is a CustomizableUI widget. When I call CustomizableUI.createWidget() during startup(), I want the defaultArea property to be one of a selection of preferred areas. Currently I'm achieving this with something…
Codifier
  • 354
  • 1
  • 14
1
vote
2 answers

Firefox Addon: Revert Preference to their original value

If an add-on changes a preference outside its own preference branch, then it should revert them back to their previous state (not necessarily the default state) on uninstalling the add-on. I imagine, the current preferences have to be saved and then…
erosman
  • 7,094
  • 7
  • 27
  • 46
1
vote
1 answer

Firefox Addon: Uploading Image

I would like to upload an image to a site from a Firefox Addon. I know I can createElement('canvas'), convert Image data to base64 and XHR POST the data, but I would like to see if it is possible to let Firefox handle it. Normally, a user will click…
erosman
  • 7,094
  • 7
  • 27
  • 46
1
vote
1 answer

firefox restartless bootstrap extension script not reloading

I am unable to get a source code modification reflected in the firefox extension without restarting firefox. I believe this should be possible when using the bootstrap approach. Here is the source code: bootstrap.js var GOOGBAR_MODULES = […
user3526
  • 1,412
  • 1
  • 19
  • 26
1
vote
1 answer

Are Firefox Keyboard Shortcuts only activated at browser start-up?

In a Firefox restartless addon, the keyboard shortcuts disappear after disabling and enabling the addon. Console does not log any error (try{}catch{}). On checking the Browser Toolbox the key is inserted back in the but the…
erosman
  • 7,094
  • 7
  • 27
  • 46
1
vote
1 answer

CustomEvent error in Firefox bootstrapped addon

From document.createEvent The createEvent method is deprecated. Use event constructors instead. In bootstap.js // this works let event =…
erosman
  • 7,094
  • 7
  • 27
  • 46
1
vote
1 answer

In uninstall function of bootstrap, re-import?

In the uninstall part of my bootstrapped addons I do some important stuff. I delete any files it created and all preferences. However this uses some services. This is an example of one of my uninstall procedures: function uninstall(aData, aReason)…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
1
vote
1 answer

Firefox Restartless Addon: Errors Logged on Enable/Disable

I have been testing and when a Bootstrapped/Restartless Addon is enabled or disabled, a number of errors are logged relating to other addons. Duplicate resource declaration for 'specialpowers' ignored. chrome.manifest:32 Duplicate resource…
erosman
  • 7,094
  • 7
  • 27
  • 46
1
vote
1 answer

Firefox Restartless Addon: What information are available to the addon from AddonManager?

Certain information are passed to a restartless add-on function startup(data, reason) { } data = { id: "***********", version: "1.0", installPath: XPCWrappedNative_NoHelper, // nsIFile resourceURI: XPCWrappedNative_NoHelper, // nsIURI …
erosman
  • 7,094
  • 7
  • 27
  • 46
1
vote
1 answer

Firefox Extension: Performance: Overlay vs Bootstrapped

I understand the convenience of installing bootstrapped extensions but there is a question that has been bugging me for a long while. Has there ever been a performance & resource/memory usage comparison between overlay & bootstrapped extensions? In…
erosman
  • 7,094
  • 7
  • 27
  • 46
1
vote
1 answer

Bootstrap add button to BrowserPalette and make it persist

I am curious about something. I am able to add a button to the BrowserPalette and then move it to a toolbar with this code, can copy paste to scratchpad and run. var doc = document; var win = doc.defaultView; var toolbox =…
Noitidart
  • 35,443
  • 37
  • 154
  • 323