Among the mentions of the expected new products and improvements in the Mozilla Firefox browser in runet, there is almost no information on mozStorage, which allows the developer of the XPCOM extension to use the full power of SQLite. I propose to pay a little attention to this interesting tool.
What is mozStorage?This is a wrapper around
SQLite designed for use in XPCOM applications, for example, in Firefox, Thunderbird, Mozilla Suite or Sunbird. Through mozStorage, the developer will be able to access the SQLite database directly from JavaScript or C ++ extension code. The advantages of SQLite as a browser storage backend are obvious:
Full SQL (SQL92), subqueries, transactions, triggers, etc .;
does not require administration;
all data is contained in a single file that can be transferred to different platforms;
the small size of the source code (less than 250K), which makes SQLite suitable for use in mobile devices;
acceptable speed;
lack of licensing restrictions;
good documentation.
It is assumed that mozStorage will be part of the Gecko 1.9 engine, on which the third version of Firefox will be built. In the meantime, this did not happen, you can download and install the appropriate
extension and see examples on the site
developer.mozilla.org .
')
What is mozStorage for?The need for mozStorage is historically associated with the development of so-called
Places , such advanced bookmarks integrated with the history of surfing, which we also hope to wait in the third version of Firefox. This system, according to the director of development at Mozilla, Mike Schroeffer, will structure the network habitat of the user and greatly facilitate navigation through it. It’s better to talk about bookmarks in general and about Places in particular, as well as about their place in the webdvanol, if readers are interested.
Already we can assume that the database integrated into the browser can serve as the basis for a fairly wide range of innovative applications relating to various aspects of life and networking. It is logical, for example, to use databases in user interfaces of server application management systems for solving synchronization problems, preliminary and intermediate data processing. There is also a whole class of analytical tasks, data for which it is advisable to keep on hand: stock reports, various statistics, operational information about complex technological processes, etc. Report on such data may be needed at any time, regardless of the ability to connect to the network. It is appropriate to recall the presence in Firefox of wide possibilities of information visualization thanks to the support of a whole arsenal of actual technologies based on open standards - XPCOM, XUL, CSS, SVG, XBL, XSLT, RDF, JavaScript ...
In conclusion, it should be noted that with the introduction of mozStorage, Firefox browser becomes even more interesting, an adult platform. And the creative energy of web developers could theoretically turn it into the future, for example, into a portable mobile office with functionality that goes far beyond the concept of “web page viewer”, but is easily accessible on any nearby OS and fits on a compact flash drive.