LWN.net Logo

Trying out Firefox 4

By Jake Edge
July 7, 2010

It should come as no big surprise that a large part of what we do here at LWN involves web browsing. We are, after all, a web publication, and many of our sources and other information come from various places across the web, so we tend to spend a lot of time using a web browser. When Mozilla announced the availability of the first beta of Firefox 4 on July 6, it seemed like a perfect opportunity to take the new browser for a spin.

[Full-screen mode]

One of the biggest—most visible—changes is the overall browser user interface. For Linux and Mac users, though, those UI changes have not yet been made, though some of the new functionality can be seen. By using the "Tabs on top" selection in the View -> Toolbars menu, something of limited preview of the new Firefox look can supposedly be achieved. Based on the descriptions from Windows users, though, there is much more to the changes than just moving the tabs. Full-screen mode in Firefox 4 (FF4) may give a better preview to what the default look will be: tabs all the way at the top that hide themselves when they aren't needed.

[HTML5 WebM
video]

In any case, the UI is only one part of the changes that come with FF4. Another important addition, at least for some folks, is the ability to play HD-quality video in the browser using Google's new WebM format. In my testing of the beta, videos seemed to work reasonably well—at least as well as they do using Flash in Firefox 3.5—but only at 360p. It may have been a bandwidth problem at this end, but 720p videos played poorly, if at all. It should be noted that the Flash version of the YouTube videos also suffered from some playback problems at 480p in FF4, but didn't seem to in Firefox 3.5.10.

On the other hand, in nearly a full day's worth of web surfing, FF4 was quite solid, unlike 3.5 which seems plagued by some kind of hang that happens more-or-less daily. I've always suspected Flash as the culprit, but never narrowed it down to that for sure. One of the more interesting new [Addons tab] features in FF4 is crash protection. The crash protection feature is meant to disable a misbehaving plugin after it becomes unresponsive for 45 seconds by default. As far as I could tell, that never occurred on any of the pages visited with FF4. In the end, though, there were no crashes or hangs in five or more hours of pretty continuous use, which makes for a pretty stable beta in my book.

Another nice addition to the UI (one that Linux users do get to see in the beta) is turning the "Addons Manager" into a full-fledged tab, rather than a small pop-up window. It makes for much easier interaction when installing, updating, and configuring addons and plugins. One wonders if Preferences will eventually go that route, as the relatively small tabbed window that is used currently has gotten pretty cluttered. A reworking along the lines of the new Addons Manager would be welcome.

Installing the beta was completely straightforward: download a tar file, untar it, and type ./firefox. It picked up the settings, bookmarks, and so on from my current yum-installed version and, crucially, didn't rewrite those files in such a way that the older version could no longer read them. It is a well-behaved guest and, based on its performance so far, could easily become my default going forward. Undoubtedly, typing that will doom me to some horrible, unrecoverable crash right in the middle of pushing out this week's edition—luckily I have the laptop as a fall-back position.

There are lots of little things that will come in handy. Changes have been made to stop the CSS browser history leak by altering how getComputedStyle() works in JavaScript. That will be a boon for anyone concerned about privacy in their browsing history. There is a new "Heads Up Display" that will be useful to web developers. It looks very similar to the console provided by the ever-useful Firebug addon. And so on.

[Feedback tool]

Mozilla is making a big push to get feedback on FF4. By default, the Feedback addon is installed, which puts a prominent button in the upper right. The two main choices ("Firefox Made Me Happy/Sad Because...") take you to a page to quickly fill out information about what worked or didn't. One can also include the URL of a misbehaving web site into the report. It is a quick, nearly painless way to report problems (or give kudos) on the beta.

One of the things that the Mozilla folks concentrated on with FF4 was performance. Firefox has, somewhat deservedly, gotten the reputation of being slow, and that is something that the development team is working very hard to change. There are numerous improvements in FF4 to speed up the browser, but I didn't find them to be particularly noticeable. While I use the browser constantly, it may well be that I don't push it as hard as others, or perhaps am more forgiving. In any case, FF4 certainly didn't seem slower than its predecessors; maybe over time the performance increase will become more evident.

Other than certain addons not (yet, presumably) being available for FF4, I could pretty easily make the switch, which is a little surprising to me. Other reports have found FF4 to be much less stable than I did. In any case, it seems that Mozilla is on the right track with a fairly large incremental update to its browser. FF4 is scheduled to be released late this year and it looks to be a great browser to head into 2011 with.


(Log in to post comments)

Trying out Firefox 4

Posted Jul 8, 2010 1:47 UTC (Thu) by dw (subscriber, #12017) [Link]

One simple test is visiting WHATWG's single page HTML 5 specification (warning: don't click if you're using your browser for serious things!).

About the only thing to be said is that it now continually stutters rather than entirely hanging for minutes on end. I guess that's an improvement.

Trying out Firefox 4

Posted Jul 8, 2010 4:06 UTC (Thu) by linuxjacques (subscriber, #45768) [Link]

Is a 64-bit version of the beta available?

So linux hasn't gotten the UI update nor the new JS engine ...
and it's already in beta.

That seems wrong somehow.

Trying out Firefox 4

Posted Jul 8, 2010 7:35 UTC (Thu) by kronos (subscriber, #55879) [Link]

> Is a 64-bit version of the beta available?

Yes, but it's not linked in the main beta page; you can find it on the ftp site:
http://ftp.heanet.ie/mirrors/ftp.mozilla.org/pub/mozilla....

Firefox 3.x stability and tab management

Posted Jul 8, 2010 5:16 UTC (Thu) by Cato (subscriber, #7643) [Link]

Firefox 3.5.x has or had various stability issues unrelated to Flash on Linux - one I encountered was https://bugzilla.mozilla.org/show_bug.cgi?id=263160, hang/corruption associated with crash, open for many years but silently fixed in a later 3.5.x release.

Firefox 3.5.10 is now quite stable on Linux - I've gone from several crashes a day at times with early 3.5.x to maybe one crash every few weeks. Not as stable as on Windows unfortunately, and in both cases I have up to 100 tabs open at once.

For others who frequently have many tabs open and want to reduce 'tab bloat', I recommend this addon which saves them for later use, freeing up RAM: http://pcsplace.com/firefox/taboo-restore-closed-tabs-and... - the Tabhunter and Tree Style Tab addons are good for managing many tabs, and of course Tab Mix Plus, but don't help you cut down.

Trying out Firefox 4

Posted Jul 8, 2010 8:30 UTC (Thu) by salimma (subscriber, #34460) [Link]

A bit curious -- why are you comparing it to 3.5.x instead of 3.6.x? The latter already has the same crash protection feature, though my understanding is that 4.x will go further beyond just protecting certain problematic plugins (*cough* Flash *cough*)

Installation

Posted Jul 8, 2010 8:44 UTC (Thu) by epa (subscriber, #39769) [Link]

Installing the beta was completely straightforward: download a tar file, untar it, and type ./firefox
That's running a binary blob. This is LWN, we might expect the review to at least mention the process of compiling it yourself, and whether it goes smoothly on typical Linux systems.

Installation

Posted Jul 8, 2010 10:29 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

Yes, compilation is straightforward, but quite a bit long.

Trying out Firefox 4

Posted Jul 8, 2010 9:58 UTC (Thu) by jiu (subscriber, #57673) [Link]

Re firefox's purpirted slowness, i'm with you in not understanding what people are talking about. Same goes with responsiveness, i think firefox 3.6 is plain awesome, here's looking forward to something even better in this beta.

Trying out Firefox 4

Posted Jul 8, 2010 16:03 UTC (Thu) by NAR (subscriber, #1313) [Link]

Although I have only Firefox 3.0.5 at hand (newer versions might be faster, but I doubt given the Mozilla/Firefox history), it took seconds(!) to switch tabs in the Preferences dialog. Then is started to get faster (probably all the tabs were cached in some way), but it's plain ridiculous to wait seconds for such a mundane thing.

Extensions and Firefox 4

Posted Jul 8, 2010 11:07 UTC (Thu) by smurf (subscriber, #17840) [Link]

You might want to get the "Add-On Compatibility Reporter" add-on. It enables old extensions so that you can test if they still work (most do) and report that fact back to Mozilla.

Extension compatibility

Posted Jul 8, 2010 12:16 UTC (Thu) by alex (subscriber, #1355) [Link]

Handy tip thanks. I was wondering what I should do once the venerable Nightly Tester Tools Add-On stopped working.

Firefox 3.5.x hangs

Posted Jul 8, 2010 18:46 UTC (Thu) by smoogen (subscriber, #97) [Link]

Jake, did you use flash directly in the browser or using npviewer? I found that most of my hangs went away with npviewer and dmesg filled with things like:

npviewer.bin[8172]: segfault at 418 ip 00000000010ada56 sp 00000000ffe5b7d8 error 6 in libflashplayer.so[e5f000+b04000]

versus hangs in firefox.

Trying out Firefox 4

Posted Jul 8, 2010 22:21 UTC (Thu) by Tet (subscriber, #5433) [Link]

For Linux and Mac users, though, those UI changes have not yet been made

That sentence alone is indicative of how broken the Firefox development process is. Wasn't the whole point of XUL that the user interface could be written in an OS-independent way, and would thus be the same across all platforms? So how is it that the Windows UI is now different to the others?

Trying out Firefox 4

Posted Jul 8, 2010 23:48 UTC (Thu) by pflugstad (subscriber, #224) [Link]

In think in this case, they are trying to make use of the accelerated rendering mechanisms available, and they chose to do DirectX first due to resource availability. See QotW from a couple of weeks ago:

http://lwn.net/Articles/392253/

This is just an external persons view - I have no direct knowledge.

Trying out Firefox 4

Posted Jul 13, 2010 21:33 UTC (Tue) by joedrew (guest, #828) [Link]

Our new themes require we implement platform-specific changes. These can involve drawing in the title bar, for example, which you can't do in a cross-platform way. There are also the platform-specific styles that you either have to be able to query from the platform (GTK, for example) or build yourself.

In short, omplementing our UI in XUL and CSS means we only have to have one frontend (in a lot of cases), but the backend needs to be written too.

Hardware acceleration has nothing to do with this.

Trying out Firefox 4

Posted Jul 9, 2010 9:07 UTC (Fri) by marcH (subscriber, #57642) [Link]

> unlike 3.5 which seems plagued by some kind of hang that happens more-or-less daily. I've always suspected Flash as the culprit, but never narrowed it down to that for sure.

Flashblock is your friend: a dead-simple interface to cherry-pick only the Flash you want. https://addons.mozilla.org/en-US/firefox/addon/433/

(downloaded more than 8 million times already)

Trying out Firefox 4

Posted Jul 10, 2010 19:48 UTC (Sat) by The_Barbarian (subscriber, #48152) [Link]

The beta and other recent builds are crashing more for me (Debian x86-64, 64-bit FF) than the nightly builds from a month ago.

Trying out Firefox 4

Posted Jul 16, 2010 0:17 UTC (Fri) by rqosa (subscriber, #24136) [Link]

When I tried to play 720p WebM video from YouTube, it would play for a while, then the video would stop (while the audio continued), then it would start again, etc.

Also, it looks like it's not using hardware-accelerated scaling (or at least the ldd output on firefox-bin doesn't include libXv or libGL).

Trying out Firefox 4

Posted Jul 16, 2010 0:33 UTC (Fri) by rqosa (subscriber, #24136) [Link]

One more thing: it seems that a self-compiled build (made using the "firefox-pgo-beta" PKGBUILD from Arch AUR) doesn't include the Feedback extension, and it's not at all obvious where to download the extension from (it doesn't seem to show up in the extensions directory).

Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds