Closed Bug 313043 Opened 20 years ago Closed 20 years ago

Crash when using AccessibleObjectFromWindow

Categories

(Core :: Disability Access APIs, defect)

x86
All
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

Details

(Keywords: access, fixed1.8)

Attachments

(1 file)

Occasionally when using AccessibleObjectFromWindow() a crash will occur. The base cause is a whole bunch of unnecessary calls when we try to return the native accessible for the window. The system's impl of AccessibleObjectFromWindow() uses get_accParent(), and our get_accParent() will return the native OBJID_WINDOW accessible. We're supposed to ignore those calls, but we are getting the root accessible at that point which is unnecessary. Removing that clears up the unnecessary calls and the crash.
Attachment #200120 - Flags: superreview?(jst)
Attachment #200120 - Flags: review?(parente)
Attachment #200120 - Flags: review?
Attachment #200120 - Flags: review?(parente) → review+
Attachment #200120 - Flags: superreview?(jst) → superreview?(bzbarsky)
Comment on attachment 200120 [details] [diff] [review] Patch without whitespace changes. It will be checked in with correct indentation. Sure...
Attachment #200120 - Flags: superreview?(bzbarsky) → superreview+
Attachment #200120 - Flags: approval1.8rc1?
This is not risky. It just moves the GetRootAccessible into the 2 if () sections that use the results. Please take for branch.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #200120 - Flags: approval1.8rc1? → approval1.8rc1+
Verified that this has been fixed in dev build 10/19/05 build
Keywords: fixed1.8
Note: this fails to compile with --with-windows-version=400
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: