rem: var history = Components.classes['component: 
add: var history = Components.classes['@mozilla.org/browser/global-history;1']; 
context: function ShowLastPageVisted() {    dump("start of ShowLastPageVisted()\n");    var lastpagevisited = "failure...not set";        var history = Components.classes['component://netscape/browser/global-history'];    if (history) {      history = history.getService();    }    if (history) {      history = history.QueryInterface(Components.interfaces.nsIGlobalHistory);    }    if (history) {      try {	lastpagevisited = history.GetLastPageVisted();	document.getElementById('result').value =  lastpagevisited;      }       catch (ex) {	dump(ex + "\n");	document.getElementById('result').value = "Error check console";      }        }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/96cde4474fe82e4dacdcc727eaebd9308fd70684/history-test.js/buggy/suite/common/history/history-test.js