Skip to content

How to see the very first URI navigation in Dev Tools? #2011

@ShaunLoganOracle

Description

@ShaunLoganOracle

I am using Webview2 SDK 1.0.902.49, RT 96.0.1054.53 and WPF
To help with debugging, I added a call to: MyWebView2Control.CoreWebView2.OpenDevToolsWindow():
right before I set MyWebView2Control.Source = "<some valid uri that causes a 302 redirect>";
I do this in the event handler for the Loaded event for my WPF window. All the other initialization for the WebView2 has already happened.

What I observe is that the DevTools window opens as expected, and the WebView2 control shows the expected content (the login page) but I don't see any evidence in the Network or Sources tab that the initial URI was fetched. I expect to see a request for the URI that results in a 302/redirect to a login page. I do see the login page activity (fetching images & js files etc.) in the Network tab. When I submit that page, I also see that navigation in the DevToolsWindow.

Should I be able to see that initial URI in the Dev Tools window?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions