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
For more info about the ‘--user-agent’ flag visit: https://peter.sh/experiments/chromium-command-line-switches/#user-agent.
6
6
7
-
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.
7
+
However, there are a couple limitations to this workaround-- it is not an API that is easy to use or discover, you cannot modify a command line switch at runtime, and you cannot change the User Agent per WebView. In this document we describe the new API. We'd appreciate your feedback.
8
8
9
9
# Description
10
10
11
-
The User Agent (UA) is a client-side piece of information that the browser/webcontrol sends to the server or website a user visits. It contains information about user’s system and is modifiable by the user.
11
+
The User Agent (UA) is a client-side piece of information regarding the user's OS, application, and version. The browser/webcontrol sends the User Agent to the HTTP server and can be modified by the user.
12
12
13
-
The User Agent String API allows developers to modify WebView's user agent string via Chrome Developer Protocol (CDP). The user agent can be changed based on different events such as navigation to a specific website.
13
+
The User Agent API allows developers to modify WebView2's User Agent and can be changed based on different events.
14
14
15
-
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.
15
+
The Settings component will change the User Agent per WebView via Chrome Developer Protocol command (CDP). A key scenario is to allow end developers to get the current User Agent from 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.
16
16
17
17
# Examples
18
18
19
-
The following code snippet demonstrates how the environment APIs can be used
20
-
:
19
+
The following code snippet demonstrates how the User Agent API can be used:
0 commit comments