Bug 759699 - The MessagesDisplayed event is fired only for large conversations, r=clokep.

This commit is contained in:
Florian Quèze 2012-05-31 12:50:31 +02:00
Родитель a8e3f94552
Коммит b20a383fc4
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -289,6 +289,9 @@
if (Date.now() - begin > 40)
break;
}
let event = document.createEvent("UIEvents");
event.initUIEvent("MessagesDisplayed", false, false, window, 0);
this.dispatchEvent(event);
if (i < max - 1) {
this._nextPendingMessageIndex = i + 1;
if (this.progressBar) {
@ -300,9 +303,6 @@
this.progressBar.max = max;
this.progressBar.value = this._nextPendingMessageIndex;
}
let event = document.createEvent("UIEvents");
event.initUIEvent("MessagesDisplayed", false, false, window, 0);
this.dispatchEvent(event);
Services.tm.mainThread.dispatch(this.displayPendingMessages.bind(this),
Ci.nsIEventTarget.DISPATCH_NORMAL);
return;