Bug 237820
| Summary: | [WPE] accessibility/native-text-control-attributed-string.html is timing out since added in 247692@main | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
| Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | andresg_22, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=237821 | ||
Lauro Moura
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).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/90230256>
Radar WebKit Bug Importer
<rdar://problem/90230336>