rem: if (client.host == "Firefox") 
add: if ((client.host == "Firefox") || (client.host == "Flock")) 
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.     * In XULRunner, things are more fun, as we're not an extension.     */    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    {        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){}        }    }}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/cc8b7f1e33e50c690da01c968e5f11450c374c03/static.js/clean/xul/content/static.js