Closed Bug 146315 Opened 23 years ago Closed 23 years ago

nsIAccessible's accDoAction does not work for XUL Button Element.

Categories

(Core :: Disability Access APIs, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: dsirnapalli, Assigned: yuanyi21)

References

Details

Attachments

(2 files, 1 obsolete file)

Similar bug has been filed for HTML Button Node. Bug#124234 -- When i called nsIAccessible's accDoAction on XUL Button Node the button is not getting clicked. In the attached test case i added an onclick event listener for the button --domNode.addEventListener('click', nodeClicked,true); The statement accNode.accDoAction(0); should click the button. If the button gets actually clicked the last alert should be "Button Pressed".
Attached file Testcase to reproduce the bug (obsolete) —
Blocks: atfmeta
-- for the previous attachment i gave mime type as text/html. so i had to reattach the test case with mime type as xul.
Attachment #84701 - Attachment is obsolete: true
investigated : 1) Can not test by clicking testcase's link, must "View Page Source", then save it as a XML file, drag into mozilla. 2) "View Page Source" can not display the page source content correctly.
sorry, I use this previous test case. Jessie, this XUL test case will help your work.
There are maybe some potential errors of XULCheckbox and XULRadio's accDoAction. Dharma, could make test cases for above XUL widgets too? We can fix all the bugs of button widget's doAction at once.
-- sure, i can do that. i need time till monday or so.
-- I filed a seperate bug for XUL Checkbox Node. Bug#146499. Because the problem might be different in case of XUL Checkbox Node. In case of checkbox node i see that the checkbox is actually clicked but the event is not getting fired. I dont know what's the case with button(whether it is actually getting clicked or not).
Yes, the problems are different, but the fix is same :) need r=
Assignee: aaronl → kyle.yuan
Perhaps the right way to fix this is to make DoCommand() work correctly?
See: http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/bindings/b utton.xml#76 DoCommand do nothing for Button. Even if we modified this handler to let it work for button, I'm not sure whether a proper event will be fired?
Attachment #84715 - Flags: review+
Comment on attachment 84715 [details] [diff] [review] patch (change buttonElement->DoCommand() to buttonElement->Click()) r=aaronl
Comment on attachment 84715 [details] [diff] [review] patch (change buttonElement->DoCommand() to buttonElement->Click()) sr=jst
Attachment #84715 - Flags: superreview+
checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
-- verified in current nightly build. works fine. marking bug as verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: