rem: view.displayHere(getMsg(MSG_LOGFILE_OPENED, getLogPath(view))); 
add: if (!("logFileWrapping" in view) || !view.logFileWrapping) view.displayHere(getMsg(MSG_LOGFILE_OPENED, getLogPath(view))); view.logFileWrapping = false; 
context: function cli_startlog (view){    function getNextLogFileDate()    {        var d = new Date();        d.setMilliseconds(0);        d.setSeconds(0);        d.setMinutes(0);        switch (view.smallestLogInterval)        {            case "h":                return d.setHours(d.getHours() + 1);            case "d":                d.setHours(0);                return d.setDate(d.getDate() + 1);            case "m":                d.setHours(0);                d.setDate(1);                return d.setMonth(d.getMonth() + 1);            case "y":                d.setHours(0);                d.setDate(1);                d.setMonth(0);                return d.setFullYear(d.getFullYear() + 1);        }        //XXXhack: This should work...        return Infinity;    };    const NORMAL_FILE_TYPE = Components.interfaces.nsIFile.NORMAL_FILE_TYPE;    try    {        var file = new LocalFile(view.prefs["logFileName"]);        if (!file.localFile.exists())        {            // futils.umask may be 0022. Result is 0644.            file.localFile.create(NORMAL_FILE_TYPE, 0666 & ~futils.umask);        }        view.logFile = fopen(file.localFile, ">>");        // If we're here, it's safe to say when we should re-open:        view.nextLogFileDate = getNextLogFileDate();    }    catch (ex)    {        view.prefs["log"] = false;        dd("Log file open error: " + formatException(ex));        view.displayHere(getMsg(MSG_LOGFILE_ERROR, getLogPath(view)), MT_ERROR);        return;    }    view.displayHere(getMsg(MSG_LOGFILE_OPENED, getLogPath(view)));}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/836266279a9f9af5975782e9b07bcc166c667379/static.js/buggy/xul/content/static.js