rem: if (w && ("client" in w) && ("initialized" in w.client) && 
add: if (w && ("client" in w) && ("initialized" in w.client) && 
context: function irccl_doContent(contentType, preferred, request, contentHandler, count){    var e;    var channel = request.QueryInterface(nsIChannel);        var wmClass = Components.classes[MEDIATOR_CONTRACTID];    var windowManager = wmClass.getService(nsIWindowMediator);        var assClass = Components.classes[ASS_CONTRACTID];    var ass = assClass.getService(nsIAppShellService);    hiddenWin = ass.hiddenDOMWindow;        // Ok, not starting currently, so check if we've got existing windows.    var w = windowManager.getMostRecentWindow("irc:chatzilla");        // Claiming that a ChatZilla window is loading.    if ("ChatZillaStarting" in hiddenWin)    {        dump("cz-service: ChatZilla claiming to be starting.\n");        if (w && ("client" in w) && ("initialized" in w.client) &&             w.client.initialized)        {            dump("cz-service: It lied. It's finished starting.\n");            // It's actually loaded ok.            delete hiddenWin.ChatZillaStarting;        }    }        if ("ChatZillaStarting" in hiddenWin)    {        count = count || 0;                if ((new Date() - hiddenWin.ChatZillaStarting) > 10000)        {            dump("cz-service: Continuing to be unable to talk to existing window!\n");        }        else        {            //dump("cz-service: **** Try: " + count + ", delay: " + (new Date() - hiddenWin.ChatZillaStarting) + "\n");                        // We have a ChatZilla window, but we're still loading.            hiddenWin.setTimeout(function wrapper(t, count) {                    t.doContent(contentType, preferred, request, contentHandler, count + 1);                }, 250, this, count);            return true;        }    }        // We have a window.    if (w)    {        dump("cz-service: Existing, fully loaded window. Using.\n");        // Window is working and initialized ok. Use it.        w.focus();        w.gotoIRCURL(channel.URI.spec);        return true;    }        dump("cz-service: No windows, starting new one.\n");    // Ok, no available window, loading or otherwise, so start ChatZilla.    var args = new Object();    args.url = channel.URI.spec;        hiddenWin.ChatZillaStarting = new Date();    hiddenWin.openDialog("chrome://chatzilla/content/chatzilla.xul", "_blank",                 "chrome,menubar,toolbar,status,resizable,dialog=no",                 args);        return true;}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/00b6cdf954399a8f3562bddaefd3164388596abb/chatzilla-service.js/clean/js/lib/chatzilla-service.js