Closed Bug 350565 Opened 19 years ago Closed 19 years ago

crash when using at-poke log text-caret-moved event [@nsHyperTextAccessible::GetRelativeOffset]

Categories

(Firefox :: Disability Access, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: evan.yan, Assigned: aaronlev)

References

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

reproduce steps: 1. start firefox with accessibility enabled, locate to a webpage with textfield, say www.mozilla.org/projects/minefield; 2. start at-poke log event, check the checkbox for text-caret-moved event; 3. click on a textfield to focus; then firefox crash. it can be always reproduced.
Attached file core dump stack
startFrame was null in nsHyperTextAccessible::GetTextHelper()
Blocks: newatk
Assignee: nobody → aaronleventhal
Status: NEW → ASSIGNED
Attachment #236261 - Flags: review?(Evan.Yan)
Comment on attachment 236261 [details] [diff] [review] Null check and return early the patch does work for me. but I'm curious about the condition that startFrame would be null, Aaron, could you please explain it for me?
Evan, it is null because startOffset has been incremented past the end of the string. FWIW I plan to change this code anyway for bug 349909.
Comment on attachment 236261 [details] [diff] [review] Null check and return early r=me
Attachment #236261 - Flags: review?(Evan.Yan) → review+
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 396898
No longer blocks: 396898
Crash Signature: [@nsHyperTextAccessible::GetRelativeOffset]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: