Is TWebBrowser dependant on IE version?

柔情痞子 提交于 2019-12-12 16:05:46

问题


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?

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?


回答1:


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.

See http://blogs.msdn.com/b/ie/archive/2008/03/18/webbrowser-control-rendering-modes-in-ie8.aspx and 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!




回答2:


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

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




回答3:


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




回答4:


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

 TWebBrowser = Internet Explorer


来源:https://stackoverflow.com/questions/3432585/is-twebbrowser-dependant-on-ie-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!