ASSERTION: bad class for Document object

RESOLVED FIXED

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
15 years ago
9 years ago

People

(Reporter: Heikki Toivonen (remove -bugzilla when emailing directly), Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

714 bytes, patch
Heikki Toivonen (remove -bugzilla when emailing directly)
: review+
peterv
: superreview+
Details | Diff | Splinter Review
I was using Venkman, and when using the twisty to look at the properties of a
document (XMLDocument) object I get this assertion:

###!!! ASSERTION: Bad class for Document object!: 'clazz && clazz->flags & JSCLA
SS_HAS_PRIVATE && clazz->flags & JSCLASS_PRIVATE_IS_NSISUPPORTS', file c:/builds
/mozilla/dom/src/base/nsDOMClassInfo.cpp, line 4825

This is somewhat worrying since the assertion happens in function
documentNeedsSecurityCheck() which we really should get right...!

I got this by placing a breakpoint in nsPolicyViewer.js line 390, then opening
P3P page info tab and clicking Summary button on www.att.net. I am wondering if
this might be regression from the XULDocument refactoring (I have not checked if
this happens in build sprior to that).
Created attachment 119141 [details] [diff] [review]
Fix, we used the wrong JSObject in that assert. Duh!

Nothing wrong with the real code here, just a bug in the DEBUG code.

Updated

15 years ago
Attachment #119141 - Flags: superreview?(peterv)
Attachment #119141 - Flags: review?(heikki)
Attachment #119141 - Flags: superreview?(peterv) → superreview+
Attachment #119141 - Flags: review?(heikki) → review+
FIXED.
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED

Updated

9 years ago
Component: DOM: Core → DOM: Core & HTML
QA Contact: desale → general
You need to log in before you can comment on or make changes to this bug.