Bug 200277 - AX: com.apple.WebKit.WebContent at com.apple.WebKit: -[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames]
Summary: AX: com.apple.WebKit.WebContent at com.apple.WebKit: -[WKAccessibilityWebPage...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: chris fleizach
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-07-30 11:37 PDT by chris fleizach
Modified: 2019-07-31 07:38 PDT (History)
4 users (show)

See Also:


Attachments
patch (1.91 KB, patch)
2019-07-30 11:39 PDT, chris fleizach
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2019-07-30 11:37:04 PDT
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
Comment 1 chris fleizach 2019-07-30 11:37:16 PDT
<rdar://problem/49475009>
Comment 2 chris fleizach 2019-07-30 11:39:10 PDT
Created attachment 375166 [details]
patch
Comment 3 Per Arne Vollan 2019-07-30 17:45:56 PDT
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 4 chris fleizach 2019-07-30 17:46:58 PDT
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 5 chris fleizach 2019-07-31 07:06:55 PDT
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.
Comment 6 Per Arne Vollan 2019-07-31 07:20:15 PDT
(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 7 WebKit Commit Bot 2019-07-31 07:38:48 PDT
Comment on attachment 375166 [details]
patch

Clearing flags on attachment: 375166

Committed r248038: <https://trac.webkit.org/changeset/248038>
Comment 8 WebKit Commit Bot 2019-07-31 07:38:50 PDT
All reviewed patches have been landed.  Closing bug.