windows TWebBrowser 是否依赖于 IE 版本?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3432585/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:59:42  来源:igfitidea点击:

Is TWebBrowser dependant on IE version?

windowsdelphiinternet-explorertwebbrowser

提问by Jonathan

I am thinking about using the TWebBrowser component that comes within Delphi's default pallet of components in a project, but I wonder if it uses the IE version installed on the client machine?

我正在考虑在项目中使用 Delphi 的默认组件托盘中的 TWebBrowser 组件,但我想知道它是否使用客户端计算机上安装的 IE 版本?

If yes:
then I guess it would share its history, cookies, workoffline and stuff like that?
Can I separate them somehow?
Is there any webbrowser component that is free and is not shared with Internet Explorer on the client?

如果是:
那么我想它会分享它的历史、cookies、离线工作和类似的东西?
我可以以某种方式将它们分开吗?
是否有任何免费的 webbrowser 组件不与客户端上的 Internet Explorer 共享?

回答by myles

The current answer is not quite correct. It appears for compatibility purposes, the WebBrowser control will run in IE7 Standards Mode by default unless you add some registry settings.

目前的答案并不完全正确。出于兼容性考虑,WebBrowser 控件默认将在 IE7 标准模式下运行,除非您添加一些注册表设置。

See http://blogs.msdn.com/b/ie/archive/2008/03/18/webbrowser-control-rendering-modes-in-ie8.aspxand http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx

请参阅 http://blogs.msdn.com/b/ie/archive/2008/03/18/webbrowser-control-rendering-modes-in-ie8.aspxhttp://blogs.msdn.com/b/ie /archive/2009/03/10/more-ie8-extensibility-improvements.aspx

So it's not quite the current IE version. You can also check this if you use fiddler or check the web server logs for the agent string - as it alters the agent string used too!

所以它不是当前的 IE 版本。如果您使用 fiddler 或检查代理字符串的 Web 服务器日志,您也可以检查这一点 - 因为它也会改变使用的代理字符串!

回答by G-Man

Yes, TWebBrowser uses whatever IE version is installed on the machine. Take a look at this similar thread for some possible alternatives..

是的,TWebBrowser 使用机器上安装的任何 IE 版本。看看这个类似的线程一些可能的替代方案..

How to embed a browser object, other than IE<n>, in a Delphi application

如何在 Delphi 应用程序中嵌入浏览器对象,而不是 IE<n>

回答by Remy Lebeau

Yes, TWebBrowser is tied to Internet Explorer. If you want a standalone HTML viewer, then look at the PBearcomponents.

是的,TWebBrowser 绑定到 Internet Explorer。如果您想要一个独立的 HTML 查看器,请查看Pbear组件。

回答by Fabricio Araujo

TWebBrowser is a wrapper around IE ActiveX interface. So, in the end,

TWebBrowser 是 IE ActiveX 界面的包装器。所以,最后,

 TWebBrowser = Internet Explorer