rem: gLogJunk = document.getElementById("logJunk"); gLogJunk.checked = gSpamSettings.loggingEnabled; 
add: var directoryService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); gLogFile = directoryService.get("ProfD", Components.interfaces.nsIFile); gLogFile.append("junklog.html"); 
context: function onLoad(){  gSpamSettings = window.arguments[0].spamSettings;  gLogJunk = document.getElementById("logJunk");  gLogJunk.checked = gSpamSettings.loggingEnabled;  gLogView = document.getElementById("logView");  // for security, disable JS  gLogView.docShell.allowJavascript = false;  // if log doesn't exist, this will create an empty file on disk  // otherwise, the user will get an error that the file doesn't exist  gSpamSettings.ensureLogFile();  gLogView.setAttribute("src", gSpamSettings.logURL);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/ec8f06f7cbb536166e79eb5870ea48aef4132781/junkLog.js/buggy/mailnews/base/resources/content/junkLog.js