Open Bug 335358 Opened 18 years ago Updated 3 years ago

Assertion in nsEditor::IsPreformatted

Categories

(Core :: DOM: Editor, defect, P5)

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mikhail.zabaluev, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Build Identifier: Xulrunner trunk 2006-04-24

I embed Gecko built from Xulrunner trunk in my native application.
When performing nsEditingSession::MakeWindowEditable, an assertion fails in nsEditor::IsPreformatted after no frame for content could be found:

  nsIFrame *frame = ps->GetPrimaryFrameFor(content);

  NS_ASSERTION(frame, "no frame, see bug #188946");


Reproducible: Always
I think this assertion should become only a comment in the code. The case frame==null is possible, cf. the test right after the assertion.
QA Contact: editor
Assignee: mozeditor → nobody

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: minor → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.