[Webkit-unassigned] [Bug 225941] WKRemoteObjectRegistry _invokeMethod needs to check for nil completionHandlers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 18 17:55:43 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225941
--- Comment #3 from Alex Christensen <achristensen at apple.com> ---
Comment on attachment 428999
--> https://bugs.webkit.org/attachment.cgi?id=428999
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=428999&action=review
> Source/WebKit/ChangeLog:10
> + _invokeMethod's argument-checking loop needs to be run
> + even if replyInfo is nil, as otherwise we can call perform an invocation
> + with a nil completion handler.
I'm not sure this description is complete. I think the problem is that we call [invocation invoke] on an invocation that says it has a block argument by having the description be "@?" but doesn't actually have one.
The change looks good, though. I'm not sure a log is necessary but it wouldn't hurt. The other logs are to help with legitimate use, but this can't happen with legitimate use.
> Tools/TestWebKitAPI/Tests/WebKitCocoa/IPCTestingAPI.mm:112
> +TEST(IPCTestingAPI, CanDetectNilReplyBlocks)
Test needs some work. It passes for me even without the fix.
--
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/20210519/e7d4f47f/attachment-0001.htm>
More information about the webkit-unassigned
mailing list