bug 14824, r=rjc, sr=blake, add timeout at end of Startup() which will call nsBookmarksService::ReadBookmarks()

This commit is contained in:
pchen%netscape.com 2006-09-14 06:00:53 +00:00
parent 4d0d5a4094
commit c3d26e13d4

View File

@ -392,6 +392,21 @@ function Startup()
remoteService.addBrowserInstance(window); remoteService.addBrowserInstance(window);
} }
} }
// now load bookmarks after a delay
setTimeout(LoadBookmarksCallback, 100);
}
function LoadBookmarksCallback()
{
try {
var bmservice = Components.classes["@mozilla.org/browser/bookmarks-service;1"]
.getService(Components.interfaces.nsIBookmarksService);
bmservice.ReadBookmarks();
// tickle personal toolbar to load personal toolbar items
var personalToolbar = document.getElementById("innermostBox");
personalToolbar.builder.rebuild();
} catch (e) {
}
} }
function WindowFocusTimerCallback(element) function WindowFocusTimerCallback(element)