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

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 of the legacy add-on to make it workable.
In general, the legacy add-on works in Firefox 56 but there are some problems that I have to solve.
My current problem: I change the add-on files in a text editor, save them, restart Firefox, but instead of using the new add-on files, the browser keeps using the old versions of these files. I have no idea where it keeps them.
I have disabled checking for add-on signing in the browser. The add-on code resides in a folder on a local disk (not compressed). In the Firefox profile, in the folder "extensions" there is a text file that contains the path to that folder. The browser loads add-on, the add-on works, but uses the old versions of the add-on files, even after I change the original files. I tried to disable and then enable the add-on, this did not help at all.
How can I force Firefox 56 to reload this legacy add-on after I change the add-on files?

Copy to a path the package (xpi) for installed and disabled/incompatible addon.
(...\Profiles\xxxxxxx.default\extensions)
Note that files can have names like {b9db16a4-6edc-47ec-a1f4-b86292ed211d}.xpi but using about:support you can find the name associated to this addon.
Uninstall the disabled/incompatible addon
Extract the xpi file (it is a zip file)
Edit install.rdf
(contains extension identification and compatibility checks)
to include a different version
modify max version 56.*
Edit chrome.manifest
(contains technical configuration which can be common for all browser and version or can be customized per each different web browser or version)
Modify appversion to apply to your browser version
Add all files to a file.zip
rename the file.zip to file.xpi
Install the addon file on your firefox
You have more details in:
best-practices-with-firefox-palemoon.html

Related

How to publish a FireFox WebExtension for local installation only?

How can I permanently install my (toy) WebExtension without having to publish it via Mozilla Addons (AMO), when my extension is just a small group of CSS hacks not meant to be published.
The other option, installing it only permanently would be cumbersome to do everytime I need the extension.
EDIT:
To add further input, the page I've linked to says
Zip up your extension's files Edit
At this point your extension will consist of a directory containing a
manifest.json and any other files it needs - scripts, icons, HTML
documents, and so on. You'll need to zip these into a single file for
uploading to AMO.
One trick is that the ZIP file must be a ZIP of the extension's files
themselves, not of the containing directory.
and also
Packaged extensions in Firefox are called "XPI files", which are just
ZIP files with a different extension.
You don't have to use the XPI extension when uploading to AMO.
In about:addons you can install from file, but whatever way I try to package my extension I get:
even after observing and trying the quoted passage above.
The temporary installation works fine.
You can get your extension signed by AMO but leave it unlisted or you can use one of the Firefox builds that allow signing to be disabled (Nightly or unbranded builds)
You can sign your extension by AMO without publish it.
Then just put an xpi file into
%appdata%\Mozilla\Extensions{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
the browser will accept it.

How to properlly rebuild a .xpi file for Firefox +45.0.1?

I would like to force the compatibility of FastDial for the new Firefox 4.5.0.1, and other extensions.
I did this in the past for a lot of addons, I know the procediment... the xpi is just a zip file, that when extracted their contents, you will find a file with name Install.rdf, containing this line:
<em:maxVersion>X.0</em:maxVersion>
Then the desired version is set, and recompress the Zip, and change the .zip extension to .xpi.
However, that methodology is not working for Firefox 45.0.1 (x86).
This is what always happens when trying to install a rebuilt xpi using the known methodology:
The Spanish error-message of the image above says:
This addon cannot be installed because seems damaged.
So... what changed in this damn Firefox 4.5.0.1 that does not accept our rebuilt addons?.
UPDATE
I noted that the problem is with the Install.rdf file, If I do not change the <em:maxVersion>...</em:maxVersion>, then I can recompress properlly the package and it is recognized by this new Firefox.
Then how I need to edit the Install.rdf file to avoid "corrupting" the xpi package for this new Firefox?.
I tried using Wordpard to edit the rdf file, I also tried Sublime Text, saving the file with and without BOM (UTF-8), and for re-compressing the package I used WinRar (I always used WinRar to do it), saving it as Zip, not RAR, of course.
All extensions distributed by Mozilla for Firefox are signed by Mozilla. The files containing the signatures are in the META-INF directory within the extension's top level directory. These signature files are what are used to verify that the extension has not been modified from what has been reviewed and distributed by Mozilla.
To get past the error you are seeing, you will need to remove that directory and its contents.
You will then have an issue that the extension is not signed. Firefox will then refuse to load it for that reason. The quick solution to that is to set xpinstall.signatures.required to false in about:config. However, that will only be effective in release and beta versions of Firefox until the next version update, or so. When exactly changing that option will no longer work is not clear. Turning off the availability of that option in the release and beta versions of Firefox has been a moving target, but the change is coming very soon. The option should continue to work in the Developer Edition of Firefox.
Beyond those options, you will need to have the new extension, which you created by making any changes, signed by Mozilla. You will have to treat it as a new extension (i.e. you will have to create a new ID for it). Some resources which will help in figuring extension signing out (it would be a different question) are:
Signing and distributing your add-on
Add-ons/Extension Signing

When trying to save a .jpg file it opens the dialog box even if custom firefox profile is configured not to

I want to create automated test in selenium webdriver with cucumber to download some stuff and I am using a custom firefox profile, but it seems not to work when downloading jpg files.
Can you help me with tips & tricks how to make jpg files to be downloaded automatically instead of the download manager to show up? In Application tab I didn't find anything related to jpg files, and in General tab "Save files to" is set. My version of firefox is 34. When setting up the properties of the profile I've been using "image/jpeg" as mime type for jpg
.
I have updated my firefox version and it solved the problem, guess it was a firefox bug. Now in v39 JPEG appear in application tab and preferences can be set against it. Initially I didn't want to update firefox version because I thought it was another bug, from maven dependencies ${selenium.version} selenium didn't take the last version. I manually changed it to the last version from repo and it works.

Firefox extension dissapears from extensions folder

I'm trying to develop a Firefox extension. I've created a new profile, and I copy the folder of my extension to the extensions folder, with Firefox not running. When I run Firefox, I see how the folder of my extension disappears from the extensions folder, and Firefox opens without the extension. I've also tried to make a link, a text file called exactly same than the extension's em:id, with the path of the folder inside. However, the same thing happens every time - the file disappears when starting Firefox. I'm working on Firefox 14, Mac OS X 10.8 Mountain Lion.
You need to first install the extension into firefox. For that, make xpi file of your source, install it to firefox and restart it. Once the extension is installed, you can start editing source files inside the extension folder. Before making the xpi, make sure that your install.rdf have <em:unpack>true</em:unpack> to force firefox to unpack your xpi. Unpacking is not recommended and may cause performance issues.
My preferred method is to use Firefox extension proxy file where you can keep your source code anywhere and still enjoy the same benefit.

Safari for Windows - disable certain plug-ins

I just can't find a way of doing this - in Safari for Windows (5.1.7) I would like to disable certain plug-ins, but I can only see how to disable them all (from Preferences/Security-> Enable Plugins) - can I not switch them on and off individually?
I have read about physically deleting files from a Safari folder within Windows Explorer but I'm not convinced about this (and there are no files in there that match what I am trying to disable anyway).
Thanks in advance.
The only way to get rid of individual plugins in Safari is to physically delete (or move them to another folder) from the C:\Program Files (x86)\Safari\Plugins folder.
If you say you've already checked and what you're looking for is not in that folder, are you it's a plugin and not an extension? You should be able to manage extensions individually in the preferences option within Safari.
If your plug-in doesn't appear in the folder, it shouldn't load anyways. If you can't find it there and it does load, I think your best option would be to uninstall and re-install Safari.
Sorry if this doesn't help.

Resources