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...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: Trunk
: x86_64 Windows 7
: -- normal (vote)
: mozilla20
Assigned To: alexander :surkov
:
Mentors:
Depends on:
Blocks:
  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:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


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

Description James Teh [:Jamie] 2012-11-29 22:23:51 PST
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.
Comment 1 alexander :surkov 2012-11-29 22:50:21 PST
Created attachment 686952 [details] [diff] [review]
patch
Comment 3 Ryan VanderMeulen [:RyanVM] 2012-12-04 19:02:53 PST
https://hg.mozilla.org/mozilla-central/rev/dfc5eeb57fce

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