Closed Bug 735663 Opened 12 years ago Closed 11 years ago

crash nsCaretAccessible::SetControlSelectionListener

Categories

(Core :: Disability Access APIs, defect)

12 Branch
x86
Windows NT
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: MarcoZ, Unassigned)

References

Details

(Keywords: crash)

Crash Data

This bug was filed from the Socorro interface and is 
report bp-9e090e1f-dd94-411f-a45f-76f002120310 .
============================================================= 

Reported to me by a community member using JAWS.
Component: Disability Access → Disability Access APIs
Product: Firefox → Core
QA Contact: disability.access → accessibility-apis
Jim, it sounds like the problem is when window is closed, JAWS is notified about that and does something that sends WM_ACTIVE event so that makes Gecko to fire DOM focus event which is handled by accessibility again. Can you think of the way to prevent things like this, i.e. do not respond to WM_ACTIVATE and maybe some other events when window is destroyed.
It sounds I forgot to cc Jim
Looking at Socorro it seems this happens very rarely. In different stacks I noticed Jaws 11 and Jaws 12 in use.

Seems like we fail with a null mRootAccessible

nsCaretAccessible::SetControlSelectionListener(nsIContent *aCurrentNode)
{
  NS_ENSURE_TRUE(mRootAccessible, NS_ERROR_FAILURE);

Possibly related to our general tree updating pain.
Flags: needinfo?(jmathies)
(In reply to alexander :surkov from comment #2)
> Jim, it sounds like the problem is when window is closed, JAWS is notified
> about that and does something that sends WM_ACTIVE event so that makes Gecko
> to fire DOM focus event which is handled by accessibility again. Can you
> think of the way to prevent things like this, i.e. do not respond to
> WM_ACTIVATE and maybe some other events when window is destroyed.

Is the widget object still around? If so we have flags in widget - mInDtor and mDestroyCalled that could be used to prevent sending certain events.
Flags: needinfo?(jmathies)
this one was fixed by bug 678477 (rootAccessible doesn't take longer any participation in caret management)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
Target Milestone: mozilla14 → mozilla22
Depends on: 678477
You need to log in before you can comment on or make changes to this bug.