зеркало из https://github.com/mozilla/gecko-dev.git
Bug 306482 - Force async DNS callback onto the main thread, because the DOM sucks.
ChatZilla only. r=rginda
This commit is contained in:
Родитель
ded946023a
Коммит
d085a7edd6
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче