| Summary: | iOS - VoiceOver reads the old heading text when updated with heading.firstChild.data. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Andres Gonzalez <andresg_22> | ||||||||||
| Component: | Accessibility | Assignee: | Andres Gonzalez <andresg_22> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | aboxhall, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Andres Gonzalez
2021-06-07 20:14:17 PDT
Created attachment 430804 [details]
Patch
Comment on attachment 430804 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430804&action=review > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:689 > + String headingLabel = parent->descriptionAttributeValue(); can use auto here Created attachment 430937 [details]
Patch
Created attachment 430938 [details]
Patch
(In reply to chris fleizach from comment #4) > Comment on attachment 430804 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=430804&action=review > > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:689 > > + String headingLabel = parent->descriptionAttributeValue(); > > can use auto here Done, although not a fan of using auto instead of types like String, unless there is a reason for it, don't think it gains in readability. Comment on attachment 430938 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430938&action=review > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1191 > + if (backingObject->roleValue() == AccessibilityRole::StaticText) { Can we check here if it has the heading trait before looking for the ancestor? Created attachment 430964 [details]
Patch
(In reply to chris fleizach from comment #8) > Comment on attachment 430938 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=430938&action=review > > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1191 > > + if (backingObject->roleValue() == AccessibilityRole::StaticText) { > > Can we check here if it has the heading trait before looking for the > ancestor? Yes, done. Committed r278683 (238660@main): <https://commits.webkit.org/238660@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430964 [details]. |