Document is leaking on haaretz.co.il due to an async script.
<rdar://problem/90050632>
Created attachment 454276 [details] Patch
Created attachment 454305 [details] Patch
Comment on attachment 454305 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=454305&action=review > Source/WebCore/ChangeLog:18 > + its element is part of the DOM, in which case it would be kept alive. Looks like I was wrong. Based on LayoutTests/http/tests/misc/async-script.html, it is expected that a Script that was part of the document executes, even if it gets removed from the Document in between. I'll work on an alternative solution.
Created attachment 454369 [details] Patch
Comment on attachment 454369 [details] Patch r=me
Committed r291127 (248287@main): <https://commits.webkit.org/248287@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454369 [details].
This fix shipped with Safari 15.5 (all platforms).