зеркало из https://github.com/mozilla/gecko-dev.git
Bug 394253 - Opening DOM inspector enables accessibility globally, r=timeless, aaronlev, sr=neil
This commit is contained in:
Родитель
88780ad0b3
Коммит
393512e280
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче