rem: try {  var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); if (bmks)	bmks = bmks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); if (bmks)	bmks.Flush(); } catch (ex) { } try {  var history = getService( "@mozilla.org/browser/global-history;1", "nsIRDFRemoteDataSource" ); if (history) history.Flush(); } catch (ex) { }  
add: try {  var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIRDFRemoteDataSource); bmks.Flush(); } catch (ex) { }  try {  var history = Components.classes["@mozilla.org/browser/global-history;1"] .getService(Components.interfaces.nsIRDFRemoteDataSource); history.Flush(); } catch (ex) { }  
context: function Shutdown(){	try	{		// If bookmarks are dirty, flush 'em to disk		var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService();		if (bmks)	bmks = bmks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);		if (bmks)	bmks.Flush();    	}	catch (ex)	{	}	try	{		// give history a change at flushing to disk also                               		var history = getService( "@mozilla.org/browser/global-history;1", "nsIRDFRemoteDataSource" );    		if (history)          		history.Flush();   	}	catch (ex)	{	}	  // Close the app core.  if ( appCore )    appCore.close();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/d9c8cae48df382ee716adf2c4fe0471ee7e7a96b/navigator.js/clean/suite/browser/navigator.js