rem: var dnsRecord = this._dnsSvc.asyncResolve(host, false, listener, null); 
add: const EQS = getService("@mozilla.org/event-queue-service;1", "nsIEventQueueService"); var th = EQS.getSpecialEventQueue(EQS.CURRENT_THREAD_EVENT_QUEUE);  var dnsRecord = this._dnsSvc.asyncResolve(host, false, listener, th); 
context: function dcc_addhost(host, auth){    var me = this;    var listener = {        onLookupComplete: function _onLookupComplete(request, record, status) {            // record == null if it failed. We can't do anything with a failure.            if (record)            {                while (record.hasMore())                    me.addIP(record.getNextAddrAsString(), auth);            }        }    };    try {        var dnsRecord = this._dnsSvc.asyncResolve(host, false, listener, null);    } catch (ex) {        dd("Error resolving host to IP: " + ex);    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d085a7edd6a29f8bb24667ff27d235c139fe5d45/dcc.js/buggy/extensions/irc/js/lib/dcc.js