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)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dsirnapalli, Assigned: aaronlev)

Details

(Keywords: access)

Attachments

(1 file)

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.
Traversed is used for links that the user has clicked on previously.
Keywords: access, fcc508
Attached patch Tested -- worksSplinter Review
Comment on attachment 61995 [details] [diff] [review] Tested -- works r=jgaunt
Attachment #61995 - Flags: review+
Comment on attachment 61995 [details] [diff] [review] Tested -- works rs=waterson
Attachment #61995 - Flags: superreview+
checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
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
QA Contact: doronr → dsirnapalli
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: