[Webkit-unassigned] [Bug 251028] New: [Cocoa] _WKFeature instances fail bincompat isKindOfClass: check

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 23 11:58:07 PST 2023


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

            Bug ID: 251028
           Summary: [Cocoa] _WKFeature instances fail bincompat
                    isKindOfClass: check
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: emw at apple.com

As part of the feature status rollout, we replaced the _WKExperimentalFeature / _WKInternalDebugFeature class dichotomy with a single _WKFeature base class. For bincompat, our legacy endpoints lie about their instance type and declare e.g. an NSArray<_WKExperimentalFeature *>, when the actual instance types are _WKFeature.

This matches existing behavior but causes feature instances to fail a isKindOfClass:[_WKExperimentalFeature class] check.

If we're going to lie about this, we probably need to lie more completely and override isKindOfClass.

-- 
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/20230123/22b1eaa7/attachment-0001.htm>


More information about the webkit-unassigned mailing list