var sourceDir; if ((client.host == "Firefox") || (client.host == "Flock")) { sourceDir = getSpecialDirectory("ProfD"); sourceDir.append("extensions"); sourceDir.append("{" + __cz_guid + "}"); sourceDir.append("defaults"); } else if (client.host == "XULrunner") { sourceDir = getSpecialDirectory("resource:app"); sourceDir.append("chrome"); sourceDir.append("icons"); } else { 
if (!client.hostCompat.needToCopyIcons) 
function initIcons(){    // Make sure we got the ChatZilla icon(s) in place first.    const iconName = "chatzilla-window";    const suffixes = [".ico", ".xpm", "16.xpm"];    /* when installing on Mozilla, the XPI has the power to put the icons where     * they are needed - in Firefox, it doesn't. So we move them here, instead.     * In XULRunner, things are more fun, as we're not an extension.     */    var sourceDir;    if ((client.host == "Firefox") || (client.host == "Flock"))    {        sourceDir = getSpecialDirectory("ProfD");        sourceDir.append("extensions");        sourceDir.append("{" + __cz_guid + "}");        sourceDir.append("defaults");    }    else if (client.host == "XULrunner")    {        sourceDir = getSpecialDirectory("resource:app");        sourceDir.append("chrome");        sourceDir.append("icons");    }    else    {        return;    }    var destDir = getSpecialDirectory("AChrom");    destDir.append("icons");    destDir.append("default");    if (!destDir.exists())    {        try        {            mkdir(destDir);        }        catch(ex)        {            return;        }    }    for (var i = 0; i < suffixes.length; i++)    {        var iconDest = destDir.clone();        iconDest.append(iconName + suffixes[i]);        var iconSrc = sourceDir.clone();        iconSrc.append(iconName + suffixes[i]);        if (iconSrc.exists() && !iconDest.exists())        {            try            {                iconSrc.copyTo(iconDest.parent, iconDest.leafName);            }            catch(ex){}        }    }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/8a77b2c249aac13c842ca5906ac089a37ba656e3/static.js/buggy/extensions/irc/xul/content/static.js