Using _WKRemoteObjectInterface with a protocol that inherits from a non-NSObject...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Aug 2018 02:45:52 +0000 (02:45 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Aug 2018 02:45:52 +0000 (02:45 +0000)
commitc2a5271a8b61f7a9401922533422b3e0bc75fcd4
tree4e6e19139d03f4fac5a74365222e0cd66f84ef69
parent68852a71e0d212cd1f5fe57ad55f2613e1ad4ae0
Using _WKRemoteObjectInterface with a protocol that inherits from a non-NSObject protocol crashes
https://bugs.webkit.org/show_bug.cgi?id=188958

Patch by Sam Weinig <sam@webkit.org> on 2018-08-26
Reviewed by Anders Carlsson.

Source/WebKit:

* Shared/API/Cocoa/_WKRemoteObjectInterface.mm:
(initializeMethods):
Fix infinite recursion by using the passed in protocol rather
than always using the one from the initial interface.

Tools:

* TestWebKitAPI/Tests/WebKitCocoa/RemoteObjectRegistry.h:
Update test protocol to have inheritance.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/Shared/API/Cocoa/_WKRemoteObjectInterface.mm
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitCocoa/RemoteObjectRegistry.h