If you use aria-hidden to toggle an object's visibility, then it objects that are NOT ignored and are direct descendants of the object that is toggled will NOT be updated, and will return the incorrect child hierarchy
The fix is that we need to clearChildren() before we add a child in addChildren() for ALL elements (before we were just doing it for ignored elements)
Created attachment 118089 [details]
Comment on attachment 118089 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=118089&action=review
> + AccessibilityTableHeaderContainer* tableHeader = static_cast<AccessibilityTableHeaderContainer*>(axObjectCache()->getOrCreate(TableHeaderContainerRole));
I think i can remove the cast to AccessibilityTableHeaderContainer as it's probably unnecessary.