Embedding Firefox/Gecko as a control into .Net (forms/wpf) 一般初学者问题入门

Embedding Firefox/Gecko as a control into .Net (forms/wpf) general beginner questions getting started

我正在考虑不再使用 IE 和 .NET 应用程序的网络浏览器控件,即。 C# 或 VB.NET.

我想改用 Firefox,但是我是新手,对所有不同的包、分支、旧教程和 Firefox 版本控制感到很困惑。

  1. 我的理解是首先需要GeckoFX。这只是一个移植了 Firefox 的 Gecko(布局引擎)以供 .NET 使用的人吗?或者这是官方的还是或多或少的官方?

  2. 我的下一个理解是我需要 xulRunner,它是运行时,我总是需要将 GeckoFX 版本与 xulRunner 相匹配?如果 GeckoFX 当前的版本是 45,与之匹配的 xulRunner 在哪里?

  3. 如果操作系统已经安装了Firefox,是否有1和2的快捷方式?还是每次更新时我都需要从 GeckoFX 和 xulRunner 下载、开发和部署所有内容?

  4. 我可以将用户的 Firefox 配置文件用于我的嵌入式控件吗?特别是我需要为某些网站使用 PKI 证书,我不能简单地忽略它们。或者我是否需要从他们的配置文件中复制 cert8.db 以将其用于我的嵌入式控件?

  5. 我上面提供的 link 处的 GeckoFX 是版本 45,这是否意味着它使用版本 45 的 Firefox Gecko?这意味着它有点落后于当前的 firefox 版本(我的 Firefox 显示 52)?

  6. 如果用户更新 Firefox,这是否会影响我的嵌入式控件?

My understanding is that I first need GeckoFX. Is this just one person who has ported Firefox's Gecko (the layout engine) to be able to used by .NET or is this something official or more or less official?

GeckoFx 不是 Gecko 的端口;它是 xulrunner 的 .net 包装器。这不是 Mozilla 项目。

My next understanding is that I need xulRunner which is the runtime and that I always need to match GeckoFX version with xulRunner?

没错。

If GeckoFX is currently at version 45 where is the matching xulRunner for this?

The project site 有获取 xulrunner 的说明和指针。

If the operating system already has Firefox installed are there any shortcuts to 1 and 2? Or do I need to always download, develop and deploy everything from GeckoFX and xulRunner each time it is updated?

理论上可以使用安装好的Firefox。但是由于 geckofx 的版本必须与安装的 Firefox 匹配,这似乎不切实际,因为您无法控制 Firefox 用户的版本 运行.

Can I use the users' Firefox profile with my embedded control? In particular I need to use the PKI certificates for certain websites and I cannot simply ignore them. Or do I need to copy the cert8.db from their profile to use it with my embedded control?

抱歉,我不知道。您可以尝试在 the BitBucket project site.

上提问

GeckoFX at the link i provided above is at version 45, does this mean that it uses the Firefox Gecko from version 45? This means it is a little bit behind the current firefox version (my Firefox shows 52)?

是的。

If the user updates Firefox does this effect my embedded control at all?

如果您的项目使用自己的 xulrunner,则不会。