rem: gLogView = document.getElementById("logView");   gLogView.docShell.allowJavascript = false;    gSpamSettings.ensureLogFile();  gLogView.setAttribute("src", gSpamSettings.logURL); 
add: if (gLogFile.exists()) {  ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); gLogView.setAttribute("src", ioService.newFileURI(gLogFile).spec); } 
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