windows - TWebBrowser and IE version -


when asked this question accepted answere because made sense , documentation pointed right.

testing machine ie6 against other 1 ie7 same compiled executable using twebbrowser behaviour indeed pointed in answere.

now put answere in doubt again, in machine ie8 same executable being identified ie7 server. wrote simple rails app pirnts user agent , clear. in same machine if access rails app in ie prints:

mozilla/4.0 (compatible; msie 8.0; windows nt 6.0; trident/4.0; gtb6.5; slcc1; .net clr 2.0.50727; .net clr 3.5.30729; infopath.2; .net clr 3.0.30729) 

when access using executable:

mozilla/4.0 (compatible; msie 7.0; windows nt 6.0; trident/4.0; gtb6.5; slcc1; .net clr 2.0.50727; .net clr 3.5.30729; infopath.2; .net clr 3.0.30729) 

furthermore, little friend process monitor realized classid called instantiate twebbrowser {8856f961-340a-11d0-a96b-00c04fd705a2} wich in windows registry has name "microsoft web browser" , points ieframe.dll.

now things little more strange. if go system32/ieframe.dll , check version... 8.0.

i´m confused. question is: when use twebbrowser, wich version of ie used, indeed?

thanks.

it's using ie8, in ie7 compatibility mode. the ie team blogged this in march 2009, described how can ie8 rendering instead of ie7 default.

i haven't seen how ie9 behave here, can't if you'll need different value use ie9 rendering, or if there's other value means "newest" , gets ie8 rendering well.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -