Bug 398300. Places utils.js instantiates livemark service on startup, but could avoid it. r=mano, a=beltzner

This commit is contained in:
sayrer@gmail.com 2007-10-03 00:12:40 -07:00
parent d736fb5c08
commit 85df010fad

View File

@ -408,8 +408,10 @@ var PlacesUtils = {
* @returns true if the node is a livemark container item
*/
nodeIsLivemarkContainer: function PU_nodeIsLivemarkContainer(aNode) {
// Use the annotations service directly to avoid instantiating
// the Livemark service on startup. (bug 398300)
return this.nodeIsFolder(aNode) &&
this.livemarks.isLivemark(aNode.itemId);
this._annotations.itemHasAnnotation(aNode, LMANNO_FEEDURI);
},
/**