Closed
Bug 128858
Opened 23 years ago
Closed 23 years ago
for (c in Components.classes) regressed
Categories
(Core :: XPCOM, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: Biesinger, Assigned: jband_mozilla)
Details
(Keywords: regression)
Attachments
(1 file)
1.41 KB,
patch
|
rginda
:
review+
shaver
:
superreview+
dbaron
:
approval+
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020223 BuildID: 2002030415 The component viewer does not work for me in recent builds. The interface and component lists are empty, and I get a JS error in the JS console: Error: undefined has no properties Source File: chrome://cview/content/cview-outliners.js Line: 51 Reproducible: Always Steps to Reproduce: 1. Tasks|Tools|Component Viewer 2. 3. Actual Results: lists are empty Expected Results: shown the components and interfaces in the lists
Comment 1•23 years ago
|
||
This is because you can't do keys(Components.classes) anymore for some reason.
Comment 2•23 years ago
|
||
I don't understand what "qawanted" means in this case.
Comment 3•23 years ago
|
||
We can't enumerate classes anymore, this is bad.
Assignee: rginda → dbradley
Component: XP Apps → XPConnect
QA Contact: nobody → pschwartau
Summary: component viewer (cview) doesn't work → for (c in Components.classes) regressed
Updated•23 years ago
|
Whiteboard: mozilla1.0
Updated•23 years ago
|
Keywords: qawanted → mozilla1.0
Whiteboard: mozilla1.0
Reporter | ||
Comment 4•23 years ago
|
||
ssieb: sairuh added the keyword when changing the qa contact to nobody, probably to indicate that somebody should become qa contact for this bug
Comment 5•23 years ago
|
||
I believe this is due to jband's recent changes. I'm looking into it to make sure, but I'm having problems with my build right now, and I thought maybe John might know off the top of his head.
Comment 6•23 years ago
|
||
Sorry, I meant to say the recent changes concerning the inteface manager for supporting SOAP
Assignee | ||
Comment 7•23 years ago
|
||
No. This is a regression from dougt's change to nsComponentManager to add nsIComponentRegistrar. He has an enumerator that does both nsIBidirectionalEnumerator and nsISimpleEnumerator. His mistake (I reviewed) was to use NS_REINTERPRET_CAST where he should have used NS_STATIC_CAST. So the callers to the functions that expect the nsISimpleEnumerator interface get the nsIBidirectionalEnumerator interface instead. And *that* means that their calls on those object get routed to the *wrong* methods! We are 'luck' this does not crash. I'll attach a patch that fixes this. Let's try to get this into 0.9.9 if it is not too late.
Assignee: dbradley → dougt
Severity: normal → critical
Component: XPConnect → XPCOM
Keywords: mozilla1.0 → mozilla0.9.9
QA Contact: pschwartau → scc
Assignee | ||
Comment 8•23 years ago
|
||
Assignee | ||
Comment 9•23 years ago
|
||
Oops, the patch includes a changed line to avoid the annoying shutdown warnings. That need not get checked in (but *I* wouldn't mind).
Comment 10•23 years ago
|
||
Comment on attachment 72505 [details] [diff] [review] proposed fix r=rginda on the whole enchilada. I agree that this should make 0.9.9.
Attachment #72505 -
Flags: review+
Comment 11•23 years ago
|
||
Thanks John. Then my build wasn't screwy. I wasn't sure if the fact different methods were actually getting invoked was due to my build being busted or was the actual problem, and was in the middle of doing a clobber to find out for sure. Yes, very lucky this only prematurely terminates the enumeration.
Keywords: mozilla0.9.9 → mozilla1.0
QA Contact: scc → pschwartau
Comment 12•23 years ago
|
||
dbradley, why not shoot for 0.9.9?
Comment on attachment 72505 [details] [diff] [review] proposed fix sr=shaver. (I won't miss that shutdown spam, but then I wouldn't miss the XPConnect flattening spam either. =) )
Attachment #72505 -
Flags: superreview+
Assignee | ||
Comment 14•23 years ago
|
||
Looks like dougt is not around. I'll take this one. shaver: you can turn off the xpconnect flattening spam anytime you want.
Assignee: dougt → jband
Comment on attachment 72505 [details] [diff] [review] proposed fix a=dbaron for 0.9.9 branch and trunk (although you shouldn't need any cast at all to cast to a base class)
Attachment #72505 -
Flags: approval+
Assignee | ||
Comment 16•23 years ago
|
||
Fix checked in to trunk and branch.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 17•23 years ago
|
||
Trying to verify this with Mozilla trunk builds from today, 2002-03-05. My Linux build doesn't even launch; forget about that one. On WinNT and Mac, I went to http://www.hacksrus.com/~ginda/cview/ and installed Component Viewer. Is this the latest version? When I brought up Component Viewer in yesterday's binary (before the fix for this bug went in), Component Viewer came up blank of information, and I saw the reported error in the JS Console. With today's builds, there is no JS Console error, and the Component Viewer shows correct-looking totals in the headers at the top: "All components (952/952)" "All interfaces (1026/1026)" However, the body of the window is blank. I assume this is due to some error in my installation of Component Viewer. I seem to be missing the widget that's supposed to display individual items - (?) I'm going to go ahead and provisionally mark this one Verified, since with yesterday's builds, I had this at the top instead of correct numbers: "Components..." "Interfaces..." plus the error in the JS Console - Christian, could you double-check me on this? If you see anything wrong with this in current builds, could you please re-open this bug? If anyone else knows what I did wrong in installing Component Viewer, please let me know; either here or via direct email; thank you -
Status: RESOLVED → VERIFIED
Comment 18•23 years ago
|
||
Another approach to verification: <SCRIPT> netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var i = 0; for (var obj in Components.classes) i++; alert(i); </SCRIPT> With yesterday's build, this gave me "0". With today's build, it gives me "953".
Comment 19•23 years ago
|
||
cview from the tree works for me. Possibly the xul in the version on hacksrus.com is out of date.
Reporter | ||
Comment 20•23 years ago
|
||
ok. component viewer works fine for me now! Thanks for fixing this so fast!
You need to log in
before you can comment on or make changes to this bug.
Description
•