rem: var cs_class = Components.classes['mozilla.consoleservice.1']; 
add: var cs_class = Components.classes['@mozilla.org/consoleservice;1']; 
context: function clear () {    try {        var cs_class = Components.classes['mozilla.consoleservice.1'];        var cs_iface = Components.interfaces.nsIConsoleService;        var cs_isupports = cs_class.getService();        var cs = cs_isupports.QueryInterface(cs_iface);    } catch(exn) {        // Couldn't get the console service for some reason...        // pretend it never happened.        return;    }    cs.logStringMessage("__CLEAR__");	var tree = document.getElementById("console");    var treeChildren = document.getElementById("consoleTreeChildren");	tree.removeChild(treeChildren);	treeChildren = document.createElement ("treechildren");	treeChildren.setAttribute ("id", "consoleTreeChildren");	treeChildren.setAttribute ("flex", "1");	tree.appendChild(treeChildren);  	num_errors=0;    return true;	}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/3cd14f5878a4d92cdc6552fef7d5da6e3e25c539/console.js/buggy/xpfe/components/console/resources/content/console.js