rem: mimeType = sniffer.getMIMETypeFromContent (this.mBytes, this.mCountRead); 
add: mimeType = sniffer.getMIMETypeFromContent (aRequest, this.mBytes, this.mCountRead); 
context:   onStopRequest : function (aRequest, aContext, aStatusCode) {    var httpChannel = this.mChannel.QueryInterface(Components.interfaces.nsIHttpChannel);    if ((httpChannel && httpChannel.requestSucceeded) &&        Components.isSuccessCode(aStatusCode) &&        this.mCountRead > 0)    {      var dataurl;      // XXX - arbitrary size beyond which we won't store a favicon.  This is /extremely/      // generous, and is probably too high.      if (this.mCountRead > 16384) {        dataurl = "data:";      // hack meaning "pretend this doesn't exist"      } else {        // get us a mime type for this        var mimeType = null;        const nsICategoryManager = Components.interfaces.nsICategoryManager;        const nsIContentSniffer = Components.interfaces.nsIContentSniffer;        var catMgr = Components.classes["@mozilla.org/categorymanager;1"].getService(nsICategoryManager);        var sniffers = catMgr.enumerateCategory("content-sniffing-services");        while (mimeType == null && sniffers.hasMoreElements()) {          var snifferCID = sniffers.getNext().QueryInterface(Components.interfaces.nsISupportsCString).toString();          var sniffer = Components.classes[snifferCID].getService(nsIContentSniffer);          try {            mimeType = sniffer.getMIMETypeFromContent (this.mBytes, this.mCountRead);          } catch (e) {            mimeType = null;            // ignore          }        }      }      if (mimeType == null) {        BMSVC.updateBookmarkIcon(this.mURI, null, null, 0);      } else {        BMSVC.updateBookmarkIcon(this.mURI, mimeType, this.mBytes, this.mCountRead);      }    }    this.mChannel = null;  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a381b0935f403e98a80a05f9eb11675b4ae97655/bookmarks.js/buggy/browser/components/bookmarks/content/bookmarks.js