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
media elements that are played to the end and have no other references should be GCed #49351
#48979 fixed the case that media elements would be GCed too quickly, but they still should be GCed if the element finished playing (and no other references exist).
Leaktest should be added.
To Reproduce:
verified LLM generated reproducer, not posting due to project policy.
Platform:
Specify OS, distribution, and hardware platform.
awaitTestUtils.gc();awaitTestUtils.gc();assert_not_equals(weakElem.deref(),undefined);// Wait for the audio to have finished playingawaitp2;// Ensure that after it has finished playing, it is properly cleaned upawaitTestUtils.gc();awaitTestUtils.gc();assert_equals(weakElem.deref(),undefined);
Activity
TimvdLippe commentedon Oct 28, 2026
FYI @sabbCodes
TimvdLippe commentedon Oct 28, 2026
Leak tests can be added to https://github.com/servo/servo/tree/main/tests/wpt/mozilla/tests/memory I think we should move
tests/wpt/mozilla/tests/mozilla/playing_media_no_gc.htmlinto that directory and modify it to be:sabbCodes commentedon Oct 28, 2026
Thanks for the mention.
Will take it.
@servo-highfive: assign me
servo-highfive commentedon Oct 28, 2026
Hey @sabbCodes! Thanks for your interest in working on this issue. It's now assigned to you!
script: GC media elements after playback ends (servo#49367)