Re: Browser version in browser-pane
2013/12/20 Erik Ronström:
> When using the browser-pane on LWW, does anyone know what underlying Windows component is used?
>
> On my Windows 7 machine, I have IE10 installed. Going to http://www.mybrowserinfo.com/ displays
>
> "Your Browser User Agent String is Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"
>
> However when I use the browser-pane to display the same web page, it says
>
> "Your Browser User Agent String is Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)"
>
>
> Apparently the browser-pane is using an older version of IE (that cannot display HTML5 video, which is my actual problem). I suspect that nothing can be done to change this from within LispWorks, as the browser is probably delivered as an opaque object. But it would still be interesting to know what component is being used, maybe there are some functions that can be called via FLI to manipulate the browser.
It uses whatever version of Internet Explorer is installed. In Windows
7, that can mean IE from 8 (vanilla) up to 11 (current latest).
When used as a COM/OLE object, the WebBrowser component runs in
compatibility mode with IE7 (or EmulateIE7, or something, check it out
at the MSDN IEBlog).
You can easily tell it to run in another mode using a DOCTYPE before
the HTML content, or with a META tag with http-equiv="X-UA-Compatible"
(again, check out the IEBlog, I remember there was even a diagram
explaining how IE9 determines the mode it should use).
Best regards,
Paulo Madeira
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html