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
0
votes
1 answer

Caching functions in an Array

In a discussion at Passing 'this' and argument to addEventListener function without using bind, caching functions was mentioned. For example, considering the following Event Listeners: window.addEventListener('event1', callback1,…
erosman
  • 7,094
  • 7
  • 27
  • 46
0
votes
1 answer

removeEventListener in bootstrapped addon not working when addon disabled

I have noticed that after disabling a bootstrapped add-on, the removeEventListener does not seem to remove the listener and I can't work out the reason. let contextMenu = window.document.getElementById('contentAreaContextMenu'); if (contextMenu) { …
erosman
  • 7,094
  • 7
  • 27
  • 46
0
votes
1 answer

Is relative URL/path possible in Components.utils.import()?

Relative URL/path works in overlay XUL, instead of using the full chrome://............ I tried and failed to use it with Components.utils.import(). Is it possible? Also noticed: Bug 628669 - Provide support for relative URLs in Components utils…
erosman
  • 7,094
  • 7
  • 27
  • 46
0
votes
2 answers

Firefox addon how to handle page scrolling

I need to handle page scrolling in fennec addon I did next thing: function onScrollHand(window, event) { showToast(window, "Scrolling"); } var windowListener = { onOpenWindow: function(aWindow) { let domWindow =…
0
votes
1 answer

How to use nsicookieservice to get cookie-changed list

I've been reading the MDN docs about nsicookieservice and I'm interested in the notifications of this service: cookie-changed and cookie-rejected. Does that mean that we can get a list of the changed or rejected cookies? Would that be possible by…
0
votes
2 answers

getElementsByName in restartless (bootstrapped) extension for firefox mobile

I'm new in extensions development with Firefox in general, and in the mobile version in specific, and I'm facing this problem that's making me insane. I need to extract elements with a certain tag name, example