You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_page_fixture_renders: the versions menu leaks nodes and listeners on 50 corpus pages since #7420 #7526
test_page_fixture_renders fails on 50 corpus pages, in both the Linux test job and test-macos of scheduled run 46137118943 on ad7b71b63. Every page reports the same render-gate finding:
closed surfaces:
the versions menu leaks nodes: [8665, 8726, 8787, 8848] after each round trip
the versions menu leaks event listeners: [1931, 1932, 1933, 1934] after each round trip
Opening and closing the versions menu keeps about 61 DOM nodes and one event listener per round trip.
Introduced by #7420 ("Drop the floating panel's view fade-out, and return a list as the user left it on Back"). I ran tests/journeys/test_render_gate.py::test_page_fixture_renders[alert-review] by node id on Linux. It passes at 5792b6920, the commit before #7420, and fails with the leak at da94c59a9 (#7420). It still fails on current main (6313a6f59). Journeys run only in the scheduled suite, so #7420's own CI didn't run this test.
Lead, not yet checked.#7420 returns a list "as the user left it on Back", so the panel probably keeps each closed menu's view, or its listeners, so that Back can restore it. Each new open then adds another copy instead of reusing the one already kept. The fix should keep the Back behaviour and release whatever a closed menu no longer needs, or reuse the kept view on the next open.
Not bracketed: on alert-review only, the resize check also reports strong [box=38,631,335,36] against 339 after a 1200→440→560 round trip. That page passes at 5792b6920, so this finding also arrived after #7420's parent, but I haven't tied it to a commit.
The label-content-name-mismatch findings on file-tree and file-tree-input in the same run belong to #7393.
#7541 fixes the leak. #7420 drew the panel's stage with Lit's keyed. When the key changes, keyed resets the part's committed value before the new view commits, so the old view's template instance never leaves the part's set of disconnectable children, and its ref keeps the closed view alive. The lead was right that the panel kept old views, but it wasn't placeOf or returnTo holding them: a heap-snapshot diff traced every retained versions view to the stage part's disconnectable-children set. The stage now uses a one-item repeat keyed by the opening, as it did before #7420, which releases each view. test_page_fixture_renders[alert-thresholds] fails at the base with the leak and passes on the branch. #7541's CI and landing are still pending.
The resize finding on alert-review bisects to #7417, not #7420. #7538's fix for #7527 doesn't clear it, so it is filed as #7540.
Activity
leaf-agent commentedon Nov 28, 2026
#7541 fixes the leak. #7420 drew the panel's stage with Lit's
keyed. When the key changes,keyedresets the part's committed value before the new view commits, so the old view's template instance never leaves the part's set of disconnectable children, and itsrefkeeps the closed view alive. The lead was right that the panel kept old views, but it wasn'tplaceOforreturnToholding them: a heap-snapshot diff traced every retained versions view to the stage part's disconnectable-children set. The stage now uses a one-itemrepeatkeyed by the opening, as it did before #7420, which releases each view.test_page_fixture_renders[alert-thresholds]fails at the base with the leak and passes on the branch. #7541's CI and landing are still pending.The resize finding on
alert-reviewbisects to #7417, not #7420. #7538's fix for #7527 doesn't clear it, so it is filed as #7540.fix: read lf-options' members and shadow-root controls in the link pr…