Closed
Bug 738167
Opened 14 years ago
Closed 14 years ago
[New Tab Page] Links keep newtab-site elements alive
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
INVALID
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
(Whiteboard: [MemShrink])
Attachments
(2 obsolete files)
When pinning links or creating sites and directly copying those object to JSM structures, these can keep newtab-site divs alive.
Attachment #608266 -
Flags: review?(dietrich)
| Assignee | ||
Comment 1•14 years ago
|
||
I think this is the cause of bug 723832. I couldn't reproduce the leak locally but the signature looks like this could be the culprit.
Comment 2•14 years ago
|
||
Comment on attachment 608266 [details] [diff] [review]
patch v1
> finish: function () {
> function cleanupAndFinish() {
>+ cw = cells = null;
shouldn't be needed
| Assignee | ||
Comment 3•14 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #2)
> > function cleanupAndFinish() {
> >+ cw = cells = null;
>
> shouldn't be needed
Yeah, probably not, at least not directly for this bug. I noticed it fixed one of the document leaks that were reported when running the newtab test suite locally - but as these reports aren't too accurate anyway I guess we can leave this out.
| Assignee | ||
Comment 4•14 years ago
|
||
Removed the head.js change.
Attachment #608266 -
Attachment is obsolete: true
Attachment #608266 -
Flags: review?(dietrich)
Attachment #608271 -
Flags: review?(dao)
Comment 5•14 years ago
|
||
Comment on attachment 608271 [details] [diff] [review]
patch v2
> function Site(aNode, aLink) {
> this._node = aNode;
> this._node._newtabSite = this;
>
>- this._link = aLink;
>+ // Create a copy of the link so that it doesn't keep us alive.
>+ this._link = {title: aLink.title, url: aLink.url};
>
> this._render();
> this._addEventHandlers();
> }
What's keeping the Site instances alive?
Updated•14 years ago
|
Whiteboard: [MemShrink]
| Assignee | ||
Comment 6•14 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #5)
> What's keeping the Site instances alive?
So I did some more investigations and turns out this bug is nonsense. Links don't really keep newtab-site divs alive.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
| Assignee | ||
Updated•14 years ago
|
Attachment #608271 -
Attachment is obsolete: true
Attachment #608271 -
Flags: review?(dao)
You need to log in
before you can comment on or make changes to this bug.
Description
•