rem: .getService(Components.interfaces.nsIProperties) .get("TmpD", Components.interfaces.nsIFile); 
add: .getService(CI("nsIProperties")) .get("TmpD", CI("nsIFile")); file.append("fbug"); if ( !file.exists() ) file.create(CI("nsIFile").DIRECTORY_TYPE, 0776); 
context: function getDumpStream(){	try	{		// OS tmp (e.g., /tmp on linux, C:\Documents and Settings\your userid\Local Settings\Temp on windows)		var file = Components.classes["@mozilla.org/file/directory_service;1"]			.getService(Components.interfaces.nsIProperties)			.get("TmpD", Components.interfaces.nsIFile);		file.append("firebug-service-dump.txt");		file.createUnique(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0666);		var stream = CC("@mozilla.org/network/file-output-stream;1").createInstance(CI("nsIFileOutputStream"));		stream.init(file, 0x04 | 0x08 | 0x20, 664, 0); // write, create, truncate		return stream;	}	catch (exc)	{		ERROR("createDumpStream failed "+exc);	}}
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/cf9c55a0152306a2bda5f3f48b649fcef7a0e765/firebug-service.js/buggy/extension/components/firebug-service.js