Skip to content

[Feature]: Pass Uri and FrameId into Frame::NavigationCompleted and NavigationStarted event handler #4604

Open

Description

@pushkin-

Describe the feature/enhancement you need

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.

NavStarting args have Uri but not FrameId

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?

No response

AB#53262297

Activity

  1. changed the title [-][Feature]: [/-] [+][Feature]: Pass Uri and FrameId into Frame::NavigationCompleted event handler[/+] on May 31, 2024
  2. userbabu commented on Jun 21, 2024

    @userbabu

    Yes, it's very useful, but unfortunately he didn't

  3. 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
  4. added
    tracked
    on Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature requesttracked

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions