[Webkit-unassigned] [Bug 207066] [ macOS wk1 ] editing/execCommand/insert-nested-lists.html is flaky failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 2 14:56:59 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=207066

--- Comment #6 from Wenson Hsieh <wenson_hsieh at apple.com> ---
(In reply to Ryosuke Niwa from comment #5)
> (In reply to Alexey Proskuryakov from comment #4)
> > Presumably this part is insufficient to deflake it?
> > 
> >     // By default, AppKit on macOS coalesces undo operations that occur
> > within the same runloop. Wait until the next
> >     // runloop before inserting another unordered list to ensure that it
> > gets its own entry in the undo stack.
> >     await new Promise((resolve) => {
> >         if (window.testRunner)
> >             testRunner.runUIScript(`(function() {
> > uiController.uiScriptComplete(); })()`, resolve);
> >         else
> >             setTimeout(resolve, 500);
> >     });
> 
> Hm... going to the UI script in theory should be sufficient but I guess not.

I’m not sure if runUIScript is sufficient to ensure that the we proceed after the next runloop in WebKit1. Maybe we need to call uiController.doAsyncTask() instead?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200402/c9643a0b/attachment.htm>


More information about the webkit-unassigned mailing list