Share

October 22, 2008

Firefox Bugzilla Search Plugin

All of us use some kind of bug tracking software, here is an example of using the firefox Search Plugin to gain quick access to your bugs.

The 1st version of the Bugzilla was made while i was using FireFox 2. It worked great... here is what I had to do.
  1. Created a a file with the xml below called bugzilla.src
  2. Save an icon called bugzilla.gif with the image to display in to search box
  3. Put both files in firefox search plugin dir
    Mac: /Applications/Firefox.app/Contents/MacOS/searchplugins/
and that is it....

XML File for FF 2
<search action="https://bugs.company.com/show_bug.cgi"
           bugzilla=""
           description="Open a bug by id"
           method="GET"
           searchform="https://bugs.company.com/" 
           version="7.1
           name=">
  <input name="id" user="" />
</search> 


Today while getting ready to create this blog i noticed that is no longer the same xml for FireFox 3.

Here is the updated xml for FF3.

  1. Created a a file with the xml below called bugzilla.xml
  2. Put both files in firefox search plugin dir
Note that this time there is no image file. The xml has the image data in it.

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                          xmlns:
moz="http://www.mozilla.org/2006/browser/search/">
 <ShortName>Bugzilla</ShortName>
 <Description>Load a bugzilla bug by Id</Description>
 <InputEncoding>ISO-8859-1</InputEncoding>
 <Image height="16" width="16">data:image/gif,%01%01%10%10h%05%16(%10%20%01%08%01%01%01%80%80%80%80%80%80%80%80%80%C0%C0%C0%C0%DC%C0%F0%CA%A6%04%04%04%08%08%08%0C%0C%0C%11%11%11%16%16%16%1C%1C%1C%22%22%22)))UUUMMMBBB999%80%7C%FFPP%FF%93%D6%FF%EC%CC%C6%D6%EF%D6%E7%E7%90%A9%AD3f%99%CC3333f3%993%CC3%FFff3fff%99f%CCf%FF%99%993%99f%99%99%99%CC%99%FF%CC%CC3%CCf%CC%99%CC%CC%CC%FF%FFf%FF%99%FF%CC3333f3%993%CC3%FF3333333f33%9933%CC33%FF3f3f33ff3f%993f%CC3f%FF3%993%9933%99f3%99%993%99%CC3%99%FF3%CC3%CC33%CCf3%CC%993%CC%CC3%CC%FF3%FF33%FFf3%FF%993%FF%CC3%FF%FFff3fff%99f%CCf%FFf3f33f3ff3%99f3%CCf3%FFffff3fffff%99ff%CCf%99f%993f%99ff%99%99f%99%CCf%99%FFf%CCf%CC3f%CC%99f%CC%CCf%CC%FFf%FFf%FF3f%FF%99f%FF%CC%CC%FF%FF%CC%99%99%993%99%99%99%99%CC%99%9933%99f%993%CC%99%FF%99f%99f3%993f%99f%99%99f%CC%993%FF%99%993%99%99f%99%99%99%99%99%CC%99%99%FF%99%CC%99%CC3f%CCf%99%CC%99%99%CC%CC%99%CC%FF%99%FF%99%FF3%99%CCf%99%FF%99%99%FF%CC%99%FF%FF%CC%993%CCf%CC%99%CC%CC%993%CC33%CC3f%CC3%99%CC3%CC%CC3%FF%CCf%CCf3%99ff%CCf%99%CCf%CC%99f%FF%CC%99%CC%993%CC%99f%CC%99%99%CC%99%CC%CC%99%FF%CC%CC%CC%CC3%CC%CCf%CC%CC%99%CC%CC%CC%CC%CC%FF%CC%FF%CC%FF3%99%FFf%CC%FF%99%CC%FF%CC%CC%FF%FF%CC3%FFf%FF%99%CC3%FF33%FF3f%FF3%99%FF3%CC%FF3%FF%FFf%FFf3%CCff%FFf%99%FFf%CC%CCf%FF%FF%99%FF%993%FF%99f%FF%99%99%FF%99%CC%FF%99%FF%FF%CC%FF%CC3%FF%CCf%FF%CC%99%FF%CC%CC%FF%CC%FF%FF%FF3%CC%FFf%FF%FF%99%FF%FF%CCff%FFf%FFff%FF%FF%FFff%FFf%FF%FF%FFf!%A5___www%86%86%86%96%96%96%CB%CB%CB%B2%B2%B2%D7%D7%D7%DD%DD%DD%E3%E3%E3%EA%EA%EA%F1%F1%F1%F8%F8%F8%F0%FB%FF%A4%A0%A0%80%80%80%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%13Jnnnnnooooooooon%EA%12%93%99noooooooooooon%9A%9Anoooooooooooon%9A%9A%99n%EAnnnnnooooon%1A%9A%99%99%99%9A%9A%9A%9A%9A%99nooos%1A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9Anoo%1C%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%C3%93on%99%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%9A%C3%93on%9A%9A%9A%9A%1A%F0%EE%99%9A%9A%9A%C3%F0non%9A%9A%9A%1A%FF%FF%FF%07%9A%9A%C3%1Cnoos%9A%9A%9A%C3%BC%07%FF%99%9A%99noooon%9A%9A%9A%C3%F8m%F0%9A%9A%1Cnooooon%99%9A%C3%07m%1C%9A%9Asooooooons%9A%9A%9A%9A%9A%9AnoooooooooJs%1Cnnnoooooooooonoooooooooo</Image>
 <Url type="text/html" method="GET" template="https://bugs.company.com/show_bug.cgi">
  <Param name="id" value="{searchTerms}"/>

 </Url>
 <SearchForm>https://bugs.company.com/</SearchForm>
</OpenSearchDescription>



For more info read: Creating OpenSearch plugins for Firefox