Ticket #916 (reopened defect)
Gecko browser detection is broken
| Reported by: | JeremyRuston | Owned by: | JeremyRuston |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6 |
| Component: | core | Version: | |
| Severity: | low | Keywords: | |
| Cc: |
Description
TW tests for Gecko-based browsers with the expression config.userAgent.indexOf("gecko") != -1, which does a case insensitive test for the word "Gecko" in the browser user agent string.
The config.browser.isGecko flag is used to determine whether the forceReflow() hack is used (see #320 for details).
The problem is that the browser detection code isn't sufficient; current versions of Safari include the string "gecko" in their user agent strings, and so end up running the forceReflow() hack.
Change History
Note: See
TracTickets for help on using
tickets.
