Bug 306482 - Force async DNS callback onto the main thread, because the DOM sucks.

ChatZilla only.
r=rginda
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-09-12 19:21:17 +00:00
Родитель ded946023a
Коммит d085a7edd6
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -129,7 +129,11 @@ function dcc_addhost(host, auth)
};
try {
var dnsRecord = this._dnsSvc.asyncResolve(host, false, listener, null);
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);
} catch (ex) {
dd("Error resolving host to IP: " + ex);
}