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
Is TWebBrowser dependant on IE version?
提问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.aspx和 http://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
回答by Remy Lebeau
回答by Fabricio Araujo
TWebBrowser is a wrapper around IE ActiveX interface. So, in the end,
TWebBrowser 是 IE ActiveX 界面的包装器。所以,最后,
TWebBrowser = Internet Explorer