rem:  var bmks = Components.classes["component: if (bmks)	bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService); 
add: var bmks = getService( "component: 
context: function UpdateBookmarksLastVisitedDate(event){	if ((window.content.location.href) && (window.content.location.href != ""))	{		try		{			// if the URL is bookmarked, update its "Last Visited" date			var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();			if (bmks)	bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);			if (bmks)	bmks.UpdateBookmarkLastVisitedDate(window.content.location.href);		}		catch(ex)		{			dump("failed to update bookmark last visited date.\n");		}	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/504dbe197757dfd7174946e37fd3dbb61e55759e/navigator.js/buggy/suite/browser/navigator.js