In windowed manner, this event is synchronous. Until eventually you set Managed to true or maybe the event handler returns, the browser approach is blocked and outgoing cross-system COM calls will fall short with RPC_E_CANTCALLOUT_ININPUTSYNCCALL. All CoreWebView2 solutions function, on the other hand. In windowless mode, the occasion is asynchronous. https://color-generator87418.answerblogs.com/38140821/5-simple-techniques-for-color-palette