title: gBrowser.addEventListener: "load" event fired three times
body: <p>I have installed the "hello world" dev example for Firefox extensions as described here:
  <a href="http://blog.mozilla.com/addons/2009/01/28/how-to-develop-a-firefox-extension/" rel="nofollow noreferrer">http://blog.mozilla.com/addons/2009/01/28/how-to-develop-a-firefox-extension/</a></p>
  
  <p>I have modified the anonymous function that gets passed to gBrowser.addEventListener:</p>
  
  <pre><code>gBrowser.addEventListener("load", function (event) {
  
      var t = event.target;
      alert("Content title: " + t.contentTitle);          
  
  }, false);
  </code></pre>
  
  <p>This function is getting called three times for every page load. When I click a link, it fires twice for the current (already loaded page) and once for the new page. </p>
  
  <p>I have uninstalled all other addons (including Firebug) and still it fires 3 times. Does anyone know why this might be?</p>
  
  <p>Thanks Richard</p>