Closed
Bug 695901
Opened 13 years ago
Closed 11 years ago
http://smartusa.com/ thinks Fx 10.0a1 is an "older version" of Firefox
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jbalogh, Unassigned)
References
()
Details
Someone tried to show me some fancy effects they're doing on that page but I wasn't seeing anything interesting. I found this in their js: <!-- REDIRECT - OLDER BROWSERS to ORIGINAL WEBSITE --> if (($.browser.mozilla) && ($.browser.version < "3.4.0")) { window.location.replace(url); } That's some awful coding and it fails since "10.0a1" < "3.4.0" when you're comparing strings.
Updated•13 years ago
|
Comment 1•13 years ago
|
||
Anyone tried to reach them?
Comment 2•13 years ago
|
||
Jeff, could you confirm that the problem is still there?
Reporter | ||
Comment 3•13 years ago
|
||
(In reply to Jean-Yves Perrier [:teoli] from comment #2) > Jeff, could you confirm that the problem is still there? It is. If I go to http://www.smartusa.com/ in Chrome I get a fancy page; if I go there in Firefox I get bounced to http://www.smartusa.com/home/overview.aspx. Still the same piece of code: <!-- REDIRECT - OLDER BROWSERS to ORIGINAL WEBSITE --> <script type="text/javascript"> var url = "http://www.smartusa.com/home/overview.aspx"; if (($.browser.msie) && ($.browser.version < "7")) { window.location.replace(url); } if (($.browser.mozilla) && ($.browser.version < "3.4.0")) { window.location.replace(url); } if (($.browser.safari) && ($.browser.version < "4")) { window.location.replace(url); } </script>
Comment 4•13 years ago
|
||
(In reply to Jeff Balogh (:jbalogh) from comment #0) > <!-- REDIRECT - OLDER BROWSERS to ORIGINAL WEBSITE --> > if (($.browser.mozilla) && ($.browser.version < "3.4.0")) { > window.location.replace(url); } > > That's some awful coding and it fails since "10.0a1" < "3.4.0" when you're > comparing strings. Furthermore, it totally ignores the fact that not all "Mozilla" browsers are Firefox and don't all use the same versioning system, so even if the comparison was valid, it would be incorrect for Camino and Seamonkey users. I'm more interested in an answer to comment 1, though :-p
Comment 5•13 years ago
|
||
It looks like they fixed it. Jeff could you confirm?
Comment 6•13 years ago
|
||
Sorry for the spam, I was using UA spoofing. The site is not fixed.
Comment 7•13 years ago
|
||
I've sent them a message via their contact form. The new site is working well when I fake the UA.
Did this get fixed? The site looks pretty fancy to me.
Comment 9•13 years ago
|
||
Not for me (Nightly + UA of Fx 10). (Try to fake to Chrome 17 to see the difference!). (The site is *really* fancy)
Comment 10•11 years ago
|
||
Same site as Chrome now. Closing as FIXED.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•