Last Comment Bug 816856 - Embedded object accessibles for inaccessible/windowless plugins should not expose a NULL child
: Embedded object accessibles for inaccessible/windowless plugins should not ex...
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: Trunk
: x86_64 Windows 7
-- normal (vote)
: mozilla20
Assigned To: alexander :surkov
: alexander :surkov
Depends on:
  Show dependency treegraph
Reported: 2012-11-29 22:23 PST by James Teh [:Jamie]
Modified: 2012-12-04 19:02 PST (History)
1 user (show)
surkov.alexander: in‑testsuite+
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

patch (3.06 KB, patch)
2012-11-29 22:50 PST, alexander :surkov
tbsaunde+mozbugs: review+
Details | Diff | Splinter Review

Description User image James Teh [:Jamie] 2012-11-29 22:23:51 PST
1. Visit a page with a windowless plugin; e.g.
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.
Comment 1 User image alexander :surkov 2012-11-29 22:50:21 PST
Created attachment 686952 [details] [diff] [review]
Comment 3 User image Ryan VanderMeulen [:RyanVM] 2012-12-04 19:02:53 PST

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