Bug 237862

Summary: - [WKUIDelegate _webView:getAlternateURLFromImage:completionHandler:] is never invoked, only the synchronous version -[WKUIDelegate _webView:(alternateURLFromImage:userInfo:]
Product: WebKit Reporter: Kevin Turner <kevin_turner>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achristensen, sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Kevin Turner 2022-03-14 18:22:40 PDT
We need to ensure we have an asynchronous path to return this information to WebKit, as any image parsing must take place asynchronously.
Comment 1 Radar WebKit Bug Importer 2022-03-14 18:42:30 PDT
<rdar://problem/90282241>
Comment 2 Alex Christensen 2022-03-15 20:09:05 PDT
getAlternateURLFromImage and alternateURLFromImage are currently hooked up to very different code paths.  Am I correct in assuming that this is a request for a version of alternateURLFromImage with a completion block?
Comment 3 Kevin Turner 2022-03-16 09:39:40 PDT
(In reply to Alex Christensen from comment #2)
> getAlternateURLFromImage and alternateURLFromImage are currently hooked up
> to very different code paths.  Am I correct in assuming that this is a
> request for a version of alternateURLFromImage with a completion block?

Yes - apologies if I've misunderstood getAlternateURLFromImage, but we do need to do the work for alternateURLFromImage asynchronously as right now we are forced to it synchronously.