Make WebContextMenuListenerProxy a wrapper around a CompletionHandler
Created attachment 331428 [details] Patch
Created attachment 331431 [details] Patch
Comment on attachment 331431 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=331431&action=review > Source/WebKit/UIProcess/WebContextMenuListenerProxy.cpp:59 > - m_contextMenuMac = nullptr; > + m_completionHandler({ }); This seems odd to me. Do you really want to now call the completion handler on invalidation?
Comment on attachment 331431 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=331431&action=review >> Source/WebKit/UIProcess/WebContextMenuListenerProxy.cpp:59 >> + m_completionHandler({ }); > > This seems odd to me. Do you really want to now call the completion handler on invalidation? Hmmm. I guess not, which means it's not a completion handler. I think we'll just not land this patch, because an ObjC completion handler can just capture the listener like we do with authentication challenges.