Part of fix for bug # 24416: use temp file when writing out bookmarks to try and reduce loss of data due to any crashes.

This commit is contained in:
rjc%netscape.com 2006-09-14 05:44:10 +00:00
parent 7928e30307
commit 5adbbab640

View File

@ -182,7 +182,19 @@ function createBrowserInstance()
}
}
function Shutdown() {
function Shutdown()
{
try
{
// If bookmarks are dirty, flush 'em to disk
var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();
if (bmks) bmks = bmks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
if (bmks) bmks.Flush();
}
catch (ex)
{
}
// Close the app core.
if ( appCore ) {
appCore.close();