mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
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:
parent
7928e30307
commit
5adbbab640
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user