firefox插件,无法从xpi内部检测到xpcom dll [英] firefox plugin, not able to detect xpcom dll from inside xpi
问题描述
我已经创建了一个xpcom firefox插件,如果我手动将目录复制到扩展文件夹并重新启动firefox,则可以正常工作.
但是如果我用zip压缩并将其重命名为.xpi并上传到服务器中以下载onclick.
Firefox正在下载扩展名中的xpi文件,但不会取消插件的功能.
结果是xpcom dll无法被firefox检测到.
但是,如果我去手动解压缩扩展名,然后重新启动firefox,它将运行正常.
所以我认为主要的问题是无法在Firefox中的zip文件中运行exe或dll.
所以我的问题是如何告诉firefox通过解压缩安装此插件,因为它具有一些二进制数据.
我尝试在rdf文件chrome.manifest文件文档中搜索该文件,但没有得到任何帮助.
请帮我. :(
I have created a xpcom firefox plugin it is working fine if i copy manually the directory to extension folder and restarts firefox.[it is asking for to allow the permission and works fine].
but if I zip''s and renamed it as .xpi and upload in server to download onclick.
Firefox is downloading the xpi file in extension but not uncomcressing the plugin.
as a result the xpcom dll the not detecting by firefox.
but if I go and manually unzip inside extension and restarts firefox its running fine.
SO what I thought the main problem is no exe or dll can run from inside a zip file in firefox.
So my problem is how to tell firefox that install this plugin by unzipping because it have some binary data.
I tried searching rdf file chrome.manifest file document for that but didn''t get anything helpful.
please help me. :(
推荐答案
终于有人发现了它
在install.rdf中,我不得不提到
还有一个标志
at last found it from somebody
in install.rdf I have to mention
one more flag
<em:unpack>true</em:unpack>
仅此而已:)
that''s all :)
这篇关于firefox插件,无法从xpi内部检测到xpcom dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!