Post details: XUL - Mozilla Application Framework
2007-02-27
XUL - Mozilla Application Framework
This is a presentation about XUL and Mozilla Application Framework.
Presented it at DERI Reading group some time ago. Now putting some slides online and this is the first of them.
[ XUL + RDF + JavaScript + CSS ] forms a framework used to build all Mozilla applications and Firefox, SeaMonkey, Thunderbird, ... extensions. There is also XBL and XPCOM for more demanding applications. It is interesting that this framework is one of first widespread uses of RDF (even though you might not be aware that it has RDF under the hood).
"Harnessing the Mozilla Platform" - a presentation by Brian King - contains a more detailed description of the Mozilla Application Framework, including this architecture diagram:
![]()
An interesting and promising development is PyXPCOM which lets you access XPCOM objects from Python, to create your own XPCOM components and to embed Gecko engine in Python application.
It allows to write Mozilla applications in Python, which I would prefer over JavaScript.
Question: according to the Mozilla architecture figure above the script layer can be JavaScript or Python. Does this mean that Firefox extensions can be written in Python now?
Answer: No, you should not write Firefox extensions in Python. Firefox does not come with PyXPCOM built-in and you would have to build it yourself in order for such extensions to run. See more details in comments. Thanks, Brendan!
Comments, Pingbacks:
No, not unless you also ensure that C-Python is equipped (the right version, and for the user's OS -- harder on Windows, obviously), and you ship the necessary Python XPCOM DLL. We don't ship these things with Firefox, as they are large and would bloat the download for millions of users who don't need them.
/be
This post has 10 feedbacks awaiting moderation...
Leave a comment:
captsolo weblog
See also:
- My homepage (captsolo.net)
- @CaptSolo on Twitter
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | |||||
Search
Gallery
www.flickr.com
|
Categories
Archives
- August 2008 (1)
- July 2008 (4)
- June 2008 (1)
- May 2008 (5)
- April 2008 (2)
- March 2008 (2)
- February 2008 (2)
- January 2008 (1)
- December 2007 (1)
- November 2007 (2)
- October 2007 (5)
- September 2007 (4)
- More...
- more...

