зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2ca27ba03a
Коммит
a6b1bd486d
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче