Closed
Bug 1270628
Opened 8 years ago
Closed 8 years ago
Stop using content-child-shutdown observer
Categories
(Core :: DOM: Content Processes, defect)
Core
DOM: Content Processes
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)
1.81 KB,
patch
|
florian
:
review+
|
Details | Diff | Splinter Review |
2.66 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•8 years ago
|
||
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)
Assignee | ||
Comment 2•8 years ago
|
||
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)
Updated•8 years ago
|
Attachment #8749387 -
Flags: review?(florian) → review+
Updated•8 years ago
|
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+
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d9db24868efd
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•