This is a mirror of official site: http://jasper-net.blogspot.com/

Build your own browser with Chromeless

| Sunday, December 19, 2010
Chromeless is an experimental way of letting you build a browser UI using nothing but HTML but this could be the way of the future making web apps look exactly how you want them to look.

This is another of those weird or wonderful, depending on your point of view,` projects from Mozilla Labs. Chromeless 0.1 is now available for download and what it does is allow you to build your own custom browser using nothing but HTML and JavaScript. Well to be more accurate you don't actually build a new browser more like encapsulate the existing Firefox browser.

The overall architecture of Firefox is still something of a well kept secret in the wider computing world. It uses an application framework that renders the user interface as specified using XUL, an XML based markup language.  You can use XUL and its associated code framework XPCOM to build your own applications which can be run using XULRunner.
Basically when Firefox starts up the Gecko rendering engine loads the XUL specification of the browser's user interface.  What Chromeless does is replace the XUL specification by one built using HTML and JavaScript. The HTML page is however special in that it can access facilities that "client" HTML pages can't such as CommonJS modules (taken from Jetpack)  and the browsers internal state.  

The latest, admittedly early, beta supports the following features:
  • Track the page load progress of inner browsers
  • Receive notification about the security state of Web pages (whether a page is served over SSL)
  • Capture images from DOM fragments
  • Toggle to full screen mode
  • Log messages to the console
  • Save data to the user profile
  • Convert user input into valid URLs
  • An experimental API to support the Background loading of web pages
  • Support for Windows, OS X, and Linux

Read more: I Programmer
Read more: Mozilla Labs

Posted via email from .NET Info

0 comments: