[Webkit-unassigned] [Bug 231956] New: WebKit Objective-C classes should use weak delegates

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 19 08:38:50 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=231956

            Bug ID: 231956
           Summary: WebKit Objective-C classes should use weak delegates
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: kkinnunen at apple.com,
                    webkit-bug-importer at group.apple.com

WebKit Objective-C classes should use weak delegates.

Found by doing a search for delegate properties using `assign` in WebKit:

    $ find Source/WebKit -name \*.h -exec grep -l 'assign.*delegate' {} \;

Note that 3 out of the 4 fixes are just documenting that the `_delegate` instance variable is already held using WeakObjCPtr<>.

The fourth change actually makes the `delegate` property weak.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211019/bb0a5d3b/attachment-0001.htm>


More information about the webkit-unassigned mailing list