зеркало из https://github.com/mozilla/pjs.git
bug 14824, r=rjc, sr=blake, add timeout at end of Startup() which will call nsBookmarksService::ReadBookmarks()
This commit is contained in:
Родитель
2b832431c4
Коммит
3f5db97a30
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче