IE8 getUserAgent returns Safari

147 views
Skip to first unread message

skippy

unread,
Apr 12, 2012, 2:13:49 PM4/12/12
to Google Web Toolkit
I am trying to remove functions that don't work in Safari, but the IE8
user agent comes back with the word Safari in it.

Window.Navigator.getUserAgent().contains("Safari") in IE* its true.

Jens

unread,
Apr 12, 2012, 2:23:41 PM4/12/12
to google-we...@googlegroups.com

skippy

unread,
Apr 12, 2012, 2:34:47 PM4/12/12
to Google Web Toolkit
Yes I do, now what?

On Apr 12, 1:23 pm, Jens <jens.nehlme...@gmail.com> wrote:
> Probably Chrome Frame installed in IE?
>
> http://www.chromium.org/developers/how-tos/chrome-frame-getting-start...
>
> -- J.
>
> Am Donnerstag, 12. April 2012 20:13:49 UTC+2 schrieb skippy:
>
>
>
>
>
> > I am trying to remove functions that don't work in Safari, but the IE8
> > user agent comes back with the word Safari in it.
>
> > Window.Navigator.getUserAgent().contains("Safari") in IE* its true.- Hide quoted text -
>
> - Show quoted text -

skippy

unread,
Apr 12, 2012, 3:21:26 PM4/12/12
to Google Web Toolkit
This seems to work.

if (Window.Navigator.getUserAgent().contains("Safari") && !
Window.Navigator.getUserAgent().contains("Chrome"))
{
setSafari(true);
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages