Closed Bug 679689 Opened 14 years ago Closed 14 years ago

ASSERTION: Empty string? trying to parse HTML image with empty crossorigin attribute

Categories

(Core :: DOM: Core & HTML, defect, P1)

x86
Windows 2000
defect

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: neil, Assigned: bzbarsky)

References

()

Details

(Keywords: assertion)

Attachments

(3 files)

I hit this assertion and according to the local variables on the stack the SetAttr in question has a name of "crossorigin" and an empty value.
Attached file WinDbg stack trace
Looks like they also set it to the empty string in script too...
Attached file testcase
nsAttrValue::SetMiscAtomOrString has this code: PRUint32 len = aValue->Length(); // We're allowing eCSSStyleRule attributes to store empty strings as it // can be beneficial to store an empty style attribute as a parsed rule. // Add other types as needed. NS_ASSERTION(len || Type() == eCSSStyleRule, "Empty string?"); Jonas, sounds like we should add enumerated types here, right?
Assignee: nobody → bzbarsky
Priority: -- → P1
Whiteboard: [need review]
Whiteboard: [need review] → [need landing]
Flags: in-testsuite+
Target Milestone: --- → mozilla9
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: