#250 closed bug (fixed)
wrong safari detection
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | core | Version: | |
Keywords: | safari | Cc: | |
Blocked by: | Blocking: |
Description
Safari is not truly detected because mozilla detection is quite wrong :
Currently when you are in safari, jQuery.browser.safari is true, but jQuery.browser.mozilla is true too, so we go into mozilla condition but never in safari condition.
You should change this code ...
// Figure out what browser is being used jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) };
By this code :
// Figure out what browser is being used jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) && !/webkit/.test(b) };
Note: See
TracTickets for help on using
tickets.
I'm not sure when, but it has already been fixed in SVN: