[Feature]: Add FrameDOMContentLoaded event
Describe the feature/enhancement you need
Like how we have FrameNavigationCompleted, I would like a FrameDOMContentLoaded event.
While there is this event on the Frame object, I can't intercept that frame object for nested iframes as per this issue: https://github.com/MicrosoftEdge/WebView2Feedback/issues/2440
The scenario/use case where you would use this feature
need to detect when DOM content loaded for nested iframes
How important is this request to you?
Impactful. My app's user experience would be significantly compromised without it.
Suggested implementation
No response
What does your app do? Is there a pending deadline for this request?
No response
what is your scenario for nested iframes - why do you need it?
@vbryh-msft well, we have some of our app code in iframes, and those views might host iframes to third party content, and we want to track when those third-party frames navigate, so, for example, we can remember frame history and have a back button that takes you back to the previous page you were on.
can you use FrameNavigationStarting for that?
@vbryh-msft I am using that, but want this other event.
Actually, I'm not totally sure if DomContentLoaded is even the event I want. Maybe you can offer some guidance here.
I am migrating from an Electron app where I hooked into did-start-navigation (analagous to FrameNavigationStarting), did-frame-navigate (analagous to FrameNavigationCompleted), and did-frame-finish-load (I'm actually not sure what this would be analagous to since according to the navigation events docs NavigationCompleted is the last event, whereas did-frame-finish-load fires after did-frame-navigate)