зеркало из https://github.com/mozilla/pjs.git
Bug 347423. Addons: No updates found message not accessible. r=mano, r=pilgrim
This commit is contained in:
Родитель
f760dcd69d
Коммит
5e3f831dea
|
@ -623,10 +623,15 @@
|
||||||
this.hidden = false;
|
this.hidden = false;
|
||||||
this.notifyData = aNotifyData ? aNotifyData : null;
|
this.notifyData = aNotifyData ? aNotifyData : null;
|
||||||
this.closeButton = aShowCloseButton;
|
this.closeButton = aShowCloseButton;
|
||||||
// Fire event for accessibility APIs
|
// Fire event for accessibility APIs after reflow,
|
||||||
var event = document.createEvent("Events");
|
// so that accessibility code sees visible frame for
|
||||||
event.initEvent("AlertActive", true, true);
|
// the notification and can create accessible object for it
|
||||||
this.dispatchEvent(event);
|
function fireA11yAlertEvent(self) {
|
||||||
|
var event = self.ownerDocument.createEvent("Events");
|
||||||
|
event.initEvent("AlertActive", true, true);
|
||||||
|
self.dispatchEvent(event);
|
||||||
|
}
|
||||||
|
setTimeout(fireA11yAlertEvent, 0, this);
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче