Rewrite flaky document leak tests with testDocumentIsNotLeaked Some document leak tests are using internals.numberOfLiveDocuments() and flaky. Bug 146182 – editing/selection/leak-document-with-selection-inside.html is flaky Bug 190890 – [macOS Release WK1] Layout Test editing/selection/navigation-clears-editor-state.html is a flaky failure Bug 215177 – [ macOS iOS wk2 Release] editing/selection/navigation-clears-editor-state.html is a flaky failure Bug 226598 – [MacOS & iOS] animations/leak-document-with-css-animation.html is a flaky failure 224541@main added testDocumentIsNotLeaked for the document leak tests.
Created attachment 460787 [details] Patch
Comment on attachment 460787 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=460787&action=review > LayoutTests/fast/workers/worker-document-leak.html:39 > + await waitForDoneMessage() Missing semicolon at the end.
Created attachment 460807 [details] Patch for landing
Committed 252375@main (e0c7afc43de0): <https://commits.webkit.org/252375@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 460807 [details].
<rdar://problem/96872567>
*** Bug 146182 has been marked as a duplicate of this bug. ***