Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [Browser] Fix or workaround for wrong user agent HTTP header in embedded IE10?
[Browser] Fix or workaround for wrong user agent HTTP header in embedded IE10? [message #1403337] Wed, 23 July 2014 05:36 Go to next message
Eclipse GuestFriend
Messages: 93
Registered: February 2013
Location: Vienna
Member
Hi,

There's a bug report (https://bugs.eclipse.org/bugs/show_bug.cgi?id=404543) regarding IE10 browser running in the incorrect compatibility mode. The bug is marked as fixed for 4.4, however IE10 on Win7 64 is still reporting the wrong user agent HTTP header for SWT 4.4, which breaks the browser detection on any website that uses it to determine feature compatibility.

Pasting the message from the bug report here in the hope that someone may have an idea for a fix or workaround:

---------------------------------------------
SWT 4.4RC4 (both 32 and 64 bit) still appears to be reporting an IE9 User-Agent string within HTTP requests when embedding IE10. This is in a Windows 7 64bit install, where the registry key described above (HKLM\Software\Microsoft\Internet Explorer\svcVersion) does actually indicate a 10.* value, so not sure why the wrong version is still being picked up after the SWT fix. The correct user agent (MSIE 10.0) is being reported via navigator.userAgent in JavaScript, but unfortunately many websites use the HTTP header (or any user agent string for that matter) to assume browser compatibility. The -Dorg.eclipse.swt.browser.IEVersion=10000 workaround mentioned above also doesn't have any effect.

On the plus side, SWT 4.4RC4 in IE11 Windows 7 32bit reports the correct HTTP User-Agent string.

Any ideas on fixes for IE10? Thanks for your efforts with this, they are much appreciated.
------------------
Re: [Browser] Fix or workaround for wrong user agent HTTP header in embedded IE10? [message #1403471 is a reply to message #1403337] Thu, 24 July 2014 00:37 Go to previous message
Eclipse GuestFriend
Messages: 93
Registered: February 2013
Location: Vienna
Member
OK the problem is fixable, workaround from the bug report pasted here for the benefit of anyone else who comes across the same issue:

Delete the registry key at HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\<java process name>, eg. java.exe
Previous Topic:Somebody ruins my project - glib critical when starting java/swt app
Next Topic:Browser object - IE MaxConnectionsPerServer difference
Goto Forum:
  


Current Time: Thu Apr 25 09:00:07 GMT 2024

Powered by FUDForum. Page generated in 0.03393 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top