Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Webmaster > Internet Life

January 23rd, 2012, 10:41 GMT · By

Firefox 10 May Cause Problems with UA Detection Code on Some Sites

SHARE:

Adjust text size:


The release of Firefox 10 could cause some trouble with older code
Enlarge picture
Firefox is about to go through a major milestone, a symbolic but important one nonetheless, its version number will get two digits with the release of Firefox 10 to the stable channel, i.e. the one that most people are using.

With this comes a surprising but noteworthy issue though, some user agent (UA) detection scripts may not have planned for this and may not be able to parse or will simply act unpredictably when detecting a two-digit version number for Firefox.

"We all know it: UA-based browser detection is bad, the right way is feature-detection. Regardless, legacy code relies upon UA sniffing and may need to be updated for Firefox 10′s release," Mozilla's Jean-Yves Perrier wrote.

"Old scripts often made some undue assumptions. Some are assuming that browser version numbers will never reach 10… This is not the case: Opera and Chrome have already crossed this landmark long ago, Firefox will reach it next week and IE soon after," he explained.

"So, it is the last moment to check your UA-based browser detection code before your site goes havoc!," he urged developers and webmasters.

Less than a year ago, a new Firefox was coming out every year or year and a half. It took seven years to get to Firefox 4, so many websites assumed that it would be years before Firefox 10 came out. That's no longer the case.

Mozilla has some simple advice for checking out whether your sites work properly with the new version which is a week away from launch. The simplest way of testing your sites is to get the Firefox 10 beta and see what works.

Of course, going through the website code is useful as well. Checking for UA browser detection code is a simple way of discovering old code that may not handle two-digits or may not even be needed anymore. The same goes for libraries used.

TELL US WHAT YOU THINK:

1,789 hits · 5 comments · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Firefox Source Code Is So Big, It Hit the 32-Bit Virtual Address Space Limit

Unlock Secret Bonus Levels in Angry Birds by Reading Books, Google Books That Is

Firefox 9 Is Coming in Three Days, Here's What You Need to Know

Google Chrome 17 Adds Revamped Panels, Thousands of Other Changes and Fixes

Firefox 10 Beta Is Here, What You Need to Know

READER COMMENTS:


Comment #1 by: Sid_7 on 23 Jan 2012, 11:32 UTC reply to this comment

Now, I just hope that in case users encounter problems, the users will not blame Mozilla for it, when essentially its the fault of the poeple responsible for the site.


Comment #2 by: stewart on 02 Feb 2012, 07:56 UTC reply to this comment

I upgraded to FF10 a few days ago, after being prompted to do so by my browser.

I found that I could not see user's comments on some websites such as news websites etc - nor could I make a comment!

I have now reverted to Firefox 9.0.1 and I think I will stay with that.

Comment #2.1 by: Teoli on 02 Feb 2012, 14:31 GMT

Do you have a link to these sites? They should be contacted.

Staying w/ Fx 9.0.1 is a bad idea as it is unsecure.


Comment #3 by: Ken430TX on 03 Feb 2012, 21:00 UTC reply to this comment

Is anyone else having cursor problems with FF 10 after opening multiple tabs? At 5 tabs the cursor disappears and I can no longer enter text into the address bar . . . if I close FF then reopen it will work OK for a bit and then fail again. No issues in IE or Chrome . . . only in new FF 10!


Comment #4 by: gtilflm on 06 Feb 2012, 21:38 UTC reply to this comment

I'm also having issues with my website with FF 10. Just one section of the website, really. It's not displaying a Thickbox (iframe). Ideas?

Copyright © 2001-2012 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM