Bug 384667 - AT-SPI events not generated for all Firefox progress bars.

r=mconnor
This commit is contained in:
Evan.Yan@Sun.COM 2007-06-24 19:45:10 -07:00
Родитель 498d2b1208
Коммит 277dbb0ca1
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -169,7 +169,7 @@
<xul:hbox flex="1">
<xul:vbox flex="1">
<xul:label xbl:inherits="value=target" crop="center"/>
<xul:progressmeter mode="normal" value="0" flex="1"
<xul:progressmeter anonid="progressmeter" mode="normal" value="0" flex="1"
xbl:inherits="value=progress,mode=progressmode"/>
</xul:vbox>
<xul:vbox pack="start">
@ -310,7 +310,7 @@
<xul:hbox flex="1">
<xul:vbox flex="1">
<xul:label xbl:inherits="value=target" crop="center"/>
<xul:progressmeter mode="normal" value="0" flex="1"
<xul:progressmeter anonid="progressmeter" mode="normal" value="0" flex="1"
xbl:inherits="value=progress,mode=progressmode"/>
</xul:vbox>
<xul:vbox pack="start">

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

@ -433,6 +433,12 @@ function onUpdateProgress()
// Update progress
getDownload(dl.id).setAttribute("progress", dl.percentComplete);
// Fire DOM event so that accessible value change events occur
var progressmeter = document.getAnonymousElementByAttribute(getDownload(dl.id), "anonid", "progressmeter");
var event = document.createEvent('Events');
event.initEvent('ValueChange', true, true);
progressmeter.dispatchEvent(event);
// gActiveDownloads is screwed so it's possible
// to have more files than we're really downloading.
// The good news is that those files have size==0.