Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
AccessibilityObject::FocusedUIElement should not call AXObjectCache::…
…focusedUIElementForPage that can return an isolated object. https://bugs.webkit.org/show_bug.cgi?id=219238 Reviewed by Chris Fleizach. Since AXObjectCache::focusedUIElementForPage can return an isolated object, AccessibilityObject::focusedUIElement should not use it to determine the focused object. This causes that isolated objects may be accessed on the main thread when they shouldn't, and even infinite recursion if this happens when the isolated tree is being built. This patch changes AccessibilityObject::focusedUIElement to call AXObjectCache::focusedObjectForPage that always returns another AccessibilityObject. * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::focusedObjectForPage): (WebCore::AXObjectCache::focusedUIElementForPage): (WebCore::AXObjectCache::generateIsolatedTree): (WebCore::AXObjectCache::focusedObject): Deleted. * accessibility/AXObjectCache.h: * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::focusedUIElement const): Canonical link: https://commits.webkit.org/231863@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
1f30421
commit a717593
Showing
4 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters