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 2001-11-05 03:12:53 +00:00
Родитель 2b832431c4
Коммит 3f5db97a30
1 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -392,6 +392,21 @@ function Startup()
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)