6 WebKit: -[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames] <== 6 AppKit: __NSAccessibilityEntryPointParameterizedAttributeNames_block_invoke.611.llvm.16512287332241650554 6 AppKit: NSAccessibilityPerformEntryPointObject.llvm.16512287332241650554 6 AppKit: NSAccessibilityEntryPointParameterizedAttributeNames 6 AppKit: CopyParameterizedAttributeNames 6 HIServices: _AXXMIGCopyParameterizedAttributeNames
<rdar://problem/49475009>
Created attachment 375166 [details] patch
Comment on attachment 375166 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=375166&action=review R=me. > Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm:102 > + if (auto corePage = m_page->corePage()) { I think there always is a core page unless we're in the destructor of WebPage, so this check is possibly not needed.
Comment on attachment 375166 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=375166&action=review >> Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm:102 >> + if (auto corePage = m_page->corePage()) { > > I think there always is a core page unless we're in the destructor of WebPage, so this check is possibly not needed. do you want me to remove, or should I leave for safety? or is there a reference style method I should use instead of getting the pointer
Comment on attachment 375166 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=375166&action=review >>> Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm:102 >>> + if (auto corePage = m_page->corePage()) { >> >> I think there always is a core page unless we're in the destructor of WebPage, so this check is possibly not needed. > > do you want me to remove, or should I leave for safety? > or is there a reference style method I should use instead of getting the pointer leaving in for safety for now.
(In reply to chris fleizach from comment #5) > Comment on attachment 375166 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=375166&action=review > > >>> Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm:102 > >>> + if (auto corePage = m_page->corePage()) { > >> > >> I think there always is a core page unless we're in the destructor of WebPage, so this check is possibly not needed. > > > > do you want me to remove, or should I leave for safety? > > or is there a reference style method I should use instead of getting the pointer > > leaving in for safety for now. After closing the WebPage, the core page will be null. If this code is not reachable after closing, the null check could be removed, but it does not seem trivial to verify that.
Comment on attachment 375166 [details] patch Clearing flags on attachment: 375166 Committed r248038: <https://trac.webkit.org/changeset/248038>
All reviewed patches have been landed. Closing bug.