Bug 394253 - Opening DOM inspector enables accessibility globally, r=timeless, aaronlev, sr=neil

This commit is contained in:
surkov.alexander@gmail.com 2007-08-30 01:53:06 -07:00
Родитель 88780ad0b3
Коммит 393512e280
1 изменённых файлов: 4 добавлений и 24 удалений

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

@ -150,18 +150,8 @@
ins:panels="bxDocPanel"
ins:description="Accessible Events">
<ins:filter><![CDATA[
if (!(object instanceof Components.interfaces.nsIDOMDocument))
return false;
try {
var accService =
Components.classes["@mozilla.org/accessibleRetrieval;1"]
.getService(Components.interfaces.nsIAccessibleRetrieval);
return accService.getAttachedAccessibleFor(object);
} catch(e) {
return false;
}
return object instanceof Components.interfaces.nsIDOMDocument &&
"@mozilla.org/accessibleRetrieval;1" in Components.classes;
]]></ins:filter>
</rdf:Description>
</rdf:li>
@ -171,18 +161,8 @@
ins:panels="bxDocPanel"
ins:description="Accessible Tree">
<ins:filter><![CDATA[
if (!(object instanceof Components.interfaces.nsIDOMDocument))
return false;
try {
var accService =
Components.classes["@mozilla.org/accessibleRetrieval;1"]
.getService(Components.interfaces.nsIAccessibleRetrieval);
return accService.getAttachedAccessibleFor(object);
} catch(e) {
return false;
}
return object instanceof Components.interfaces.nsIDOMDocument &&
"@mozilla.org/accessibleRetrieval;1" in Components.classes;
]]></ins:filter>
</rdf:Description>
</rdf:li>