зеркало из https://github.com/mozilla/pjs.git
Bug 31711, splitting up a try into two. r=ben@netscape.com
This commit is contained in:
Родитель
a0d20ea7f0
Коммит
4698d92583
|
@ -193,14 +193,21 @@ function Shutdown()
|
|||
var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();
|
||||
if (bmks) bmks = bmks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
|
||||
if (bmks) bmks.Flush();
|
||||
// give history a change at flushing to disk also
|
||||
var history = getService( "component://netscape/browser/global-history", "nsIRDFRemoteDataSource" );
|
||||
if (history)
|
||||
history.Flush();
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
}
|
||||
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)
|
||||
{
|
||||
}
|
||||
|
||||
// Close the app core.
|
||||
if ( appCore )
|
||||
appCore.close();
|
||||
|
|
Загрузка…
Ссылка в новой задаче