RENDER_PROCESS_UNRESPONSIVE property
final
Indicates that the main frame's render process is unresponsive. Renderer process unresponsiveness can happen for the following reasons:
- There is a long-running script being executed. For example, the web content in your WebView might be performing a synchronous XHR, or have entered an infinite loop.
- The system is busy.
The process failed event will continue to be raised every few seconds until the renderer process has become responsive again. The application can consider taking action if the event keeps being raised. For example, the application might show UI for the user to decide to keep waiting or reload the page, or navigate away.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE)
Implementation
static final RENDER_PROCESS_UNRESPONSIVE =
ProcessFailedKind._internalMultiPlatform(
'RENDER_PROCESS_UNRESPONSIVE',
() {
switch (defaultTargetPlatform) {
case TargetPlatform.windows:
return 2;
default:
break;
}
return null;
},
);