Closed Bug 426954 Opened 17 years ago Closed 17 years ago

"XPConnect is being called on a scope without a 'Components' property!" assertion message is ridiculously long

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: jruderman)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The "XPConnect is being called on a scope without a 'Components' property!" assertion message is way too long. When someone hits the assertion (which happens fairly often), it takes up a large portion of the terminal window, masking other messages they might be more interested in. I think the paragraph in the assertion message should become a comment. ###!!! ASSERTION: XPConnect is being called on a scope without a 'Components' property! This is pretty much always bad. It usually means that native code is making a callback to an interface implemented in JavaScript, but the document where the JS object was created has already been cleared and the global properties of that document's window are *gone*. Generally this indicates a problem that should be addressed in the design and use of the callback code. : 'Error', file /Users/skywalker/Desktop/Mozilla/cvs/mozilla/js/src/xpconnect/src/xpcwrappednativescope.cpp, line 770
Attachment #313540 - Flags: review?(mrbkap)
Comment on attachment 313540 [details] [diff] [review] Patch moving the "This is pretty much always bad" paragraph to a comment I think this is fine, but please keep the I_FOOLISHLY_WANT_... ifdef for other XPConnect users.
Attachment #313540 - Flags: review?(mrbkap) → review+
Fixed, leaving the ifdef.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: