如何将Firefox扩展添加到GeckoFX?

时间:2016-04-28 15:13:50

标签: vb.net firefox firefox-addon vb.net-2010 geckofx

我一直在谷歌上搜索一下教程如何使用“Geckofx”(vb.net)中的Firefox扩展程序找不到任何内容。 有人有想法吗?

1 个答案:

答案 0 :(得分:1)

请在Geckofx存储库中查看此票证。我相信这是你能得到的最接近的答案:https://bitbucket.org/geckofx/geckofx-29.0/issues/211/firefox-extension-in-geckofx

这似乎与Geckofx中的错误有关。以下是该页面上最有用的评论:

  

首先,使用

添加部署扩展的位置
Xpcom.ComponentRegistrar.AutoRegister():
void RegisterExtensionDir(string dir)
{
    Console.WriteLine("Registering binary extension directory:  " + dir);
    var chromeDir = (nsIFile)Xpcom.NewNativeLocalFile(dir);
    var chromeFile = chromeDir.Clone();
    chromeFile.Append(new nsAString("chrome.manifest"));
    Xpcom.ComponentRegistrar.AutoRegister(chromeFile);
}
  

其次,请勿在扩展程序的chrome.manifest中使用ABI标志。而不是

binary-component components/GeckoScraper.dll ABI=WINNT_x86-msvc

  

我用过

binary-component components/GeckoScraper.dll

相关问题