Bug Tracker

Modify

Ticket #12032 (closed bug: wontfix)

Opened 11 months ago

Last modified 11 months ago

$.browser.safari returns true in latest Chrome release

Reported by: bryan@… Owned by: bryan@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

The latest Chrome release for Mac (20.0.1132.47) looks like it changed it's user agent string and is causing jQuery's $.browser.safari function is returning true.

Change History

comment:1 Changed 11 months ago by dmethvin

  • Owner set to bryan@…
  • Status changed from new to pending

I wouldn't count on this being the last time, you can use navigator.userAgent to directly sniff out whatever you think is a more accurate detection.

Can you provide the full user agent for your browser?

comment:2 Changed 11 months ago by anonymous

Yeah I've already figured out my own detection in the meantime, here's the user agent string the current Chrome build spits out:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11

comment:3 Changed 11 months ago by rwaldron

  • Status changed from pending to closed
  • Resolution set to wontfix

This is because $.browser is unmaintained - to maintain is to encourage its use. Don't use it.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.