在修改和添加扩展到Firefox的问题 [英] Problems in modifying and adding extension to firefox
问题描述
是什么问题?
我猜错误信息是这个插件无法安装,因为它似乎是损坏的。如果签名扩展名已被修改,那么该消息将显示 - 签名的目的是为了防止未经授权的修改。在打包扩展之前,您应该删除 META-INF
目录,该目录包含签名。该扩展名将显示为无符号,但我不认为你在意。
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?
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.
这篇关于在修改和添加扩展到Firefox的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!