WebView2 c++ CallDevToolsProtocolMethod limitation

Balash, Omer 1 Reputation point
2020-11-08T14:06:42.8+00:00

Hi all,

I am facing an issue where CallDevToolsProtocolMethod only works for me from inside the context of a WebView callback. If I try to randomly call it (from the same thread the webview was created in). it doesnt work and i get no hint as to why it is failing. GetLastError returns 0, the callback I register is not called at all to report any failure case.

Is this intended? other APIs (reload, navigate, executeScripte etc) work fine so i am not sure why this is the odd one out.

Thanks,
Omer

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,355 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.