Bug 246904

Summary: AX: Simplify AXObjectCache by making better use of AXIsolatedTree::treeForPageID(std::optional<PageIdentifier>)
Product: WebKit Reporter: Tyler Wilcock <tyler_w>
Component: AccessibilityAssignee: Tyler Wilcock <tyler_w>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, 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 Flags
Patch none

Description Tyler Wilcock 2022-10-22 11:51:58 PDT
Several places in AXObjectCache manually check that m_pageID is not std::nullopt rather than using the existing AXIsolatedTree::treeForPageID(std::optional<PageIdentifier>) method.
Comment 1 Radar WebKit Bug Importer 2022-10-22 11:52:10 PDT
<rdar://problem/101462585>
Comment 2 Tyler Wilcock 2022-10-22 11:54:36 PDT
Created attachment 463168 [details]
Patch
Comment 3 EWS 2022-10-22 20:51:11 PDT
Committed 255891@main (ff6a48ca8eab): <https://commits.webkit.org/255891@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 463168 [details].