From bd406981e5af371af3b728c1f720bca8564c0d0f Mon Sep 17 00:00:00 2001 From: "sayrer%gmail.com" Date: Wed, 3 Oct 2007 07:12:40 +0000 Subject: [PATCH] Bug 398300. Places utils.js instantiates livemark service on startup, but could avoid it. r=mano, a=beltzner git-svn-id: svn://10.0.0.236/trunk@237169 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/components/places/content/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/browser/components/places/content/utils.js b/mozilla/browser/components/places/content/utils.js index 2c8da3e42f5..1bec3327976 100644 --- a/mozilla/browser/components/places/content/utils.js +++ b/mozilla/browser/components/places/content/utils.js @@ -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); }, /**