News for hackers. Stuff that matters.
Re:The Firefox 3.5 fiasco by tptacek on Thursday July 09, 2009 @05:51PM (#696693)
Although the interminable feeling the author had while waiting for Firefox 3.5 to start up mirrored my own feeling of waiting for him to get to the f'ing point, he's absolutely right: Firefox should just be using the system's secure random number generator on each platform. If you have a vulnerability in /dev/random or CryptGenRandom(), you have a massively more important finding than Firefox crypto.
Re:The Firefox 3.5 fiasco by codyrobbins on Thursday July 09, 2009 @07:37PM (#696848)
This is exactly the reason, as a general rule of thumb, why I don't like end-user software packages that are designed to be cross-platform. While I find Firefox 3.5 on OS X to be way faster than Firefox 3.0, it still doesn't hold a candle to Safari. It may as well be written in Java. For something as fundamental as a web browser, which I'm using all day long, it can't take 30 seconds to open a new window, freeze up and start thrashing halfway through rendering a page, or crash twice a day. (All of which Firefox 3.0 did, and which made me decide to move to Safari.) On top of the performance, the fact that Firefox uses a fake skinned XUL look-alike interface on each platform is the straw that breaks the camel's back, at least for me.

Port the renderer cross-platform, and write separate native apps for each target platform. The amount of complication and cruft that must be in the codebase for making a massively complex software package like Firefox work cross-platform, and the amount of basic OS-level functionality that must have to be reimplemented from scratch because it isn't available on some particular target platform, is probably no small contributor to its performance woes.

Re:The Firefox 3.5 fiasco by blasdel on Thursday July 09, 2009 @08:38PM (#696908)
It gets worse: sometimes they won't use platform libraries because it conflicts with the ideology they're trying to force on the web.

"Of course we won't use DirectShow / QT / GStreamer as an alternate backend for <video> -- that would make it actually useful in the real world, and our Theora evangelism comes first!"

Re:The Firefox 3.5 fiasco by dflock on Friday July 10, 2009 @05:59AM (#697396)
As usual, there's no conspiracy. They're working on a GStreamer backend for Firefox but it wasn't finished in time for 3.5. It will probably go in next time around; the current version is a functional stopgap until then.
Re:The Firefox 3.5 fiasco by weavejester on Thursday July 09, 2009 @09:05PM (#696941)
I wouldn't have said they're forcing their ideology onto the web; it's more that they're forcing the web's ideology onto their users.
Re:The Firefox 3.5 fiasco by blasdel on Thursday July 09, 2009 @09:12PM (#696949)
The web's ideology is to not give a shit -- no baseline content types were ever specified for <img> or <object> or <embed>
Re:The Firefox 3.5 fiasco by slater on Friday July 10, 2009 @12:39AM (#697129)
Yes, and "not giving a shit" gave us the fun we had with GIF89 (Will Compuserve shut down the web?!?), various incompatible video formats (Real, AVI, etc.), so this time around, giving a shit might save us from having to go thru all that again.
Re:The Firefox 3.5 fiasco by blasdel on Friday July 10, 2009 @02:18AM (#697199)
The LZW GIF patent trolling was from Unisys (It was a submarine patent for Compuserve), and it only affected encoders -- it didn't threaten the web in any way.

The video wars were because [Apple, MS, Real, Macromedia, Sun] were all trying to compete with each other using crap products that conflated [Branding, Plugin, Container Format, Codec] in a mash of uselessness.

Flash won not because it had the same codecs on all platforms, the plugin was customizable the same way on all platforms, and the end-user branding was all yours to theme.

The most interesting part of <video> is not codecs or containers, but the full + uniform control and customizability via its Javascript API. The only reason there is any problem at all is because Mozilla is refusing to expose access to QT / DirectShow / GStreamer.

Re:The Firefox 3.5 fiasco by weavejester on Friday July 10, 2009 @04:50AM (#697343)
This is true, but I wonder whether this would have been the case had more image formats been patent-encumbered. The web is a product of open standards and formats, and Firefox is attempting to apply that ideology to HTML5 video formats as well.
Re:The Firefox 3.5 fiasco by blasdel on Thursday July 09, 2009 @08:42PM (#696916)
Gecko used to be used directly by a number of consumers for implementing native applications, but Camino on OS X is the only one left. All others are long-dead or switching to Webkit.

Mozilla threw all of their weight behind XULRunner years ago. It probably wasn't that bad of a decision, given how much of a headache it is to use Gecko directly.

Re:The Firefox 3.5 fiasco by voidpointer on Friday July 10, 2009 @08:24AM (#697541)
I think you made a good point there about the drawbacks of cross-platform end-user apps. The problem is that the idea of developing a single code-base for all the different platforms are so damn compelling to both managers (from a business perspective) and also lots of engineers who've learned to accept code re-use as the holy grail of our craft.

Even doing the core rendering part cross-platform has a lot of technical issues as the platforms provide a lot of functionality that can be leveraged by the rendering engine (typesetting, drawing, animation etc...). Consequently, the more you want to integrate with the native facilities of the platforms, the more interfaces and glue components you need in order to hook the platform independent part up to the native facilities. This leads to a loads and loads of ceremonial code and interfaces that introduce additional layers of complexity.

Re:The Firefox 3.5 fiasco by lamnk on Thursday July 09, 2009 @08:07PM (#696876)
Of course Safari loads faster than Firefox on OS X, as IE loads faster in Windows. Their libraries are preloaded by OS ...

Native apps for each platform may give performance boost, but maintaining a consistent UI will be a lot harder

Re:The Firefox 3.5 fiasco by blasdel on Thursday July 09, 2009 @08:45PM (#696918)
That's the point: we don't want consistent UI

If we want native UI, it's obviously going to have major inconsistencies between platforms!

Re:The Firefox 3.5 fiasco by __david__ on Friday July 10, 2009 @05:38AM (#697378)
Well that's not 100% true because the main interface for Firefox on Mac OS X looks more like Safari than it does Firefox on Linux.

I think they've actually done a really good job making it look like a native app instead of just a port from some other OS.

Re:The Firefox 3.5 fiasco by blasdel on Friday July 10, 2009 @04:03PM (#698277)
It's not about looks, but about behavior.

Fun Fact: In Safari since version 3, the <input> elements aren't actually native widgets anymore, as NSButton et. al. couldn't support a bunch of the CSS attributes. They are now rigorous behavior-level reimplementations!

A widget that looks native but behaves differently is terrible! At least when it looks alien you don't expect it to behave natively.

Re:The Firefox 3.5 fiasco by lallysingh on Friday July 10, 2009 @09:23AM (#697617)
But users still pay the runtime startup costs for not using the native libs.
Re:The Firefox 3.5 fiasco by DrJokepu on Friday July 10, 2009 @04:28AM (#697322)
You know, I remember the times when Firefox was called Firebird and Phoenix and I adored it for loading way much faster than IE. It's surprising how much FF changed since then.
Re:The Firefox 3.5 fiasco by rbanffy on Friday July 10, 2009 @11:05AM (#697722)
It would be unfair to say it's all due to Firefox and nothing due to improvements on IE (like pre-loading stuff on startup)
Re:The Firefox 3.5 fiasco by DrJokepu on Friday July 10, 2009 @12:26PM (#697909)
The old Mozilla Suite had a start-up preloading tool as well if I remember correctly. Still, Google Chrome loads up way much faster than either IE or FF without preloading anything at all.
Re:The Firefox 3.5 fiasco by rbanffy on Friday July 10, 2009 @08:51PM (#698670)
I think Chrome has something that preloads stuff. Starting it right after login takes a lot more time than if you start it a couple minutes later. I don't think it's all due to the heavy activity a Windows login takes.
Re:The Firefox 3.5 fiasco by andrewtj on Thursday July 09, 2009 @09:02PM (#696936)
Whilst that sounds reasonable on my VM Safari loads faster than Firefox on Windows.
Re:The Firefox 3.5 fiasco by gms on Thursday July 09, 2009 @09:04PM (#696940)
Some background: on Unix, Firefox obtains seed entropy from /dev/urandom, while on Windows it calls RtlGenRandom() for some reason instead of CryptGenRandom(). This seeding material is then fed to the random number generator, a NIST SP800-90 Hash_DRBG.

However they do obtain additional (optional) entropy (if you're familiar with the NIST DRBG's, then I'm talking about the 'Additional Input' parameter) by reading system time while periodically reading a bunch of system dirs to advance time in a non-deterministic manner. And that's where this bug creeps up.

Re:The Firefox 3.5 fiasco by itgoon on Thursday July 09, 2009 @11:00PM (#697030)
> it calls RtlGenRandom() for some reason instead of CryptGenRandom()

It is calling a kernel interface. The prefix "Rtl" means that it is in the kernel run time library.

Reference: http://blogs.msdn.com/wdkdocs/archive/2008/12/19/windows-ker...

Re:The Firefox 3.5 fiasco by gms on Thursday July 09, 2009 @11:01PM (#697031)
Aha, cheers for the explanation.
Re:The Firefox 3.5 fiasco by maukdaddy on Thursday July 09, 2009 @07:16PM (#696828)
Apparently the 10,000 eyes of open source missed this huge mistake =( This is exactly the kind of thing I wouldn't except to see in open source software.
Re:The Firefox 3.5 fiasco by jerf on Thursday July 09, 2009 @07:23PM (#696837)
This is the 10,000 eyes of open source catching the mistake. It happens in public because there is very little "private". Working As Designed.

How often do you see a forensic analysis of this type on commercial software? Not zero, but less often.

Re:The Firefox 3.5 fiasco by tptacek on Thursday July 09, 2009 @09:32PM (#696974)
I'm gonna go with, "every time Microsoft releases a security patch of any severity in any product whatsoever".
Re:The Firefox 3.5 fiasco by jerf on Thursday July 09, 2009 @09:38PM (#696977)
Hey, absolutely. I'm just saying that it's much harder and thus much more rare.

(I have to admit it's sort of more impressive when someone whips out a debugger rather than reading through source.)

Re:The Firefox 3.5 fiasco by CWuestefeld on Thursday July 09, 2009 @09:59PM (#696990)
Well, catching it after a long beta and then three rounds of release candidates. Indeed, it was apparently caught by an end user, and not those 10K eyes of developers at all.
Re:The Firefox 3.5 fiasco by rbanffy on Friday July 10, 2009 @11:08AM (#697727)
And that's the beauty of FLOSS. An end-user caught a problem that will, hopefully, be corrected in a couple days.

Were it a problem within IE (or Oracle applications - let's be fair as this is not a Microsoft-only problem) we would have to wait until a developer reads the report, the bug being assigned and the correction being put in a future bug-fix release.

In a way, a guy from Microsoft just made a huge point on how open-source is far superior to their own closed development cycle.

Re:The Firefox 3.5 fiasco by FooBarWidget on Friday July 10, 2009 @05:39AM (#697379)
I'm not sure what you're expecting or what you're disappointed about. It's not like closed source commercial software have any better track records.
Re:The Firefox 3.5 fiasco by jeffesp on Friday July 10, 2009 @08:38AM (#697562)
If we only measure ourselves (and our work) by the next best person, then only thing we can become is slightly better than them.