Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems in modifying and adding extension to firefox

I downloaded an extension from firefox renamed the xpi to zip and unpacked it. Then repacked the same folder using "zip" to create the xpi(sounds silly but i am planning on making modifications to the code, though i have not done in this case), howerver when i add that extension back to firefox, firefox is reporting the extension might be corrupt. I am running firefox in Mac OS X.

What is the problem?

like image 534
Julius Canute Avatar asked Jul 04 '11 09:07

Julius Canute


People also ask

Why are my extensions not working in Firefox?

The Firefox add-ons might not work if your Firefox browser is not up to date. Moreover, incorrect date/time settings of your system or corrupt Firefox user profile (or any of its settings/files) may also cause the issue.

Could not be installed because Firefox Cannot modify the needed file?

This means that Firefox needs to unpack the XPI file because the extension tries to modify some of its content and fails. Try to install the extension in Firefox Safe Mode. Boot the computer in Windows Safe mode with network support to see if that has effect in case security software is causing problems.

How do I manually add an extension to Firefox?

Method: Press Alt + f > o > browse to the extension > double click the extension (or select Open) > Install Now. Method: Drag the extension to the instance of Firefox on the taskbar > wait for Firefox to appear > drop onto the browser window > Install Now.


1 Answers

I guess the error message is "This add-on could not be installed because it appears to be corrupt". That message appears for signed extensions if they have been modified - the very purpose of a signature is to prevent unauthorized modifications. You should remove META-INF directory before packing the extension back, that directory contains the signature. The extension will show up as unsigned then but I don't think you care.

like image 73
Wladimir Palant Avatar answered Nov 12 '22 09:11

Wladimir Palant