Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem/Bug]: WebView2 makes request to http://edge.microsoft.com/browsernetworktime/time/1/current?cup2key=[...] #5047

Open
lliverton opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@lliverton
Copy link

lliverton commented Jan 17, 2025

What happened?

Description

WebView2 makes a background requests to http://edge.microsoft.com/browsernetworktime/time/1/current?cup2key=[...]

Version
SDK: 1.0.2792.45
Runtimes:

  • 134.0.3080.0 Canary
  • 133.0.3065.7 Dev

Framework: WPF
OS: Win11

The returned json contains come curious characters at the start and then a current time and a nonce.

)]}'
{"current_time_millis":1737106442557,"server_nonce ":2.7029712098304446E+20}

This request started appearing since Edge Canary version 133.0.3037.0 in our automated tests ran against pre-release Edge channels. It's not a feature that is enabled in WebView2 and it is sensitive from a privacy perspective. Can this be removed?

Here are previous tickets raised to disable network requests:
#4180
#2671

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

134.0.3080.0 Canary

SDK Version

1.0.2792.45

Framework

WPF

Operating System

Windows 11

OS Version

No response

Repro steps

Start Fiddler or a similar MITM proxy
Run an app that uses WebView2 with the Canary or Dev runtime version. If re-running an existing app make sure to delete the bin folder so the webview2 profile is deleted.
As soon as the app starts and a navigation request is made a call will be made to http://edge.microsoft.com/browsernetworktime/time/1/current?cup2key=[...]

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@lliverton lliverton added the bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant