RESOLVED FIXED 255047
AX: AccessibilityRenderObject::addRemoteSVGChildren() should protect the created SVG object with a RefPtr
https://bugs.webkit.org/show_bug.cgi?id=255047
Summary AX: AccessibilityRenderObject::addRemoteSVGChildren() should protect the crea...
Tyler Wilcock
Reported 2023-04-05 13:25:15 PDT
Per https://github.com/WebKit/WebKit/wiki/Smart-Pointer-Usage-Guidelines: > Every object passed to a non-trivial function as an argument (including "this" pointer) should be stored as a Ref, RefPtr, CheckedRef, or CheckedPtr in the caller’s local scope Let's bring this function inline with this guidance since AccessibilityObject::addChild is not trivial. This RefPtr will be free in the common case that there is no remote SVG root object to add.
Attachments
Patch (2.09 KB, patch)
2023-04-05 13:30 PDT, Tyler Wilcock
no flags
Radar WebKit Bug Importer
Comment 1 2023-04-05 13:25:27 PDT
Tyler Wilcock
Comment 2 2023-04-05 13:30:07 PDT
EWS
Comment 3 2023-04-05 20:04:13 PDT
Committed 262656@main (ff96b4d0c120): <https://commits.webkit.org/262656@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 465783 [details].
Note You need to log in before you can comment on or make changes to this bug.