Closed
Bug 570624
Opened 15 years ago
Closed 15 years ago
"ASSERTION: called nsGenericElement::SetText"
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a5
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: jruderman, Assigned: ehsan.akhgari)
References
Details
(Keywords: assertion, regression, testcase)
Attachments
(3 files, 1 obsolete file)
###!!! ASSERTION: called nsGenericElement::SetText: 'Error', file /builds/moz2_slave/mozilla-central-macosx-debug/build/content/base/src/nsGenericElement.cpp, line 4954
Comment 1•15 years ago
|
||
In nsTextControlFrame::UpdateValueDisplay rootNode is
div@0x7f8260952be0 class="anonymous-div" intrinsicstate=[00020000] flags=[02200539] primaryframe=0x7f8261aa0680 refcount=7<
br@0x7f8260952d30 _moz_editor_bogus_node="TRUE" _moz_dirty="" intrinsicstate=[00020000] flags=[02200111] primaryframe=0x7f826ac0a3c8 refcount=3<>
>
and we call SetText on textContent which is the br node.
Comment 2•15 years ago
|
||
Is this a regression from bug 534785?
Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Is this a regression from bug 534785?
Yes. And also yes.
(The second yes is the answer to the next obvious question: "Do you have a patch?") ;-)
Blocks: 534785
Assignee | ||
Updated•15 years ago
|
blocking2.0: --- → ?
Keywords: regression
Assignee | ||
Comment 4•15 years ago
|
||
I was getting the editor from the text control frame inside the AttributeChange handler on the frame. If the editor was being initialized for the first time, we'd get into a situation where the editor was initialized, but mUseEditor was false. The editor added the bogus br node, but we thought that there was no editor around, so the we'd get more calls to UpdateValueDisplay.
Assignee | ||
Comment 5•15 years ago
|
||
Actually I found one more similar case in nsTextControlFrame, so let's fix that as well.
Attachment #450018 -
Attachment is obsolete: true
Attachment #450021 -
Flags: review?(roc)
Attachment #450018 -
Flags: review?(roc)
Assignee | ||
Updated•15 years ago
|
Component: DOM → Layout: Form Controls
QA Contact: general → layout.form-controls
Attachment #450021 -
Flags: review?(roc) → review+
Assignee | ||
Comment 6•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
blocking2.0: ? → final+
You need to log in
before you can comment on or make changes to this bug.
Description
•