3

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?

NullUserException
  • 83,810
  • 28
  • 209
  • 234
Jonathan
  • 4,724
  • 7
  • 45
  • 65
  • You asked if there's an alternative, not shared; yes. There is. Chromium for Delphi. uses webkit. basically the same as google chrome. – Warren P Feb 13 '11 at 03:47
  • @Warren last version of DCE (http://www.progdigy.com/?p=204) is not a webkit wrapper, but actully uses out of process chrome.exe :-) There is also not feature-rich but pure Delphi component at http://code.google.com/p/thtmlviewer People also told about Mozilla Gecko wrapper but personally did not saw it. I wonder if ChromeFrame ActiveX can be naturally embedded into Delphi :-) – Arioch 'The Sep 19 '12 at 06:09
  • 1
    You should consider changing your accepted answer here, as the one you accepted is technically wrong. – Jerry Dodge Sep 05 '19 at 14:46
  • @JerryDodge done – Jonathan Sep 05 '19 at 14:51

4 Answers4

9

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:

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!

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
myles
  • 136
  • 1
  • 4
7

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

Community
  • 1
  • 1
G-Man
  • 7,232
  • 18
  • 72
  • 100
2

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

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
  • Remy - those are obsolete dead components. Fresh version is http://code.google.com/p/thtmlviewer/ Also there is Google Chrome Embedded for Delphi with component at progdigy.com and people also told abouit Mozilla Gecko. So except for Opera that generally don't want their engine re-used, it seems all major HTML engines are available for Delphi. – Arioch 'The Sep 19 '12 at 06:07
1

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

 TWebBrowser = Internet Explorer
Fabricio Araujo
  • 3,810
  • 3
  • 28
  • 43