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
The User Agent is a client-side piece of information that the browser/webcontrol sends to the server/website a user visits.
3
-
It contains information about user’s system and is modifiable by the user.
2
+
The User Agent is a client-side piece of information that the browser/webcontrol sends to the server/website a user visits. It contains information about user’s system and is modifiable by the user.
4
3
5
4
Currently, a developer can pass the --user-agent browser args to the CreateWebView2EnvironmentWithDetails function.
For more info about the ‘—user - agent’ flag visit: https://peter.sh/experiments/chromium-command-line-switches/#user-agent.
9
7
10
-
However,
11
-
there are a couple limitations to this workaround-- you
12
-
cannot modify a command line switch at runtime,
13
-
nor can you change the user agent per webview
14
-
.
15
-
16
-
In this document we describe the new API
17
-
.We'd appreciate your feedback.
8
+
However, there are a couple limitations to this workaround-- you cannot modify a command line switch at runtime, nor can you change the user agent per webview. In this document we describe the new API. We'd appreciate your feedback.
18
9
19
10
# Description
20
-
The Settings component will change the UA per WebView2 via Chrome Developer
21
-
Protocol command.(CDP)
22
-
A key scenario is to allow end developers to get the current user
23
-
agent from the webview and modify it based on some sort of event,
24
-
such as navigating to a specific website and setting the user agent to
25
-
emulate a different browser version
26
-
.
11
+
The Settings component will change the UA per WebView2 via Chrome Developer Protocol command (CDP). A key scenario is to allow end developers to get the current user agent from the webview and modify it based on some sort of event, such as navigating to a specific website and setting the user agent to emulate a different browser version.
0 commit comments