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

RESOLVED FIXED in mozilla20

Status

()

Core
Disability Access APIs
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Jamie, Assigned: surkov)

Tracking

Trunk
mozilla20
x86_64
Windows 7
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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.
(Assignee)

Comment 1

5 years ago
Created attachment 686952 [details] [diff] [review]
patch
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #686952 - Flags: review?(trev.saunders)
Attachment #686952 - Flags: review?(trev.saunders) → review+
(Assignee)

Comment 2

5 years ago
http://hg.mozilla.org/integration/mozilla-inbound/rev/dfc5eeb57fce
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/dfc5eeb57fce
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.