Closed Bug 1034921 Opened 10 years ago Closed 10 years ago

Remove dangerous public destructor of nsFoo in TestThreadUtils.cpp

Categories

(Core :: XPCOM, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: bjacob, Assigned: anujagarwal464, Mentored)

References

Details

Attachments

(1 file, 1 obsolete file)

In bug 1028588 we removed dangerous public destructors of XPCOM-refcounted classes outside of a finite whitelist, see HasDangerousPublicDestructor. Now we are going over the entries in this whitelist. One of them is: nsFoo in TestThreadUtils.cpp
Mentor: continuation
Assignee: nobody → anujagarwal464
Attached patch bug1034921.diff (obsolete) (deleted) — Splinter Review
Attachment #8483420 - Flags: feedback?(continuation)
Comment on attachment 8483420 [details] [diff] [review] bug1034921.diff Review of attachment 8483420 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me! Thanks for the patch.
Attachment #8483420 - Flags: review?(nfroyd)
Attachment #8483420 - Flags: feedback?(continuation)
Attachment #8483420 - Flags: feedback+
Attachment #8483420 - Flags: review?(nfroyd) → review+
Keywords: checkin-needed
You need to post a successful try run for checkin-needed.
Keywords: checkin-needed
Try run failed. It looks like you need to keep the "virtual" on ~nsFoo. In theory, if there was a subclass of nsFoo, then having it be non-virtual wouldn't call the right destructor on when deleting something with type nsFoo.
Attached patch bug1034921.diff (deleted) — Splinter Review
Attachment #8483420 - Attachment is obsolete: true
Comment on attachment 8484174 [details] [diff] [review] bug1034921.diff That try run is green. This probably doesn't really need a re-review (all it does is make the dtor virtual) but here we go anyways.
Attachment #8484174 - Flags: review?(nfroyd)
Attachment #8484174 - Flags: review?(nfroyd) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: