Exception... "Component is not available" provides inadequate information




10 years ago
9 years ago


(Reporter: johnjbarton, Unassigned)


(Blocks: 1 bug, {testcase})


Firefox Tracking Flags

(Not tracked)


(Whiteboard: [firebug-p2])


(1 attachment)

4.32 KB, application/octet-stream


10 years ago
The attached test case was designed to show that FF3 has a bug that prevents extension from accessing function.prototype properties. (.prototype is "undefined").  However I can't get the test case to run because the line

for (var p in win)

gives an error Exception... "Component is not available" 

Which is ridiculous because I just printed win.location in the preceding line.

* The error message does not say which component it not available.

* The line number of the message is off by one.

* The message is incorrect if it refers to 'win' since win is clearly available.

If the error message was adequate I perhaps could figure out how to print the properties of win and thereby demonstrate that win.foo exists but win.foo.prototype is undefined.

Comment 1

10 years ago
Created attachment 329700 [details]
test extension

Somewhat convoluted test, wish this was easier...
I'm seeing this fairly regularly in some strange situations. Usually related to console interaction, but I'm not sure what's causing it. I encountered it while doing some extension debugging.
OS: Windows XP → All
Hardware: PC → All
Component: General → XPCOM
Product: Firefox → Core
QA Contact: general → xpcom
Whiteboard: [firebug-p2]
I've seen this recently as well, and was thinking it might have been caused by either DOM quickstubs (bug 407216) or TraceMonkey. quickstubs landed only recently and there appear to be reports of this earlier than then, so I'm starting to suspect TraceMonkey more and more (though that is mostly just a guess). A solid testcase would be useful.
tried testing the attached extension, but was unable to unpack it or install it. Zip bailed with error: "Nothing to do!"

Does this bug still exist?
You need to log in before you can comment on or make changes to this bug.