Closed Bug 738167 Opened 14 years ago Closed 14 years ago

[New Tab Page] Links keep newtab-site elements alive

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ttaubert, Assigned: ttaubert)

References

Details

(Whiteboard: [MemShrink])

Attachments

(2 obsolete files)

Attached patch patch v1 (obsolete) — Splinter Review
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)
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 on attachment 608266 [details] [diff] [review] patch v1 > finish: function () { > function cleanupAndFinish() { >+ cw = cells = null; shouldn't be needed
(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.
Attached patch patch v2 (obsolete) — Splinter Review
Removed the head.js change.
Attachment #608266 - Attachment is obsolete: true
Attachment #608266 - Flags: review?(dietrich)
Attachment #608271 - Flags: review?(dao)
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?
Whiteboard: [MemShrink]
(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
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.

Attachment

General

Created:
Updated:
Size: