выдает следующую ошибку Ошибка: Livemark Service: feed processor received an invalid channel for http://fxfeeds.mozilla.com/ru/firefox/headlines.xml Источник: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsLivemarkService.js Строка: 985 if (this._processor) this._processor.onDataAvailable(aRequest, aContext, aInputStream, aSourceOffset, aCount); }, /** * See nsIRequestObserver.idl */ onStartRequest: function LLL_onStartRequest(aRequest, aContext) { if (this._isAborted) throw Cr.NS_ERROR_UNEXPECTED; var channel = aRequest.QueryInterface(Ci.nsIChannel); // Parse feed data as it comes in this._processor = Cc[FP_CONTRACTID].createInstance(Ci.nsIFeedProcessor); this._processor.listener = this; this._processor.parseAsync(null, channel.URI); try { this._processor.onStartRequest(aRequest, aContext); } catch (ex) { Components.utils.reportError("Livemark Service: feed processor received an invalid channel for " + channel.URI.spec); } }, /** * See nsIRequestObserver.idl */ onStopRequest: function LLL_onStopRequest(aRequest, aContext, aStatus) { if (!Components.isSuccessCode(aStatus)) { this._isAborted = true; this._livemark.locked = false; var lmService = Cc[LS_CONTRACTID].getService(Ci.nsILivemarkService); // One of the reasons we could abort a request is when a livemark is // removed, in such a case the livemark itemId would already be invalid. if (lmService.isLivemark(this._livemark.folderId)) { // Something went wrong, try to load again in a bit this._setResourceTTL(ERROR_EXPIRATION); MarkLivemarkLoadFailed(this._livemark.folderId); } return; } // Set an expiration on the livemark, for reloading the data try { if (this._processor) this._processor.onStopRequest(aRequest, aContext, aStatus); // Calculate a new ttl var channel = aRequest.QueryInterface(Ci.nsICachingChannel); if (channel) { var entryInfo = channel.cacheToken.QueryInterface(Ci.nsICacheEntryInfo); if (entryInfo) { // nsICacheEntryInfo returns value as seconds, // expireTime stores as milliseconds var expireTime = entryInfo.expirationTime * 1000; var nowTime = Date.now(); // note, expireTime can be 0, see bug 383538 if (expireTime > nowTime) { this._setResourceTTL(Math.max((expireTime - nowTime), gExpiration)); return; } } } } catch (ex) { } this._setResourceTTL(this._ttl); }, _setResourceTTL: function LLL__setResourceTTL(aMilliseconds) { var expireTime = Date.now() + aMilliseconds; this._ans.setItemAnnotation(this._livemark.folderId, LMANNO_EXPIRATION, expireTime, 0, Ci.nsIAnnotationService.EXPIRE_NEVER); }, /** * See nsIBadCertListener2 */ notifyCertProblem: function LLL_certProblem(aSocketInfo, aStatus, aTargetSite) { return true; }, /** * See nsISSLErrorListener */ notifySSLError: function LLL_SSLError(aSocketInfo, aError, aTargetSite) { return true; }, /** * See nsIInterfaceRequestor */ getInterface: function LLL_getInterface(aIID) { return this.QueryInterface(aIID); }, /** * See nsISupports.idl */ QueryInterface: function LLL_QueryInterface(aIID) { if (aIID.equals(Ci.nsIFeedResultListener) || aIID.equals(Ci.nsIStreamListener) || aIID.equals(Ci.nsIRequestObserver)|| aIID.equals(Ci.nsINavHistoryBatchCallback) || aIID.equals(Ci.nsIBadCertListener2) || aIID.equals(Ci.nsISSLErrorListener) || aIID.equals(Ci.nsIInterfaceRequestor) || aIID.equals(Ci.nsISupports)) return this; throw Cr.NS_ERROR_NO_INTERFACE; }, } function GenericComponentFactory(aCtor) { this._ctor = aCtor; } GenericComponentFactory.prototype = { _ctor: null, // nsIFactory createInstance: function(aOuter, aIID) { if (aOuter != null) throw Cr.NS_ERROR_NO_AGGREGATION; return (new this._ctor()).QueryInterface(aIID); }, // nsISupports QueryInterface: function(aIID) { if (aIID.equals(Ci.nsIFactory) || aIID.equals(Ci.nsISupports)) return this; throw Cr.NS_ERROR_NO_INTERFACE; }, }; var Module = { QueryInterface: function(aIID) { if (aIID.equals(Ci.nsIModule) || aIID.equals(Ci.nsISupports)) return this; throw Cr.NS_ERROR_NO_INTERFACE; }, getClassObject: function M_getClassObject(aCompMgr, aCID, aIID) { if (!aIID.equals(Ci.nsIFactory)) throw Cr.NS_ERROR_NOT_IMPLEMENTED; if (aCID.equals(LS_CLASSID)) return new GenericComponentFactory(LivemarkService); throw Cr.NS_ERROR_NO_INTERFACE; }, registerSelf: function(aCompMgr, aFile, aLocation, aType) { var cr = aCompMgr.QueryInterface(Ci.nsIComponentRegistrar); cr.registerFactoryLocation(LS_CLASSID, LS_CLASSNAME, LS_CONTRACTID, aFile, aLocation, aType); }, unregisterSelf: function M_unregisterSelf(aCompMgr, aLocation, aType) { var cr = aCompMgr.QueryInterface(Ci.nsIComponentRegistrar); cr.unregisterFactoryLocation(LS_CLASSID, aLocation); }, canUnload: function M_canUnload(aCompMgr) { return true; } }; function NSGetModule(aCompMgr, aFile) { return Module; } |