Title: [269903] trunk/LayoutTests
Revision
269903
Author
lmo...@igalia.com
Date
2020-11-17 08:38:16 -0800 (Tue, 17 Nov 2020)

Log Message

REGRESSION(r269227) [GTK] editing/selection/navigation-clears-editor-state.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=219019

Reviewed by Chris Dumez.

Apply a similar fix to what was done in
requestidlecallback/requestidlecallback-document-gc.html in the
original revision, giving the timers a spin to allow the released
documents to be collected.

* editing/selection/navigation-clears-editor-state.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (269902 => 269903)


--- trunk/LayoutTests/ChangeLog	2020-11-17 16:29:25 UTC (rev 269902)
+++ trunk/LayoutTests/ChangeLog	2020-11-17 16:38:16 UTC (rev 269903)
@@ -1,3 +1,17 @@
+2020-11-17  Lauro Moura  <lmo...@igalia.com>
+
+        REGRESSION(r269227) [GTK] editing/selection/navigation-clears-editor-state.html is flaky
+        https://bugs.webkit.org/show_bug.cgi?id=219019
+
+        Reviewed by Chris Dumez.
+
+        Apply a similar fix to what was done in
+        requestidlecallback/requestidlecallback-document-gc.html in the
+        original revision, giving the timers a spin to allow the released
+        documents to be collected.
+
+        * editing/selection/navigation-clears-editor-state.html:
+
 2020-11-17  Rob Buis  <rb...@igalia.com>
 
         Null check anchorNode of endingSelection start

Modified: trunk/LayoutTests/editing/selection/navigation-clears-editor-state.html (269902 => 269903)


--- trunk/LayoutTests/editing/selection/navigation-clears-editor-state.html	2020-11-17 16:29:25 UTC (rev 269902)
+++ trunk/LayoutTests/editing/selection/navigation-clears-editor-state.html	2020-11-17 16:38:16 UTC (rev 269903)
@@ -51,11 +51,12 @@
     let resolved = 0;
     for (let frame of frames) {
         frame.src = ""
-        frame._onload_ = () => {
+        frame._onload_ = async () => {
             ++resolved;
             if (resolved !== count)
                 return;
             let before = internals.numberOfLiveDocuments();
+            await wait(0);
             GCController.collect();
             let after = internals.numberOfLiveDocuments();
             let delta = before - after;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to