Last Comment Bug 134787 - [XBLFC] Active Accessibility: support XBL-based HTML form controls
: [XBLFC] Active Accessibility: support XBL-based HTML form controls
Status: RESOLVED FIXED
[ADT3 RTM] - marking same as general ...
: access, sec508
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: Trunk
: x86 Windows 2000
: P1 major (vote)
: mozilla1.1alpha
Assigned To: Aaron Leventhal
: dsirnapalli
Mentors:
Depends on: 104907
Blocks: atfmeta
  Show dependency treegraph
 
Reported: 2002-04-01 19:59 PST by Aaron Leventhal
Modified: 2002-05-16 21:12 PDT (History)
6 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Uses nsIAccessibleProvider() to to return accessible for input type="checkbox" (4.15 KB, patch)
2002-04-01 20:04 PST, Aaron Leventhal
no flags Details | Diff | Review
Requires use of enablePrivilege('UniversalXPConnect') on file:// URL's in order to work, but good enough to start development (7.59 KB, patch)
2002-05-13 19:39 PDT, Aaron Leventhal
mozilla: review+
jst: superreview+
Details | Diff | Review

Description Aaron Leventhal 2002-04-01 19:59:30 PST
Bug 57209 is Brian Ryner's bugs to implement HTML form controls in XBL.

This bug is to get the same MSAA support we have form the old HTML form controls
with these new form controls.
Comment 1 Aaron Leventhal 2002-04-01 20:04:20 PST
Created attachment 77171 [details] [diff] [review]
Uses nsIAccessibleProvider() to to return accessible for input type="checkbox"

This changes GetAccesibleFor(), to use nsIAccessibleProvider whenever it is
implemented for an element type, not just for XUL.

It also tries to implement nsIAccessibleProvider() for a checkbox.

We get the nsIAccessibleProvider, but when we try to GetAccessible() with it,
we get:

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'Permission denied to get property UnnamedClass.classes' when
cal
ling method: [nsIAccessibleProvider::accessible]"  nsresult: "0x8057001e
(NS_ERR
OR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]
************************************************************
Comment 2 Aaron Leventhal 2002-05-13 14:02:50 PDT
When checkbox.xml's GetAccessible() implementation tries to use
Components.classes,it runs into a security error:
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'Permission denied to get property UnnamedClass.classes' when ca
ling method: [nsIAccessibleProvider::accessible]"  nsresult: "0x8057001e (NS_ER
OR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]

We need some way to get nsIAccessibilityService().

This is apparently similar to the error Dharma and John Gaunt were getting in
bug 138020.
Comment 3 Aaron Leventhal 2002-05-13 19:39:19 PDT
Created attachment 83455 [details] [diff] [review]
Requires use of enablePrivilege('UniversalXPConnect') on file:// URL's in order to work, but good enough to start development

Unfortunately this means for now we'll have 3 kinds of checkbox accessible
creation methods.

I'll open new bugs for other controls. Seeking r= for checkbox.
Comment 4 John Gaunt (redfive) 2002-05-16 16:26:16 PDT
Comment on attachment 83455 [details] [diff] [review]
Requires use of enablePrivilege('UniversalXPConnect') on file:// URL's in order to work, but good enough to start development

r=jgaunt
Comment 5 Johnny Stenback (:jst, jst@mozilla.com) 2002-05-16 16:45:38 PDT
Comment on attachment 83455 [details] [diff] [review]
Requires use of enablePrivilege('UniversalXPConnect') on file:// URL's in order to work, but good enough to start development

sr=jst
Comment 6 Aaron Leventhal 2002-05-16 21:12:47 PDT
checked in

Note You need to log in before you can comment on or make changes to this bug.