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
Is your feature request related to a problem? Please describe.
I would like to be able to append a string to the current user agent. Since some websites unfortunately use the user agent to detect certain things, it would be nice to be able to keep the webview's current user agent but also append something to the end of it identify it as something different.
Describe the solution you'd like
I think this could be implemented one of two ways:
Add a way to get/set the webview user agent after it has been initialized.
Add a flag/enum to append the user agent rather than replace it.
1 seems more flexible and intuitive, 2 would be easier to implement.
I'm unsure if this would be able to be supported on all platforms, but it definitely would be for Webview2 on Windows.
Describe alternatives you've considered
I could record the user agent and set it manually but it would eventually become out of date on platforms like Windows where the OS keeps the browser/user agent version up to date.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I would like to be able to append a string to the current user agent. Since some websites unfortunately use the user agent to detect certain things, it would be nice to be able to keep the webview's current user agent but also append something to the end of it identify it as something different.
Describe the solution you'd like
I think this could be implemented one of two ways:
1 seems more flexible and intuitive, 2 would be easier to implement.
I'm unsure if this would be able to be supported on all platforms, but it definitely would be for Webview2 on Windows.
Describe alternatives you've considered
I could record the user agent and set it manually but it would eventually become out of date on platforms like Windows where the OS keeps the browser/user agent version up to date.
The text was updated successfully, but these errors were encountered: