rem: if ("getBrowserURL" in window) 
add: var app = getService("@mozilla.org/xre/app-info;1", "nsIXULAppInfo"); if (app) {  switch (app.ID) { case "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}": client.host = "Firefox"; if (compareVersions(app.version, "1.4") <= 0) client.hostCompat.typeChromeBrowser = true; break; case "{" + __cz_guid + "}":  client.host = "XULrunner"; client.hostCompat.typeChromeBrowser = true; break; case "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}": client.host = "Mozilla"; client.hostCompat.typeChromeBrowser = true; break; default: client.host = ""; } } else if ("getBrowserURL" in window) 
context: function initApplicationCompatibility(){    // This routine does nothing more than tweak the UI based on the host    // application.    // Set up simple host and platform information.    client.host = "Unknown";    if ("getBrowserURL" in window)    {        var url = getBrowserURL();        if (url == "chrome://navigator/content/navigator.xul")            client.host = "Mozilla";        else if (url == "chrome://browser/content/browser.xul")            client.host = "Firefox";        else            client.host = ""; // We don't know this host. Show an error later.    }    else    {        client.host = "XULrunner";    }    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";    if (navigator.platform.search(/os\/2/i) > -1)        client.platform = "OS/2";    client.hostPlatform = client.host + client.platform;    CIRCServer.prototype.OS_RPLY = navigator.oscpu + " (" +                                   navigator.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";    else        client.lineEnd = "\n";}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5b921ea9937bce0b9bea86d1bf3c26db398ba003/static.js/clean/extensions/irc/xul/content/static.js