Closed Bug 830553 Opened 11 years ago Closed 11 years ago

Make every single assert in nsWrapperCache.h fatal

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: mccr8, Assigned: bzbarsky)

Details

Attachments

(1 file)

There are a few of these NS_ASSERTIONs in nsWrapperCache, and they all look pretty awful. bz had a problem that took us a long time to pin down because it wasn't clear where the problem was. We should make these into MOZ_ASSERT to catch problems earlier.  And possibly consider making them crash in release builds...
I think we should strongly consider making every single assert in nsWrapperCache.h fatal.
Summary: Make !PreservingWrapper() into fatal assertions in nsWrapperCache → Make every single assert in nsWrapperCache.h fatal
Andrew, are you taking this, or should I?  I have most of this patch already....  Would need to run it through try, I guess.
I haven't started on it. Feel free to do it if you want, or I can probably get to it in a day or two.
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Comment on attachment 702135 [details] [diff] [review]
Make the asserts in nsWrapperCache.h fatal.

Review of attachment 702135 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #702135 - Flags: review?(continuation) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/609b32dec10d
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla21
https://hg.mozilla.org/mozilla-central/rev/609b32dec10d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: