Chapter 8. Hack the Chrome Cleanly
Hacks 84-90
This chapter describes how to create and deploy Firefox enhancements properly. Enhancements include skins, themes, extensions, and applications. This chapter covers the creation of JAR and XPI files, their contents, and the web site features that are used to deliver them.
Firefox browser windows (and other Firefox windows) can be compared to the command-line environment. Just as a command-line interface can be used to start many different programs, so too can Firefox windows. They are good places from which to launch other applications or enhancements. Such applications can be started through Firefox’s menu system, the keyboard, or the mouse, and they can be trivial or complex. They can be highly integrated with Firefox, like extensions, or they can be mostly separate, like the DOM Inspector.
The Firefox web browser is also Internet-enabled and is therefore a kind of application portal for applications that are local, remote, or remotely installed. The concept of being able to launch your own application (or simple feature) from a widely used and free application portal like Firefox is very attractive to some service providers. Firefox provides them with an automatic deployment mechanism.
To build a quality enhancement that can be invoked from a Firefox window, the content that makes up that enhancement must be built out of chrome technology : XUL, CSS, JavaScript, and images. That content must then be annotated and bundled up correctly, ...
Get Firefox Hacks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.