rem: if (client.getConnectionCount() == 0) 
add: if (!("getConnectionCount" in client) || client.getConnectionCount() == 0) { 
context: function onClose(){    if ("userClose" in client && client.userClose)        return true;        client.userClose = true;    client.currentObject.display (getMsg("cli_closing"), "INFO");    if (client.getConnectionCount() == 0)        /* if we're not connected to anything, just close the window */        return true;    /* otherwise, try to close out gracefully */    client.quit (client.userAgent);    return false;}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/ec1f57a2df47ea77b6ce245c6e2bd99b25d52195/handlers.js/buggy/xul/content/handlers.js