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

标签 c# vb.net xulrunner geckofx

我正在考虑不再使用 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. 我上面提供的链接中的 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,则不会。

关于c# - Embedding Firefox/Gecko as a control into .Net (forms/wpf) 一般初学者问题入门,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42874311/

相关文章:

C# 在没有 app.config 的情况下设置探测 privatePath?

.net - 使用 xsi :nil in XML

web-applications - 简单的XULRunner应用程序可加载网页

vb.net - 您如何获得单击以打开 ContextMenuStrip 的控件?

mysql - 使用参数时出现 SQL 语法错误

javascript - 基于 XULRunner 的应用程序中的页面重新加载和格式错误的 HTML 问题

javascript - 杀死 "Unresponsive Script"上的标签

c# - 并行异步任务的任务调度程序

c# - 如何从代码隐藏访问用于填充 XAML 类的 DataContext 的属性/方法?

c# - 在 C# 中使用 HttpClient 的客户端证书