Closed Bug 1270628 Opened 8 years ago Closed 8 years ago

Stop using content-child-shutdown observer

Categories

(Core :: DOM: Content Processes, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: billm, Assigned: billm)

References

(Blocks 1 open bug)

Details

(Whiteboard: btpp-active)

Attachments

(2 files)

This observer is only supposed to be used for things that need to send persistent data to the parent process before shutdown (e.g., telemetry or session store data). It shouldn't be used to remove observers or release memory, since we want to avoid doing those things in opt builds.

I'm going to remove some of these uses in this bug. The others will be handled in bug 1270308.
Attached patch webrtc patchSplinter Review
This one uses an xpcom-shutdown observer for WebRTC. That will cause us to remove the observers in DEBUG builds but do nothing in opt builds, which is what we want.
Attachment #8749387 - Flags: review?(florian)
This does the same thing for nsPerformanceStats. It already listens for xpcom-will-shutdown, so we can just remove the content-child-shutdown observer.
Attachment #8749390 - Flags: review?(dteller)
Attachment #8749387 - Flags: review?(florian) → review+
Whiteboard: btpp-active
Comment on attachment 8749390 [details] [diff] [review]
nsPerformanceStats fix

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

If this doesn't cause memory leaks in DEBUG, I'm fine with that change.
Attachment #8749390 - Flags: review?(dteller) → review+
https://hg.mozilla.org/mozilla-central/rev/d9db24868efd
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: