You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/ExtendedProcessFailed.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,18 @@ The updated API is detailed below. We'd appreciate your feedback.
8
8
9
9
# Description
10
10
We propose to add new cases for which the `ProcessFailed` event is raised:
11
-
1. When a frame-only render process fails. Only subframes within the `CoreWebView2` are impacted in this case (the content is gone and replaced with an error page).
11
+
1. When a frame-only render process fails. Only subframes within the `CoreWebView2` are affected in this case (the content is gone and replaced with an error page).
12
12
2. When a WebView2 Runtime child process other than the browser process or a render process fails. The app can use these process failures for logging and telemetry purposes.
13
13
14
14
We also propose extending the `ProcessFailedEventArgs` to provide additional information about the process failure:
15
15
* Reason of the failure.
16
16
* Exit code.
17
17
* Process description.
18
-
*Impacted frames for (1) above.
18
+
*Affected frames for (1) above.
19
19
20
20
21
21
# Examples
22
-
The following code snippets demonstrate how the `ProcessFailedEventArgs2` can be used by the host application:
22
+
The following code snippets demonstrate how the updated `ProcessFailedEventArgs` can be used by the host application:
*`ProcessFailedKind` in the event args will be `RENDER_PROCESS_EXITED` if the failed process is the main frame's renderer, even if there were subframes rendered by such process. All frames are gone when this happens and `ImpactedFrames` will be `null` as the attribute is intended for frame-only renderer failures only.
353
+
*`ProcessFailedKind` in the event args will be `RENDER_PROCESS_EXITED` if the failed process is the main frame's renderer, even if there were subframes rendered by such process. All frames are gone when this happens and `FrameInfosForFailedProcess` will be `null` as the attribute is intended for frame-only renderer failures only.
354
354
355
355
*`Reason` in the event args is always `UNEXPECTED` when `ProcessFailedKind` is `BROWSER_PROCESS_EXITED`, and `UNRESPONSIVE` when `ProcessFailedKind` is `RENDER_PROCESS_UNRESPONSIVE`.
0 commit comments