RESOLVED FIXED 226754
iOS - VoiceOver reads the old heading text when updated with heading.firstChild.data.
https://bugs.webkit.org/show_bug.cgi?id=226754
Summary iOS - VoiceOver reads the old heading text when updated with heading.firstChi...
Andres Gonzalez
Reported 2021-06-07 20:14:17 PDT
iOS - VoiceOver reads the old heading text when updated with heading.firstChild.data.
Attachments
Patch (12.20 KB, patch)
2021-06-07 20:32 PDT, Andres Gonzalez
no flags
Patch (19.13 KB, patch)
2021-06-08 20:18 PDT, Andres Gonzalez
no flags
Patch (19.13 KB, patch)
2021-06-08 20:25 PDT, Andres Gonzalez
no flags
Patch (19.19 KB, patch)
2021-06-09 07:41 PDT, Andres Gonzalez
no flags
Radar WebKit Bug Importer
Comment 1 2021-06-07 20:14:28 PDT
Andres Gonzalez
Comment 2 2021-06-07 20:17:57 PDT
Andres Gonzalez
Comment 3 2021-06-07 20:32:55 PDT
chris fleizach
Comment 4 2021-06-07 20:46:17 PDT
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
Andres Gonzalez
Comment 5 2021-06-08 20:18:51 PDT
Andres Gonzalez
Comment 6 2021-06-08 20:25:15 PDT
Andres Gonzalez
Comment 7 2021-06-08 20:27:58 PDT
(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.
chris fleizach
Comment 8 2021-06-08 20:44:50 PDT
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?
Andres Gonzalez
Comment 9 2021-06-09 07:41:51 PDT
Andres Gonzalez
Comment 10 2021-06-09 07:43:21 PDT
(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.
EWS
Comment 11 2021-06-09 17:11:48 PDT
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].
Note You need to log in before you can comment on or make changes to this bug.