Closed Bug 45445 Opened 25 years ago Closed 25 years ago

Assertion in GetPointFromOffset when doing delete-word past a line break

Categories

(Core :: DOM: Selection, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED WORKSFORME
mozilla0.9.2

People

(Reporter: akkzilla, Assigned: anthonyd)

Details

(Keywords: helpwanted)

Paste some lines into the editor. Set the caret a few words into one of the lines (not the first one) and repeatedly do delete-word-backward. (On Unix, this is wired to control-W. Not sure if Windows has an equivalent; you may have to add an entry to editorBindings.xul or platformEditorBindings.xul.) When it gets to the beginning of the line and has to wrap back to the previous line, there's an assert: ###!!! ASSERTION: invalid offset passed to GetPointFromOffset: '0', file nsTextFrame.cpp, line 3052 ###!!! Break: at file nsTextFrame.cpp, line 3052 though the delete seems to work fine, so maybe the assertion isn't needed.
Will look at it in the M18 timeframe, and at least evaluate whether the assert is important.
Status: NEW → ASSIGNED
Target Milestone: --- → M18
This magically got fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
*SPAM*: Changing the QA contact of all open/resolved Selection bugs from elig@netscape.com to BlakeR1234@aol.com. After the many great years of service Eli has given to Mozilla, it's time for him to move on; he has accepted a position at Eazel. We'll be sad to see him go, and I'll do my best to fill his spot...
QA Contact: elig → BlakeR1234
It's baaack.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Moving to M19 as per beppe@netscape.com.
Keywords: perf
Target Milestone: M18 → M19
setting to future
Keywords: perfcorrectness, helpwanted
Target Milestone: M19 → Future
Anthony is taking over selection bugs.
Assignee: akkana → anthonyd
Status: REOPENED → NEW
Status: NEW → ASSIGNED
moving to 0.9 to at least investigate this in case its important. anthonyd
Target Milestone: Future → mozilla0.9
asserts need to be cleared up, leaving in moz0.9 and leaving at p3
setting to mozilla 0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
Akkana--is this assert still present? moving to mozilla0.9.2
Target Milestone: mozilla0.9.1 → mozilla0.9.2
It's gone in today's build.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → WORKSFORME
marking verified per Akkana's comment
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.