WebView2Feedback
WebView2Feedback copied to clipboard
[Problem]: Impossible to use GetFavicon in synchronous manner
What happened?
The callback provided to GetFavicon is never called when waiting for the result by entering the message-loop.
Example Code:
web_view15->GetFavicon(COREWEBVIEW2_FAVICON_IMAGE_FORMAT_PNG,
Callback<GetFavicon>(callback).Get());
// Wait for the result and call PeekMessage continuously
Is it possible to somehow get the favicon in a synchronous manner? As we've seen above, entering the message loop does not help - Is there something else we're supposed to do? The callback is triggered when not waiting for the result.
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
126.0.2592.113
SDK Version
1.0.2592.51
Framework
Win32
Operating System
Windows 10
OS Version
19045.4529
Repro steps
- Call
GetFavicon - Wait for result to be ready by handling remaining messages via
PeekMessage
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response