Bug 666790 - addon download progress doorhanger has error when asking permission to install [r=gavin]

This commit is contained in:
Paul O’Shannessy 2011-06-28 11:03:00 -07:00
parent 585a9bcb38
commit a30b7f8b43

View File

@ -1001,7 +1001,7 @@
// undetermined state and then schedule a proper check at the next
// opportunity
this.setProgress(0, -1);
setTimeout(this.updateProgress.bind(this), 0);
this._updateProgressTimeout = setTimeout(this.updateProgress.bind(this), 0);
]]></constructor>
<destructor><![CDATA[
@ -1028,6 +1028,7 @@
this.notification.options.installs.forEach(function(aInstall) {
aInstall.removeListener(this);
}, this);
clearTimeout(this._updateProgressTimeout);
]]></body>
</method>