Bug 237862 - - [WKUIDelegate _webView:getAlternateURLFromImage:completionHandler:] is never invoked, only the synchronous version -[WKUIDelegate _webView:(alternateURLFromImage:userInfo:]
Summary: - [WKUIDelegate _webView:getAlternateURLFromImage:completionHandler:] is neve...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-14 18:22 PDT by Kevin Turner
Modified: 2022-03-16 09:39 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.