The reviewer who approved CoLT over at the official Mozilla add-ons site pointed me to a helpful XUL element: prefwindow. This element, along with several other related ones, makes handling extension preferences super easy. Way back when I first started writing extensions (back in the Firefox 1.0 days), this mechanism wasn’t available. For some reason, it slipped by me when it was introduced in 1.5.
I may try to replace my preference-handling code in both CoLT and Googlebar Lite with this method. Doing so should simplify my code considerably, reducing the footprint of each extension in the process. Making these updates will take time, but I think the end result will be worth the time investment.
A new build of Googlebar Lite is now available. This release has a bunch of fixes and changes:
- Major code cleanup. The global JavaScript namespace is no longer polluted with all of Googlebar Lite’s variable and function names, and code has been made more efficient in some cases.
- Search terms are now cleared when exiting private browsing mode
- Bumped the
maxVersion to 3.6.* to support Firefox 3.6 builds
- The hidden preference for Google’s sandbox search engine has been removed, since Google is no longer offering this sandbox to the public
- Updated the Russian (ru-RU) locale
- Updated the Chinese Traditional (zh-TW) locale
- Updated the Czech (cs-CZ) locale
- Bug Fix: The “single click in search box selects all search terms” option now uses native Firefox functionality, fixing several auto-selection problems in Linux
- Bug Fix: Dragging empty text to the search box no longer causes a blank entry to be added to the search history
- Bug Fix: Dragging text into the search box now opens a new tab if the “open search results in a new tab” and “automatically search on drag and drop” options are both set
- Bug Fix: Search terms are now cleared properly after customizing the Firefox toolbars
Since there are substantial code changes in this release, please let me know if you spot any bugs.
A new build of CoLT is now available, adding support for Firefox 3.6 builds. As always, let me know if you spot any problems.