rem: client.host = "Mozilla"; if (!windowMenu.firstChild) client.host = "Firefox"; 
add: client.host = "Unknown"; if ("getBrowserURL" in window) { var url = getBrowserURL(); if (url == "chrome: client.host = "Mozilla"; else if (url == "chrome: client.host = "Firefox"; else showErrorDlg(getMsg(MSG_ERR_UNKNOWN_HOST, url)); } else { client.host = "XULrunner"; } 
context: function initApplicationCompatibility(){    // This routine does nothing more than tweak the UI based on the host    // application.    var windowMenu = document.getElementById("windowMenu");    // Set up simple host and platform information.    client.host = "Mozilla";    if (!windowMenu.firstChild)        client.host = "Firefox";    client.platform = "Unknown";    if (navigator.platform.search(/mac/i) > -1)        client.platform = "Mac";    if (navigator.platform.search(/win/i) > -1)        client.platform = "Windows";    if (navigator.platform.search(/linux/i) > -1)        client.platform = "Linux";    client.hostPlatform = client.host + client.platform;    CIRCServer.prototype.OS_RPLY = navigator.oscpu + " (" +                                   navigator.platform + ")";    CIRCServer.prototype.HOST_RPLY = client.host + ", " + client.platform;    // Windows likes \r\n line endings, as wussy-notepad can't cope with just    // \n logs.    if (client.platform == "Windows")        client.lineEnd = "\r\n";    // The menus and the component bar need to be hidden on some hosts.    var winMenu   = document.getElementById("windowMenu");    var tasksMenu = document.getElementById("tasksMenu");    var toolsMenu = document.getElementById("mainmenu:tools");    var comBar    = document.getElementById("component-bar");    if (client.host == "Firefox") {        tasksMenu.parentNode.removeChild(tasksMenu);        winMenu.parentNode.removeChild(winMenu);    } else {        comBar.collapsed = false;    }    if ((client.host != "Firefox") || (client.platform == "Linux")) {        toolsMenu.parentNode.removeChild(toolsMenu);    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/82a4c8999a77708bf4311696d0645ae1f30121ff/static.js/clean/extensions/irc/xul/content/static.js