Closed Bug 345418 Opened 18 years ago Closed 18 years ago

ASSERTION: trying to construct an SVGTSpanFrame for an invalid container

Categories

(Core :: SVG, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: longsonr)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files, 2 obsolete files)

###!!! ASSERTION: trying to construct an SVGTSpanFrame for an invalid container: 'Error', file /Users/admin/trunk/mozilla/layout/svg/base/src/nsSVGTSpanFrame.cpp, line 57 And similar assertions: http://lxr.mozilla.org/seamonkey/search?string=invalid+container I think these are just bogus assertions.
Attached image testcase
Should write to the Error Console instead.
Assignee: general → longsonr
Status: NEW → ASSIGNED
Attachment #231091 - Flags: review?(tor)
Attachment #231091 - Flags: review?(tor) → review+
Attachment #231091 - Flags: superreview?(roc)
Comment on attachment 231091 [details] [diff] [review] convert assert to warning in Error Console IMHO this check should remain an assertion and code should be added to nsCSSFrameConstructor to prevent this being reached. nsCSSFrameConstructor is the place where we detect and handle invalid DOMs.
Attachment #231091 - Flags: superreview?(roc) → superreview-
Attached patch check tspan and textPath parents (obsolete) — Splinter Review
I've not put in any console logging. There isn't any currently in nsCSSFrameConstructor but it wouldn't be too difficult to write a static ReportInvalidParent method, though I'm not sure which properties file to use. Presumably various html elements could have an invalid parent also.
Attachment #231091 - Attachment is obsolete: true
Attachment #232554 - Flags: review?(roc)
+ if (aParentFrame->IsFrameOfType(nsIFrame::eSVG)) { Why bother with this check? Otherwise, looks great.
Attachment #232554 - Attachment is obsolete: true
Attachment #232675 - Flags: superreview?(tor)
Attachment #232675 - Flags: review?(roc)
Attachment #232554 - Flags: review?(roc)
Attachment #232675 - Flags: superreview?(tor)
Attachment #232675 - Flags: superreview+
Attachment #232675 - Flags: review?(roc)
Attachment #232675 - Flags: review+
checked in
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Crashtest checked in.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: