...
<rdar://problem/113888778>
rdar://113689647
Created attachment 467277 [details] Patch
(In reply to Tyler Wilcock from comment #3) > Created attachment 467277 [details] > Patch diff --git a/LayoutTests/accessibility/editable-webpage-focused-ui-element.html b/LayoutTests/accessibility/editable-webpage-focused-ui-element.html new file mode 100644 index 000000000000..893a3aad6d79 --- /dev/null +++ b/LayoutTests/accessibility/editable-webpage-focused-ui-element.html + output += evalAndReturn("internals.setSelectionFromNone();"); Do we need evalAndReturn or you could just call internals.setSelectionFromNone? + // Wait for focus to sync to the <body> and update the AX tree as a result of setSelectionFromNone(). + await sleep(100); Can we make this deterministic with a waitFor? Waiting for hard-coded intervals often leads to flaky behaviors.
(In reply to Andres Gonzalez from comment #4) > (In reply to Tyler Wilcock from comment #3) > > Created attachment 467277 [details] > > Patch > > diff --git > a/LayoutTests/accessibility/editable-webpage-focused-ui-element.html > b/LayoutTests/accessibility/editable-webpage-focused-ui-element.html > new file mode 100644 > index 000000000000..893a3aad6d79 > --- /dev/null > +++ b/LayoutTests/accessibility/editable-webpage-focused-ui-element.html > > + output += evalAndReturn("internals.setSelectionFromNone();"); > > Do we need evalAndReturn or you could just call > internals.setSelectionFromNone? > > + // Wait for focus to sync to the <body> and update the AX tree as a > result of setSelectionFromNone(). > + await sleep(100); > > Can we make this deterministic with a waitFor? Waiting for hard-coded > intervals often leads to flaky behaviors. Will address these in a follow-up, thanks.
Committed 266917@main (30959c84f8ab): <https://commits.webkit.org/266917@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 467277 [details].