Closed Bug 614988 Opened 9 years ago Closed 9 years ago

"ASSERTION: We should never try to use the editor if we're not initialized unless we're being initialized"

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: jruderman, Assigned: ehsan)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(3 files)

Attached file testcase
###!!! ASSERTION: We should never try to use the editor if we're not initialized unless we're being initialized: 'mEditorInitialized || mInitializing', file content/html/content/src/nsTextEditorState.cpp, line 1717

This assertion was added in:
changeset:   a664aa828e62
user:        Ehsan Akhgari
date:        Mon Nov 22 03:12:56 2010 -0500
summary:     Bug 611189 - Parchment IF Reader Misbehaves; r=bzbarsky
Attached file stack trace
Attached patch Patch (v1)Splinter Review
Hmm, this assertion doesn't apply to textarea's, but I forgot to exclude them in the original patch.  :(
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #493443 - Flags: review?(bzbarsky)
Comment on attachment 493443 [details] [diff] [review]
Patch (v1)

How about just adding "!IsSingleLineTextControl() ||" to the start of the assert condition?

r=me either way, I guess.
Attachment #493443 - Flags: review?(bzbarsky) → review+
(In reply to comment #3)
> Comment on attachment 493443 [details] [diff] [review]
> Patch (v1)
> 
> How about just adding "!IsSingleLineTextControl() ||" to the start of the
> assert condition?

That would make it even less readable than it currently is...
Attachment #493443 - Flags: approval2.0?
OK, don't worry about it, then.  I guess I find a complex-ish conditional more readable than some ifdefs and ifs, but that may just be habit.  ;)
Whiteboard: [needs landing]
http://hg.mozilla.org/mozilla-central/rev/b2dad520d4ae
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.