Closed Bug 816856 Opened 10 years ago Closed 10 years ago

Embedded object accessibles for inaccessible/windowless plugins should not expose a NULL child

Categories

(Core :: Disability Access APIs, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: Jamie, Assigned: surkov)

Details

Attachments

(1 file)

Str:
1. Visit a page with a windowless plugin; e.g. http://www.brandonsanderson.com/
2. Locate the accessible for the embedded object.
3. Call IAccessible::accChildCount on this accessible.
Expected: 0.
Actual: 1.
4. Call AccessibleChidlren, passing iChildStart as 0 and cChildren as the child count (step 3).
Expected: The returned array should be empty (no children).
Actual: An array of length 1 is returned. The array member is a VARIANT with VT_DISPATCH but a pDispVal of NULL.

A NULL child should never be returned by AccessibleChildren.

This doesn't affect users of NVDA (or probably any other AT), but it's probably worth fixing for correctness and automation.
Attached patch patchSplinter Review
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #686952 - Flags: review?(trev.saunders)
Attachment #686952 - Flags: review?(trev.saunders) → review+
https://hg.mozilla.org/mozilla-central/rev/dfc5eeb57fce
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.