mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 384667 - AT-SPI events not generated for all Firefox progress bars.
r=mconnor
This commit is contained in:
parent
c9cba31304
commit
67c21461e6
@ -169,7 +169,7 @@
|
|||||||
<xul:hbox flex="1">
|
<xul:hbox flex="1">
|
||||||
<xul:vbox flex="1">
|
<xul:vbox flex="1">
|
||||||
<xul:label xbl:inherits="value=target" crop="center"/>
|
<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"/>
|
xbl:inherits="value=progress,mode=progressmode"/>
|
||||||
</xul:vbox>
|
</xul:vbox>
|
||||||
<xul:vbox pack="start">
|
<xul:vbox pack="start">
|
||||||
@ -310,7 +310,7 @@
|
|||||||
<xul:hbox flex="1">
|
<xul:hbox flex="1">
|
||||||
<xul:vbox flex="1">
|
<xul:vbox flex="1">
|
||||||
<xul:label xbl:inherits="value=target" crop="center"/>
|
<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"/>
|
xbl:inherits="value=progress,mode=progressmode"/>
|
||||||
</xul:vbox>
|
</xul:vbox>
|
||||||
<xul:vbox pack="start">
|
<xul:vbox pack="start">
|
||||||
|
@ -433,6 +433,12 @@ function onUpdateProgress()
|
|||||||
// Update progress
|
// Update progress
|
||||||
getDownload(dl.id).setAttribute("progress", dl.percentComplete);
|
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
|
// gActiveDownloads is screwed so it's possible
|
||||||
// to have more files than we're really downloading.
|
// to have more files than we're really downloading.
|
||||||
// The good news is that those files have size==0.
|
// The good news is that those files have size==0.
|
||||||
|
Loading…
Reference in New Issue
Block a user