12.3. Persisting Window State

Similar to the overlay system and chrome registry, but far simpler, is Mozilla's GUI persistence system. This system allows the desktop position and location of Mozilla windows to be remembered after the application is shut down. It can also be used to store any kind of noncritical information, for any application. All such information is stored on the local computer.

The persisting system consists of one RDF file, one XUL attribute, and some automatic processing by the Mozilla Platform. It records the state (the value) of one or more attributes for specific XUL tags. Sometimes this is done automatically, and sometimes it requires a hint from the application programmer. Because an attribute can contain an arbitrary ...

Get Rapid Application Development with Mozilla™ 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.