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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: dsirnapalli, Assigned: yuanyi21)
References
Details
Attachments
(2 files, 1 obsolete file)
|
3.04 KB,
application/vnd.mozilla.xul+xml
|
Details | |
|
741 bytes,
patch
|
aaronlev
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
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".
| Reporter | ||
Comment 1•23 years ago
|
||
| Reporter | ||
Comment 2•23 years ago
|
||
-- 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.
| Reporter | ||
Comment 6•23 years ago
|
||
-- sure, i can do that. i need time till monday or so.
| Reporter | ||
Comment 7•23 years ago
|
||
-- 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
Comment 9•23 years ago
|
||
Perhaps the right way to fix this is to make DoCommand() work correctly?
| Assignee | ||
Comment 10•23 years ago
|
||
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?
Updated•23 years ago
|
Attachment #84715 -
Flags: review+
Comment 11•23 years ago
|
||
Comment on attachment 84715 [details] [diff] [review]
patch (change buttonElement->DoCommand() to buttonElement->Click())
r=aaronl
Comment 12•23 years ago
|
||
Comment on attachment 84715 [details] [diff] [review]
patch (change buttonElement->DoCommand() to buttonElement->Click())
sr=jst
Attachment #84715 -
Flags: superreview+
| Assignee | ||
Comment 13•23 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 14•23 years ago
|
||
-- 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.
Description
•