Create your own Mozilla Extension

Mozilla Extension are browser extension which add some custom functionality to your browser.

First thing you should know about Mozilla extension

  1. They are simple compressed format with extension .XPI
  2. They can be integrated with other products of Mozilla.
  3. Mostly XUL run on Chrome Framework of Mozilla ( Not Google Chrome).
  4. Extension for Firefox 3.6 and above are almost same and supported well
  5. Extension for Firefox 3.6 and below have install.rdf file which help in installation process.
  6. Extension for Firefox 4 has to qualify more security feature ( let us digg deep in later post )

It is very difficult to trace mistakes while building your extension it may take lots of time to figure out what has gone wrong. Simple thing is to keep your URI neat for better understand ultimately reducing complexity( Experience SpeaksSmile ).

Although you can use older format by using install.rdf if you have used it. If you are new to extension building and want to start building your own extension is to use chrome.manifest file to help Mozilla to locate URI in your project and install.rdf direct an instruction to Mozilla browser to install your extension.


install.rdf is an xml file mostly contains all the information about your extension like

<?xml version="1.0"?>
<RDF:RDF xmlns:em=""
  <RDF:Description RDF:about="urn:mozilla:install-manifest"
                   em:name="M S Labs"
                   em:creator="Mandar Shinde;"
                   em:description="Plugin providing wide support to RS-232"
                   em:author="Mandar Shinde"
    <em:targetApplication RDF:resource="rdf:#$41y0G2"/>
  <RDF:Description RDF:about="rdf:#$41y0G2"
                   em:maxVersion="5.*" />

First Part

It Contains information like

  • Name
  • Id
  • Version
  • Author
  • Creator
  • Homepage
  • Description
  • Update Key ( Required in Mozilla Firefox 4 more information in next post) etc..
Second Part


It is all about the description of Platform on which your extension will get install

em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"   Is For Mozilla Firefox , Different products of mozilla have different id for platform specific installation.

  You should have got it up till now..Smile


It Mostly contain your URI location, your contains, your Overlays  in your extension

content        myapp        chrome/content/

This is the most basic thing you need to know while building extension, will be back with more information in next post

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s