How to integrate add-ons (.xpi) into my custom Firefox build? - firefox

I'm compiling Firefox 44.0.2 on my Windows machine using the official guidance: Simple Firefox build. I want to integrate some custom add-ons to my build. The add-ons are usually .xpi files.
How to do this?

The documented way to do this is to include the .xpi file with the distribution in the directory:
[Firefox install directory]/distribution/extensions
The add-on will then be installed in (copied to) each profile upon the first use of that version of Firefox with the profile. The copy of the extension in each profile will be automatically updated using the normal auto-updating procedure. Effectively, the add-on will be treated as if separately installed in each profile. The user will not be asked to confirm installation of the add-on.
For more information see:
Customizing Firefox: Including extensions with your distribution of Firefox (MDN documentation)
Installing extensions (MDN documentation)
Auto update of bundled Firefox extensions (Stackoverflow question)
Install WebExtensions on Firefox from the command line (Stackoverflow question)
This answer was copied from my answer to Integrating an add-on into a custom Firefox build.

Related

Firefox addon could not be installed because it's not compatible with Firefox 33.0 on Android

I just finished building my first addon for Firefox using the new Addon SDK.
I'm able to download and install the addon on my desktop Firefox 33.0 and it runs without a problem, however when I try to install the same addon on Firefox for Android 33.0 I get an error message: "... could not be installed because it is not compatible with Firefox 33.0"
Do I need to do anything special to allow my addon to run on Firefox for Android? The addon is generic and there's no reason why it shouldn't run on Android
EDIT: It seems like the problem was indeed that some APIs are not supported in Firefox for Android, the link provided by willma contains all the information required to release an addon for mobile.
It is likely you're using a module that isn't compatible with mobile. See the mobile module compatibility list for more details.

Unable to install XPI in firefox

I have created a XPCOM add-on for firefox by the name "Sample Mozilla AddOn" from XPCOM C++ SDK. I have created an XPI file (which is an add-on installer in Firefox).
When i try to install this XPI to install my XPCOM component, i get an error "Sample Mozilla AddOn could not be installed because it has a high risk of causing stability or security problems"
I tried looking out on internet and MDN, but could not found any concrete information.
Kindly Help
Thanks and Regards
Uday Gupta
open mozilla firefox,
then drag the .xpi file and drop it in mozilla firefox window.
Then click install > restart firefox.
Just try it...!

Finding incompatibility in Firefox addon

I have an custom addon developed for our workplace (using the add-on SDK) that was originally developed for FF4.
When FF5 came out all I had to do was rebuild the XPI. FF6 was able to use the same XPI.
Now I'm trying to get it running in FF7, and it's not working. I get a "this add-on is not compatible with Firefox 7" when trying to install it.
I've read this blog post:
http://blog.mozilla.com/addons/2011/07/19/firefox-7-compat-looking-to-8/
And from what I can tell none of the changes affect my add-on.
Also running this validation test
https://addons.mozilla.org/en-US/developers/addon/validate
Yields no errors or warnings.
Any clue on how to find out what makes FF7 think it incompatible?
You should use the newest version of the Add-on SDK to rebuild your add-on. Right now, the latest version you get offered on the SDK download page is Add-on SDK 1.1, released on September 13th. It will mark add-ons compatible with everything up to Firefox 8.0a1. You are most likely using an older version, e.g. Add-on SDK 1.0 would only mark add-ons as compatible with Firefox 7.0a1.

Firefox for Web Developer?

Is there any FireFox plugin which acts the same as IE8 developer tools in a way that it has an option to switch from different modes or versions?
I had many issues when installing different versions of FireFox in just one machine. I now have 3.0, 3.6, 4.0.1 and 5.0.1 of FF but I got a problem regarding add-ons, it seems like they share just one location where add-ons are in.
If I open FF 3.0, since some add-ons are latest version for 4.0.1 and are not compatible with FF 3.0, it will disable them, then when I go back to the later version, add-ons which was disabled by the older FF will be gone.
Anyway my platform is Windows 7 32-bit.
Start firefox with following option
firefox.exe -ProfileManager
For each profile you can add individual addon's which do not conflict with other profile addons. Ensure you give different names for different profiles in different firefox versions.

Selenium IDE 1.0.2 in Firefox 3.5 on Mac

I've tried installing Selenium IDE from their website. The newest version - 1.0.2 - installs fine. After restarting Firefox, I go to "Tools" > "Selenium IDE", and this window opens:
No more happens. I can access the menus of Selenium (Create New Test Case, etc.) but clicking them doesn't have any effect.
I am using Firefox 3.5.3 on Mac OS 10.6.1. The version I installed of Selenium IDE was 1.0.2 from http://release.seleniumhq.org/selenium-ide/1.0.2/
Is there any way to make it work? Or is it just me who cannot make it work?
Generally the conflicting extension are themes, for not having to create a completely clean profile and loose all your add-ons, try using firefox in it's default theme and see if that works better.

Resources