Asynchronous file operations, end of support for old browsers · 2012-04-05 16:28 by Wladimir Palant
Starting with Adblock Plus 2.0.4b.3443 reading and saving of patterns.ini and elemhide.css files will be asynchronous (meaning that they won’t delay other operations that Firefox or Adblock Plus might need to do). This approach has a bunch of advantages:
- Firefox startup and shutdown will be faster.
- Adblock Plus Preferences will be more responsive, changing something will no longer cause the browser to hang for a split second.
- The inherently unreliable cache.js file is no longer necessary and will not be used.
There are also some drawbacks which is why it took so long to make this decision:
- First browser window might appear before Adblock Plus managed to read its filters. If that happens, the web pages from the restored session (or the homepage) might have ads. This never happened in my testing but it is possible.
- patterns.ini is no longer saved on browser shutdown, some hit count information might get lost because of that (up to 250 hits).
Known issues (should be fixed soon):
- When updating from an earlier Adblock Plus version, the first-run page might open. Your settings will not be changed.
- Writing elemhide.css might fail in some rare scenarios.
In other news, support for anything before Firefox 8, Thunderbird 8 and SeaMonkey 2.5 has been dropped. I started cleaning up our code using the new platform capabilities and will continue doing so. Also, a work-around for the subscription download issue in Firefox 14 has been implemented.
Commenting is closed for this article.