rem: if (client.host != "Firefox") 
add: var sourceDir; if (client.host == "Firefox") { 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 { 
context: 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.     */    if (client.host != "Firefox")        return;    var sourceDir = getSpecialDirectory("ProfD");    sourceDir.append("extensions");    sourceDir.append("{" + __cz_guid + "}");    sourceDir.append("defaults");    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){}        }    }}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/c907d8bdd720c051124b818083f86779fcffd873/static.js/buggy/xul/content/static.js