Fix bug # 20542: make global history flush-able, and try and flush in on Shutdown()

This commit is contained in:
rjc%netscape.com 2006-09-14 05:44:14 +00:00
Родитель d461064185
Коммит 63c8622b03
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -164,6 +164,16 @@ function Shutdown()
{
}
try
{
// give history a change at flushing to disk also
var history = getService( "component://netscape/browser/global-history", "nsIRDFRemoteDataSource" );
if (history) history.Flush();
}
catch (ex)
{
}
if ( appCore )
appCore.close();
}