Questions tagged [firefox-addon-overlay]

14 questions
4
votes
3 answers

How do I migrate a legacy XPCOM extension to WebExtensions?

Embedded WebExtensions talks all about how to "... embed a WebExtension in a classic bootstrapped extension or an Add-on SDK add-on." But I've got neither a "bootstrapped" nor "Add-on SDK" extension, just a decade old plain old XPCOM/overlay…
2
votes
3 answers

How to develop legacy Firefox add-ons in the future?

Firefox is moving towards the WebExtensions standard which promises improvements in stability, cross-browser compatibility, and more security. At the same time they're gradually dropping support for legacy add-ons (bootstrapped extensions, add-on…
2
votes
2 answers

Do I need to create an .xpi file to test my Firefox extension?

I have a Firefox extension. When I change the source code, every time I have to create the zip file including the source code and then make it as a .xpi file. Can I avoid this making *.xpi file steps?
2
votes
1 answer

How to read a local file in an add-on for Firefox version 45+

I spent 4 hours trying to find a solution for loading a file into my Firefox Add-on. But, with no success (((. The code I have: const {TextDecoder, OS} = Cu.import("resource://gre/modules/osfile.jsm", {}); var decoder = new TextDecoder(); var…
Greccy
  • 23
  • 4
2
votes
1 answer

Open Tab in a Specific Position by Firefox extension

Say, there are 10 tabs in Firefox browser window. How can I add a tab in after 2nd tab by a Firefox extension code? gBrowser.addTab method only appends to the tab list.
1
vote
1 answer

maxVersion of Firefox Add-on is not enforced?

I have a Firefox add-on (not distributed via AOD) that was supposed to be active (in that version) only with Firefox up to version 50, cf. This snippet is from my install.rdf:
1
vote
1 answer

Open a new tab with "hello world" on it

How to open new tab, and create a new HTML document in it? Preferably using old restart-required API, like Components.classes, Components.interfaces stuff, but any way that works is fine.
Vibok
  • 47
  • 4
1
vote
1 answer

In Firefox 50, what is the appropriate chrome:// URL to overlay and extend DevTools main window?

Previously, you could extend/style Firefox DevTools at chrome://devtools/content/framework/toolbox-options.xul with an overlay. Now, that seems to no longer exist in Firefox 50. The Developer toolbox shows about:devtools-toolbox as the URL. I'm not…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
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

How to iterate over files in a directory within an extractionless add-on's .xpi file

My add-on, Color Source, needs to iterate files in a directory within my add-on (e.g., the content subdirectory) when the add-on is not unpacked (i.e., is kept zipped as an XPI). We are using code like this to get the Addon…
0
votes
1 answer

How to force Firefox 56 to reload a legacy add-on?

I had been using an old version of Firefox, because I have a legacy add-on which is incompatible with new versions. Now many websites have stopped working in the old version of Firefox, and this forces me to update to Firefox 56 and change the code…
0
votes
1 answer

Why does my Firefox add-on not work after updating Firefox to version 50

I developed an add-on, daneshLink, which was verified by Firefox. Users installed this add-on and used it. This add-on worked, but when Firefox updated to version 50.0, this add-on doesn't work. (Note: Add-on was not removed or disabled after…
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
2 answers

Use HTTP-on-modify-request to redirect URL

I am building an add-on for Firefox that redirect request to a new URL if the URL match some conditions. I've tried this, and it does not work. I register an observer on HTTP-on-modify-request to process the URL, if the URL match my condition, I…