Closed
Bug 611089
Opened 15 years ago
Closed 15 years ago
The private browsing service can leak windows
Categories
(Firefox :: Private Browsing, defect)
Firefox
Private Browsing
Tracking
()
RESOLVED
FIXED
Firefox 4.0b8
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
(Keywords: memory-leak)
Attachments
(1 file)
|
2.02 KB,
patch
|
Gavin
:
review+
dveditz
:
approval1.9.2.13+
dveditz
:
approval1.9.1.16+
|
Details | Diff | Splinter Review |
I noticed that running some browser-chrome tests alone reports memory leaks. I investigated this, and with the help of the folks on #jsapi, now I know the cause. We have _windowsToClose as a prototype property, and here we assign to it: <http://mxr.mozilla.org/mozilla-central/source/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js#551>. This assignment actually affects the instance, not the prototype, which causes the original array on the prototype to coexist with the new array.
The fix is simple, we should just have _windowsToClose as an instance variable.
| Assignee | ||
Updated•15 years ago
|
blocking2.0: --- → ?
| Assignee | ||
Comment 1•15 years ago
|
||
Attachment #489577 -
Flags: review?(gavin.sharp)
Attachment #489577 -
Flags: approval2.0?
Updated•15 years ago
|
Attachment #489577 -
Flags: review?(gavin.sharp)
Attachment #489577 -
Flags: review+
Attachment #489577 -
Flags: approval2.0?
Updated•15 years ago
|
blocking2.0: ? → betaN+
Updated•15 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs landing]
| Assignee | ||
Comment 2•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → Firefox 4.0b8
| Assignee | ||
Comment 3•15 years ago
|
||
We should take this on branches as well.
blocking1.9.1: --- → ?
blocking1.9.2: --- → ?
| Assignee | ||
Updated•15 years ago
|
Attachment #489577 -
Flags: approval1.9.2.13?
Attachment #489577 -
Flags: approval1.9.1.16?
Comment 4•15 years ago
|
||
Not a branch blocker but seems good to take.
Comment 5•15 years ago
|
||
Comment on attachment 489577 [details] [diff] [review]
Patch (v1)
Approved for 1.9.2.13 and 1.9.1.16, a=dveditz for release-drivers
Attachment #489577 -
Flags: approval1.9.2.13?
Attachment #489577 -
Flags: approval1.9.2.13+
Attachment #489577 -
Flags: approval1.9.1.16?
Attachment #489577 -
Flags: approval1.9.1.16+
| Assignee | ||
Comment 6•15 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•