From 851a527ed4f9e0bbb53782838cc6968c1ce3fafd Mon Sep 17 00:00:00 2001 From: "sspitzer%mozilla.org" Date: Fri, 16 Mar 2007 01:51:01 +0000 Subject: [PATCH] fix for bug #374150: [places] assert when I attempt to right click + bookmark a link: Couldn't select folders because no root node was available. my fix for bug #373719 caused this regression. r=mano --- browser/components/places/content/bookmarkProperties.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/browser/components/places/content/bookmarkProperties.js b/browser/components/places/content/bookmarkProperties.js index f84db618ad8a..aba52da1018f 100755 --- a/browser/components/places/content/bookmarkProperties.js +++ b/browser/components/places/content/bookmarkProperties.js @@ -331,13 +331,18 @@ var BookmarkPropertiesPanel = { this._tm = window.opener.PlacesUtils.tm; this._determineItemInfo(); - this._initFolderTree(); + + // on timeout because of the corresponding setTimeout() + // in the places tree binding's constructor + var self = this; + setTimeout(function() { self._initFolderTree(); }, 0); + this._populateProperties(); this._forceHideRows(); this.validateChanges(); this._updateSize(); }, - + /** * This method initializes the folder tree. */