rem: var bmks = Components.classes["component: 
add: var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); 
context: 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)	{	}	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();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/99b370255ee4c5008d74eaab2956f60fa06206ef/navigator.js/clean/suite/browser/navigator.js