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
{{ message }}
Repository navigation
[Feature]: Pass Uri and FrameId into Frame::NavigationCompleted and NavigationStarted event handler #4604
I want to access the FrameId inside of the CoreWebView2::FrameNavigationCompleted or Frame::NavigationCompleted events as well as FrameNavigationStarting. See all the info here that Electron passes in a similar event.
Also to DomContentLoaded - frameID would be useful here for me.
The scenario/use case where you would use this feature
Need to detect when a frame navigates and see what frame it was. Similar to this request (which is also helpful to me) where they suggest passing the Uri property in.
I'm currently having to intercept FrameCreated and then Frame::NavigationStarting and save off e.Uri in some map, keyed by e.NavigationId, and then pull it out in Frame::NavigationCompleted
How important is this request to you?
Nice to have. There are other ways to tackle this, but having official API support would be beneficial.
Suggested implementation
pass info that Electron passes in like uri, frameId. (they have two different frameIds, maybe both make sense to pas? not sure)
What does your app do? Is there a pending deadline for this request?
changed the title [-][Feature]: Pass Uri and FrameId into Frame::NavigationCompleted event handler[/-][+][Feature]: Pass Uri and FrameId into Frame::NavigationCompleted and NavigationStarted event handler[/+]on Jul 18, 2024
Activity
[-][Feature]: [/-][+][Feature]: Pass Uri and FrameId into Frame::NavigationCompleted event handler[/+]userbabu commentedon Jun 21, 2024
Yes, it's very useful, but unfortunately he didn't
[-][Feature]: Pass Uri and FrameId into Frame::NavigationCompleted event handler[/-][+][Feature]: Pass Uri and FrameId into Frame::NavigationCompleted and NavigationStarted event handler[/+]