iOS - VoiceOver reads the old heading text when updated with heading.firstChild.data.
<rdar://problem/78979269>
rdar://44949563
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].