Closed Bug 839086 Opened 11 years ago Closed 1 year ago

In about:memory, blame detached windows on their opener

Categories

(Toolkit :: about:memory, defect)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: justin.lebar+bug, Unassigned)

References

Details

(Whiteboard: [MemShrink:P2])

We currently stick all detached windows in a global bucket in about:memory.

But khuey realized that we can do better than this by merely walking the window.parent/opener chain!

Actually, it's not that simple, because if you remove an iframe from the document, its parent becomes null.  So we'd just have to record the old parent at some point (e.g. when we create the window).

Popup windows have a similar problem: You can null out window.opener.  We can either handle this the same way as we handle parent, or we can ignore this, because most page probably won't null out opener.
Whiteboard: [MemShrink] → [MemShrink:P2]
I don't think I'm going to do this anytime soon.
Assignee: khuey → nobody
Severity: normal → S3

I don't think this is particularly worth leaving open. I don't think detached windows are a huge deal, and in the Fission era I don't know if the useful information will all be in the same process anyways.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.