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.
15 years ago