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
In the current case of nested iframes, the [PermissionRequested](https://learn.microsoft.com/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2frame#permissionrequested)
171
171
and [ScreenCaptureStarting](https://learn.microsoft.com/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2frame#screencapturestarting)
172
172
events will be raised from the top-level iframe. With the support
173
-
of tracking nested iframes, this request can be handled directly
174
-
by the nested iframe. Therefore, we now raise these requests to
173
+
of tracking nested iframes, we can now handle these requests directly
174
+
within the nested iframe. Specifically, these requests are raised to
175
175
the nearest tracked frame, which is the `CoreWebView2Frame` closest
176
176
to the frame that initiates the request (from bottom to top).
177
177
```
@@ -197,6 +197,14 @@ subscribe to the `CoreWebView2Frame.FrameCreated` event.
197
197
Therefore, requests originating from iframes will still be
198
198
raised from the first-level iframe.
199
199
200
+
If the `PermissionRequested` event is not handled in the current
201
+
tracked frame, the request will propagate to its parent
202
+
`CoreWebView2Frame`, or to `CoreWebView2` if the parent frame
203
+
is the main frame. For example, if frame D is tracked but does
204
+
not handle the request, the request will bubble up to frame C.
205
+
If frame C handles the request, it will not propagate further
206
+
to its parent frame B.
207
+
200
208
### `CoreWebView2.ProcessFailed`
201
209
With the support of tracking nested iframes, the processes
202
210
which support these nested iframes will be also tracked by
0 commit comments