<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,9 +35,6 @@
  * ***** END LICENSE BLOCK ***** */
 
 var blgPrefs = {
-  prefs: Components.classes[&quot;@mozilla.org/preferences-service;1&quot;].
-                    getService(Components.interfaces.nsIPrefService).
-                    getBranch(&quot;extensions.bugzillalinkgrabber@bryan.clark.&quot;),
 
   bugzillas : function() {
     var bgs = Components.classes[&quot;@mozilla.org/preferences-service;1&quot;].</diff>
      <filename>content/options.js</filename>
    </modified>
    <modified>
      <diff>@@ -52,17 +52,20 @@ var bugzillalinkgrabber = {
 
   showContextMenu: function(event) {
     if (gContextMenu.onLink &amp;&amp; !gContextMenu.onMailtoLink) {
+      var number = gContextMenu.linkURL.match(/(\d+)/i)[1];
       document.getElementById(&quot;context-bugzillalinkgrabber&quot;).hidden = false;
-      document.getElementById(&quot;context-bugzillalinkgrabber&quot;).setAttribute(&quot;label&quot;, this.strings.getString(&quot;label&quot;).replace(&quot;%s&quot;, gContextMenu.linkURL));
+      document.getElementById(&quot;context-bugzillalinkgrabber&quot;).setAttribute(&quot;label&quot;, this.strings.getString(&quot;label&quot;).replace(&quot;%s&quot;, number));
     }
     else { document.getElementById(&quot;context-bugzillalinkgrabber&quot;).hidden = true; }
   },
 
   onMenuItemCommand: function(linkURL) {
-    var promptService = Components.classes[&quot;@mozilla.org/embedcomp/prompt-service;1&quot;]
-                                  .getService(Components.interfaces.nsIPromptService);
-    promptService.alert(window, this.strings.getString(&quot;helloMessageTitle&quot;),
-                                this.strings.getString(&quot;helloMessage&quot;));
+    try {
+      messenger.launchExternalURL(linkURL);
+    }
+    catch (e) {
+      Application.console.log(e);
+    }
   },
 
   getBugzillas : function() {</diff>
      <filename>content/overlay.js</filename>
    </modified>
    <modified>
      <diff>@@ -46,7 +46,6 @@
 
   &lt;popup id=&quot;messagePaneContext&quot;&gt;
     &lt;menuitem id=&quot;context-bugzillalinkgrabber&quot; label=&quot;&amp;bugzillalinkgrabberContext.label;&quot;
-              accesskey=&quot;&amp;bugzillalinkgrabberContext.accesskey;&quot;
               oncommand=&quot;bugzillalinkgrabber.onMenuItemCommand(gContextMenu.linkURL)&quot;/&gt;
   &lt;/popup&gt;
 &lt;/overlay&gt;</diff>
      <filename>content/thunderbirdOverlay.xul</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,4 @@
 &lt;!ENTITY bugzillalinkgrabberPrefPane.stringpref.label &quot;String Pref&quot;&gt;
 &lt;!ENTITY bugzillalinkgrabber.label &quot;Your localized menuitem&quot;&gt;
 &lt;!ENTITY bugzillalinkgrabberContext.label &quot;Open Bug&quot;&gt;
-&lt;!ENTITY bugzillalinkgrabberContext.accesskey &quot;Y&quot;&gt;
+</diff>
      <filename>locale/en-US/bugzillalinkgrabber.dtd</filename>
    </modified>
    <modified>
      <diff>@@ -2,5 +2,5 @@ helloMessage=Hello World!
 helloMessageTitle=Hello
 prefMessage=Int Pref Value: %d
 extensions.bugzillalinkgrabber.description=Extracts and cleans bugzilla links from Thunderbird Messages
-label=Open Bug '%s'
+label=Open Bug (%s)
 title=Preferences</diff>
      <filename>locale/en-US/bugzillalinkgrabber.properties</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>81214aa92e1d0e8bc3289034f4ccd7a66684749f</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Clark</name>
    <email>clarkbw@gnome.org</email>
  </author>
  <url>http://github.com/clarkbw/thunderbird-bugzilla-link-grabber/commit/13ee82b89c33c87fe2b6891f0a2bdf34bfbdf8e2</url>
  <id>13ee82b89c33c87fe2b6891f0a2bdf34bfbdf8e2</id>
  <committed-date>2008-04-04T07:06:08-07:00</committed-date>
  <authored-date>2008-04-04T07:06:08-07:00</authored-date>
  <message>remove the prefs object from the options.js since we're using Application.prefs now and hopefully Application.extensions.get(ID).prefs soon. bug 426175 was fixed.

cleaned up the context menu strings and removed the accesskey

enabled the onMenuItemCommand to do something and actually open the bug URL</message>
  <tree>b9d20f63174bca3e375473cd204e45ab1286f21f</tree>
  <committer>
    <name>Bryan Clark</name>
    <email>clarkbw@gnome.org</email>
  </committer>
</commit>
