Bug 237820 - [WPE] accessibility/native-text-control-attributed-string.html is timing out since added in 247692@main
Summary: [WPE] accessibility/native-text-control-attributed-string.html is timing out ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-13 22:52 PDT by Lauro Moura
Modified: 2022-03-13 23:11 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2022-03-13 22:52:21 PDT
accessibility/native-text-control-attributed-string.html

When the test invokes textField.attributedStringForRange(), it uses the attributes' start and end offsets to show the substring related to these attributes.

But during the calculation of the endOffset, it returns early with 0 from inside HTMLTextFormControlElement::indexForVisiblePosition. There the check for `!innerText->contains(position.deepEquivalent().anchorNode())` fails.

This causes attributedStringForRange() to loop infinitely over the same indexes (or loop wrongly, if the location given to it is different from zero).
Comment 1 Radar WebKit Bug Importer 2022-03-13 22:52:32 PDT
<rdar://problem/90230256>
Comment 2 Radar WebKit Bug Importer 2022-03-13 22:54:50 PDT
<rdar://problem/90230336>