title: Firefox extension observing response
body: <p>I am trying using code </p>
  
  <pre class="lang-js prettyprint-override"><code>// This is an active module of the goelvivek (8) Add-on
  exports.main = function() {
    var httpRequestObserver =  
    {  
      observe: function(subject, topic, data)   
      { 
        if (topic == "http-on-examine-response") {  
          if(console)
            console.log(data);
        }  
      }  
    }; 
    var {Cc, Ci, Cr} = require("chrome");
    var observer = require("observer-service");   
    observerService = Components.classes["@mozilla.org/observer-service;1"].  
      getService(Components.interfaces.nsIObserverService);  
      observerService.addObserver(httpRequestObserver, "http-on-examine-response", false);
  };
  </code></pre>
  
  <p>but line <code>console.log(data);</code> is not printing any thing in console log. why ?</p>