Closed Bug 896506 Opened 12 years ago Closed 12 years ago

GC: Fix a couple of rooting hazards in XUL code

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

Attached patch Proposed changeSplinter Review
This fixes a couple of reported rooting hazards in XUL code. Is the change to nsXULPDGlobalObject_finalize() safe? I couldn't see a reason why not to do this (and it doesn't seem to break anything).
Attachment #779218 - Flags: review?(bugs)
Comment on attachment 779218 [details] [diff] [review] Proposed change nsXULPDGlobalObject *nativeThis -> nsXULPDGlobalObject* nativeThis (I know the old! code uses wrong style. The code is from 1.25 <jst@netscape.com> 2001-05-08 09:46) So this is not really fixing any issues, but changes the code so that tools don't complain about rooting hazard, right?
Attachment #779218 - Flags: review?(bugs) → review+
(In reply to Olli Pettay [:smaug] from comment #1) Yes this is really about silencing warnings so we can get down to zero (or very few) hazards, so that it becomes much more obvious when any real hazards are introduced. I'll have a look into why the tool thought that the query interface call in the finalizer could cause a GC, I don't think that's possible.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Depends on: 898232
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: