зеркало из https://github.com/mozilla/pjs.git
Bug 384667 - AT-SPI events not generated for all Firefox progress bars.
r=mconnor
This commit is contained in:
Родитель
432d767217
Коммит
c16fbe17c8
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче