Skip to content

top(none)/detached/window(chrome://browser/content/browser.xul)/dom/event-listeners lingers until restart #886

Description

@Fanolian

The test is done with about:memory in Nightly and TST nightly version (currently 0.15.2015031900a181223)

Steps to reproduce:

  1. In a new profile, install TST in Nightly. Leave all settings as default
  2. Open one tab and only in one window. Go to about:memory.
  3. Minimize memory usage a few times then measure. The result at Main Process - Other Measurements - event-counts should be similar to :
1,551 (100.0%) -- event-counts
└──1,551 (100.0%) -- window-objects
   ├──1,299 (83.75%) -- top(chrome://browser/content/browser.xul, id=3)/active
   │  ├──1,298 (83.69%) -- window(chrome://browser/content/browser.xul)/dom
   │  │  ├──1,295 (83.49%) ── event-listeners
   │  │  └──────3 (00.19%) ── event-targets
   │  └──────1 (00.06%) ── window(about:blank)/dom/event-targets
   ├────214 (13.80%) -- top(about:newtab, id=17)/active/window(about:newtab)/dom
   │    ├──212 (13.67%) ── event-listeners
   │    └────2 (00.13%) ── event-targets
   ├─────21 (01.35%) ++ (4 tiny)
   └─────17 (01.10%) ++ top(about:memory, id=9)/active/window(about:memory)/dom
  1. Open a new window or a new private window, then close it.
  2. Minimize memory usage and measure again. a top(none)/detached/window(chrome://browser/content/browser.xul)/dom/event-listeners is created.
  3. Repeat step 4 and 5 a few times. More top(none)/detached/… are created and cannot be destroyed unless restarting Nightly. This may end up like:
9,982 (100.0%) -- event-counts
└──9,982 (100.0%) -- window-objects
   ├──8,632 (86.48%) ── top(none)/detached/window(chrome://browser/content/browser.xul)/dom/event-listeners [12]
   ├──1,299 (13.01%) -- top(chrome://browser/content/browser.xul, id=3)/active
   │  ├──1,298 (13.00%) -- window(chrome://browser/content/browser.xul)/dom
   │  │  ├──1,295 (12.97%) ── event-listeners
   │  │  └──────3 (00.03%) ── event-targets
   │  └──────1 (00.01%) ── window(about:blank)/dom/event-targets
   └─────51 (00.51%) ++ (6 tiny)

Without TST, top(none)/detached/… is gone after minimizing memory usage.

I don't know if this issue impacts TST's functions or Firefox's performance (as I know nothing about coding), but this is definitely something abnormal.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions