Bug 244687 - AX ITM: pass Ref<AXCoreObject> to live objects by reference.
Summary: AX ITM: pass Ref<AXCoreObject> to live objects by reference.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-01 14:32 PDT by Andres Gonzalez
Modified: 2022-09-02 12:22 PDT (History)
11 users (show)

See Also:


Attachments
Patch (8.18 KB, patch)
2022-09-01 14:45 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff
Patch (8.94 KB, patch)
2022-09-01 18:08 PDT, Andres Gonzalez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gonzalez 2022-09-01 14:32:17 PDT
Follow up to patch in https://bugs.webkit.org/show_bug.cgi?id=241810.
Comment 1 Radar WebKit Bug Importer 2022-09-01 14:32:29 PDT
<rdar://problem/99457705>
Comment 2 Andres Gonzalez 2022-09-01 14:45:02 PDT
Created attachment 462080 [details]
Patch
Comment 3 Andres Gonzalez 2022-09-01 18:08:14 PDT
Created attachment 462082 [details]
Patch
Comment 4 Tyler Wilcock 2022-09-01 19:08:43 PDT
Comment on attachment 462082 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=462082&action=review

> Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:273
> +        AXLOG(axObject.ptr());

I think (but am not 100% sure) this will only log the memory address of the object. Does axObject.get() (which returns a reference) compile?
Comment 5 Andres Gonzalez 2022-09-02 05:21:00 PDT
(In reply to Tyler Wilcock from comment #4)
> Comment on attachment 462082 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=462082&action=review
> 
> > Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:273
> > +        AXLOG(axObject.ptr());
> 
> I think (but am not 100% sure) this will only log the memory address of the
> object. Does axObject.get() (which returns a reference) compile?

No, AXLogger::log takes a pointer not a reference, so you need ptr().
Comment 6 EWS 2022-09-02 12:22:07 PDT
Committed 254107@main (276e9d6f7b36): <https://commits.webkit.org/254107@main>

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