Closed Bug 111361 Opened 23 years ago Closed 23 years ago

Accessing DOM CSS constants causes crash.

Categories

(Core :: DOM: CSS Object Model, defect)

x86
All
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: mike, Assigned: jst)

References

()

Details

(Keywords: crash, dom2, Whiteboard: [HAVE FIX])

Attachments

(1 file)

Accessing DOM CSS constants is causing Moz 0.9.5+ and above to crash.

Simple assignements, such as:

  var foo = CSSValue.CSS_PRIMITIVE_VALUE

or comparisons, such as
  
  if (CSSPrimitiveValue.CSS_MM == bar)
    ...

will reproduce the crash.

For some test cases, see the document in the URL field.

I can reproduce this with Windows and Linux buiolds from 2001-11-21.

See talkback incident #TB38351590Q for talkback data from a 0.9.6 build. I'll
attach a stack trace from a recent nightly.
Keywords: crash, dom2
Attached patch Proposed fix.Splinter Review
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Whiteboard: [HAVE FIX]
Target Milestone: --- → mozilla0.9.7
Thanks for the testcase, this was trivial to fix given this nice and simple
testcase.
Comment on attachment 58820 [details] [diff] [review]
Proposed fix.

r/sr=jband
Attachment #58820 - Flags: superreview+
No problem, thanks for the quick turnaround. Is that some sort of record? 8)

Want me to do a build with the patch to confirm it fixes the crash?
No need to do a build, but if you want to, be my guest but I might check this in
real soon now :-)
Cool, I'll wait until you check it in.
Comment on attachment 58820 [details] [diff] [review]
Proposed fix.

r=bbaetz
Attachment #58820 - Flags: review+
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
How about a comment in nsScriptNameSpaceManager.h telling which mType values
discriminate which union arms.

/be
*** Bug 111027 has been marked as a duplicate of this bug. ***
Comments added.
Cool, the crash is gone, marking verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: