Wednesday, September 1, 2010

Re: user.agent options

safari = webkit = chrome

gecko = firefox

2010/9/1 John Denley <johnvdenley@googlemail.com>
Thanks for this sbraheem.

For anyone else reading this who doesnt know how to access what sbraheem is talking about (as I didnt) then just search your hard drive for the gwt-user.jar file then simply copy it and rename it to gwt-user.jar.zip and then open it with any zip browser and you can navigate down to 'com/google/gwt/user/UserAgent.gwt.xml' as stated by sbraheem.

For me (version 2.04) the available options are

ie6,ie8,gecko,gecko1_8,safari,opera

which is interesting because - whats happened to ie7? is it really not supported? The answer is of course "NO" the ie6 option covers ie7 (but I had to look at the code inside the XML file to find that out!) - Surely these things should be part of the standard documentation somewhere shouldn't they?


Also, this still doesn't answer the second part of the question, which is what do these mean? or to put it another way "where are chrome and firefox?"

The following website does help a bit
http://www.useragentstring.com

and this is what seems like a very comprehensive list of mobile phone user-agents:
http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones

but gecko1_8 didnt seem to be FULLY mentioned anywhere, however looking at http://www.useragentstring.com

I found that gecko1_8 seems to be Firefox prior to V2.1, and gecko (presumably inferring v1.9) is for FF2.1 and above (although I notice that FF4.0b3pre and FF4.0b4 are gecko v2.0)

Firefox 2.1

Firefox 2.0b3


Hope this helps out other people asking the same questions. Anyone from google fancy adding some of this information to the doc page at:
http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler?




On 1 September 2010 08:18, sbraheem <sbraheem@gmail.com> wrote:
You can see all the supported options at 'com/google/gwt/user/
UserAgent.gwt.xml' in the gwt-user.jar file.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Guit: Elegant, beautiful, modular and production ready gwt applications.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment