rem: if ((window._content.location.href) && (window._content.location.href != "")) { try {  var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); if (bmks)	bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService); if (bmks)	bmks.UpdateBookmarkLastVisitedDate(window._content.location.href, window._content.document.characterSet); } catch(ex) { debug("failed to update bookmark last visited date.\n"); } } 
add: var url = getWebNavigation().currentURI.spec; if (url) { try {  var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIBookmarksService);  bmks.UpdateBookmarkLastVisitedDate(url, _content.document.characterSet); } catch (ex) { debug("failed to update bookmark last visited date.\n"); } } 
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["@mozilla.org/browser/bookmarks-service;1"].getService();			if (bmks)	bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);			if (bmks)	bmks.UpdateBookmarkLastVisitedDate(window._content.location.href, window._content.document.characterSet);		}		catch(ex)		{			debug("failed to update bookmark last visited date.\n");		}	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ff18b315dc97c7e016fac570eaedf8ab9617245b/navigator.js/clean/xpfe/browser/resources/content/navigator.js