Question

I recently change gwt.xml script to only compile 1 permutation(ie8 only), This solve my previous issue, however there is a cosmetic issue arise, which is a annoying popup window shows up every time opening my GWT page with IE8

Here i include the screenshot showing the popup, any help to get rid of it will be appreciated. enter image description here

Update: Follow Thomas's advice,i been able to get rid of that message by compile for ie8 and safari. however since then i am only able to open the webpage with my IE9 in IE9 document mode not with IE8 mode, my user is using IE8

Below is code snippet for gwt.xml

    <set-property name="user.agent" value="ie8"/>
<extend-property name="user.agent" values="safari" />

below is GWT Dev Log showing the exception, user agent 'Mozilla/4.0' does puzzle me as i do have Firefox 14.0.1 installed.

 11:12:17.143 [ERROR] [dca] Failed to load module 'dca' from user agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8)' at 127.0.0.1:51883

i also found there is a Google Chrome Frame plugin for the IE, however since it is company default setting, it would be my last resort.

OK, here is my final update, In default GWT cover 6 permutation include IE8, However my IE has Chromn Frame which mask my browser to safari, IE8 and older browser does not support "AddEventListener" method, which is most GWT widget depend on. Therefore the gwt use safari implementation for my IE8 browser will fault on webpage initialization saying object doesn't support AddEventListener method.

my first attempt is set GWT to only compile for ie8, however this generate the annoying popup shown above,

Second attempt is set GWT to compile both ie8 and safari, again this fault on AddEventListener method

Last attempt is to utilize the Chrome Frame and set

     <meta equiv="X-UA-Compatible" content="chrome=1"> 

which let IE browser with Chrome Frame handle webpage using chrome's engine instead of IE engine, which did not do much to me, same story.

My final solution is let GWT compile 6 permutation as default and disable the Chrome Frame, this is company wide default plug in, but if user want this plug in then they should really get the actual chrome let natural selection work its magic.

Was it helpful?

Solution

GWT thinks your IE8 is a safari, you probably have Google Chrome Frame installed, and your page or server sends the appropriate bits to activate it.

So, either:

  • make sure your page / server doesn't try to enable Chrome Frame on the client
  • compile for ie8 and safari (2 permutations): <set-property name="user.agent" value="ie8,safari" />
  • uninstall Chrome Frame
  • or if it's only to speed up iterations while developing/testing your app, only compile the safari permutation
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top