Closed Bug 288242 Opened 20 years ago Closed 20 years ago

Bad accessible object shutdown procedure

Categories

(Firefox :: Disability Access, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

Details

(Keywords: access)

Attachments

(1 file)

The loop in nsAccessible::Shutdown() is supposed to walk through the children
and make sure none of them point to it anymore.

The problem is the GetNextSibling() used in the loop creates a parent if there
is none, and we're setting the parent to null for that child before we call
GetNextSibling() on it.
Attachment #179019 - Flags: superreview?(dmose)
Attachment #179019 - Flags: review?(pkwarren) → review+
Comment on attachment 179019 [details] [diff] [review]
Simple patch to switch order of 2 lines, set the parent to null after we have the next sibling from it

sr=dmose
Attachment #179019 - Flags: superreview?(dmose) → superreview+
Checking in accessible/src/base/nsAccessible.cpp;
/cvsroot/mozilla/accessible/src/base/nsAccessible.cpp,v  <--  nsAccessible.cpp
new revision: 1.140; previous revision: 1.139
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: