Adblock Plus and (a little) more

Keeping an eye on plugins · 2007-12-15 01:00 by Wladimir Palant

It seems that one critical aspect of browsing is finally getting the much deserved attention: plugins. As a regular browser user you are hardly ever reminded of their existence, yet over time I learned that they have a very significant impact on browser’s stability and memory usage. For Adblock Plus, a significant percentage of all reported issues is related to plugins. Part of the problem is the fact that plugins are basically independent programs and the browser has hardly any control over what they do.

But things are going to improve. Early in the Firefox 3 development cycle a bunch of changes were made to make plugin support more stable (something that will hopefully decrease the number of plugin-related Adblock Plus complaints significantly). There was even some discussion about making all communication between the user and the plugin go through the browser rather than giving the plugin some space it can do anything with, and I hope that this will still be implemented after Firefox 3 is released. In the meantime, I was very pleased to discover that Firefox 3 now lists plugins in the Add-on Manager and allows disabling them without jumping through any hoops.

And today I saw that the project dedicated to measuring CPU usage of plugins actually released some working code. Ok, the code is a patch for Mozilla’s codebase and hardly very useful in the current form. However, I hope that Mozilla will adopt some of this code to make sure that extensions can monitor what plugins do. The easier it will become to discover the flaws in plugins, the harder it will be for plugin makers to get away with them.

The complaint about CPU hungry Flash movies isn’t new, I hear about it all the time. However, I never actually noticed this issue myself, probably because it simply wasn’t noticeable on my computer. Until a few days ago my father asked me about a site where Firefox “wouldn’t work properly.” This manifested itself in maxed out CPU which made doing anything almost impossible until you closed the site again. Even on my computer opening this site gives me constant 40% CPU use. The source of the problem wasn’t hard to find — the site’s logo, a pretty simple 440×120 animation. Once it was added to Adblock Plus filters everything was fine again.

I think that something is seriously wrong here. We cannot expect the user to find out what is slowing down his computer, usually he will have neither the knowledge nor the right tools. In the worst case he will simply blame Firefox (after all, Firefox appears in the Task Manager and not Flash). Unfortunately, we cannot blame it on the creators of the Flash movie either, they are usually not programmers and don’t know better. But maybe the development environment should have warned them about using an approach that will burn CPU cycles excessively. Or the Flash plugin should have limited the amount of processing power the animation is allowed to consume. The latter is probably not too popular with Adobe given that it tries to position Flash for web application development — the more reason for browser developers to implement an additional failsafe and to give users a simple way to identify and disable the misbehaving plugin similarly to how it is already done for scripts.


Comment [3]

  1. eupator · 2007-12-15 07:20 · #

    That’s one of the reasons why Flashblock is so useful. (How does the project of integrating Flashblock functionality into ABP fare, by the way?) It is, of course, perfectly possible to make the user’s life miserable without using any plugins – e.g. recently a newspaper I read introduced a news ticker which was implemented in such a horribly inefficient way that it took me a few minutes just to block the responsible piece of Javascript. (Firefox, for some reason, didn’t ask me whether to kill the script, despite the fact it turned the browser into crawl.)

    It’s sad that Mozilla, for so many years, didn’t bother to make a better NPAPI replacement or to make it possible to run plugins in a separate address space, like Konqueror does, which would prevent plugins from crashing or hanging the browser.

  2. BenoitRen · 2007-12-16 04:53 · #

    And don’t forget about the possible security vulnerabilities caused by plug-ins.

    Flash runs in its own sandbox, and if Flash is compromised, you’re boned. Gecko can’t do anything about that.

    Same deal for Adobe’s PDF plug-in. I think most people have heard about that one.

    Reply from Wladimir Palant:

    Everything can have security vulnerabilities. Main problem is that Flash for example has nothing resembling automatic update (and Java’s update reminders are largely ignored). So it can take a very long while until everybody updated to a secure version. Mozilla makes a huge effort keeping Firefox secure, and it is all for nothing if the same doesn’t happen for plugins.

  3. Marvin · 2008-02-03 17:32 · #

    @Wladimir: A minor Adblock Plus-related complaint … ;) In Firefox 3 on the Mac, the shortcut Command-Shift-B does no longer open the ‘blockable items’ list of AdBlock Plus but the new Firefox bookmark library. Could you therere please add a different shortcut to Adblock Plus?

    Reply from Wladimir Palant:

    I know – it is the same on Windows. You can change the keyboard shortcut yourself ( or wait for me to change the default. I want Firefox 3 to be a little more finalized before I start changing the default that will affect all applications.

Commenting is closed for this article.