mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
bug 14824, r=rjc, sr=blake, add timeout at end of Startup() which will call nsBookmarksService::ReadBookmarks()
This commit is contained in:
parent
4d0d5a4094
commit
c3d26e13d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user