ICoreWebView2GetCookiesCompletedHandler is not called if the WebView is idle

Balash, Omer 1 Reputation point
2025-01-29T12:29:56.9433333+00:00

Hello,

I am using ICoreWebView2CookieManager and am trying to fetch a list of cookies via GetCookies. If i have a WebView that is constantly navigating to various pages it is eventually called. But if i have a hidden WebView, that does nothing but idle. The handler is never called. I am certain that my event loop is running, the callback is just not called. Could you please recommend a way to ensure this will be invoked without explicit user interaction?

Thanks,

Omer

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,437 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,837 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.