在修改和添加扩展到Firefox的问题 [英] Problems in modifying and adding extension to firefox

查看:100
本文介绍了在修改和添加扩展到Firefox的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Firefox下载了一个扩展名,将xpi重命名为zip并解压缩。然后使用zip重新打包相同的文件夹来创建xpi(听起来很愚蠢,但我打算对代码进行修改,尽管我没有在这种情况下完成),当我将该扩展添加回firefox时,howerver报告扩展可能是腐败的。我在Mac OS X中运行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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆