Closed
Bug 115330
Opened 24 years ago
Closed 24 years ago
Active Accessibility: Html Anchor does not show proper state in mozInspect.
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: dsirnapalli, Assigned: aaronlev)
Details
(Keywords: access)
Attachments
(1 file)
|
1.07 KB,
patch
|
mozilla
:
review+
waterson
:
superreview+
|
Details | Diff | Splinter Review |
Here is the test case.
--------------------
<html>
<head>
<script type="text/javascript">
function getDomNodeAnchor()
{
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var node = document.getElementsByTagName("a").item(0);
return node;
}
catch(e){
alert("Exception: " + e);
}
}
function getAccessibleNode(startNode)
{
var accessibleService = null;
var accessibleNode = null;
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
accessibleService = Components.classes
["@mozilla.org/accessibilityService;1"].createInstance();
accessibleService = accessibleService.QueryInterface
(Components.interfaces.nsIAccessibilityService);
}
catch(e){
alert("Error getting accessibility service");
}
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
accessibleNode = accessibleService.getAccessibleFor(startNode);
return accessibleNode;
}
catch(e){
return "Exception";
}
}
</script>
</head>
<body>
<!-- Test Anchor -->
Testing Link
<br>
<a href="http://www.yahoo.com"> External Link </a>
<script type="text/javascript">
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var domNode = getDomNodeAnchor();
alert("domNode: " + domNode);
var accNode = getAccessibleNode(domNode);
alert("accNode: " + accNode);
var state = accNode.accState;
alert("State: " + state);
}
catch(e){
alert("Exception: " + e);
}
</script>
</body>
</html>
------------------------------
Open mozilla or MFCEmbed and run the test case.You see a link "External Link".
Tab to that link.Open mozInspect and take the focus on to the link.MozInspect
shows "read only,selectable,linked" for state value.Open the above test case in
IE.IE shows "focused,read only,focusable,selectable,linked,traversed" for state
value. Even though the link is focused MozInspect does not return
focused,focusable when opened through mozilla or MFCEmbed. What is traverse
used for.
| Assignee | ||
Comment 1•24 years ago
|
||
Traversed is used for links that the user has clicked on previously.
| Assignee | ||
Updated•24 years ago
|
| Assignee | ||
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
Comment on attachment 61995 [details] [diff] [review]
Tested -- works
r=jgaunt
Attachment #61995 -
Flags: review+
Comment 4•24 years ago
|
||
Comment on attachment 61995 [details] [diff] [review]
Tested -- works
rs=waterson
Attachment #61995 -
Flags: superreview+
| Assignee | ||
Comment 5•24 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 6•24 years ago
|
||
Verified in mozilla trunk build
Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.8+) Gecko/20020206
Verified in MfcEmbed.
Works fine.Marking buy as verified.
Status: RESOLVED → VERIFIED
| Reporter | ||
Updated•23 years ago
|
QA Contact: doronr → dsirnapalli
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•