Closed Bug 1031967 Opened 11 years ago Closed 11 years ago

make mozilla::css::Loader cycle collected

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: heycam, Assigned: heycam)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

I want to add an CSS loader observer that is a cycle collected object that has a strong reference back to the document. We need to traverse/unlink the observer array elements for this to avoid leaking.
Blocks: 1028497
Attached patch patch (obsolete) — Splinter Review
Or let me know if the Loader object itself should be a cycle collected object.
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8447793 - Flags: review?(bzbarsky)
Comment on attachment 8447793 [details] [diff] [review] patch I think cycle-collecting the CSSLoader is the way to go. It'll make the code look much more normal.
Attachment #8447793 - Flags: review?(bzbarsky)
Attached patch patch v2Splinter Review
Attachment #8447793 - Attachment is obsolete: true
Attachment #8448448 - Flags: review?(bzbarsky)
Summary: cycle collect CSS loader's observer array → make mozilla::css::Loader cycle collected
Comment on attachment 8448448 [details] [diff] [review] patch v2 r=me
Attachment #8448448 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: