User Agent can not be modifed by setting.UserAgent #4694
Closed
jinshiyx1989
started this conversation in
General
Replies: 1 comment
-
As per the issue template. Please don't open issues for old unsupported versions.
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
CefSharp Version
95.0.4638.69
Operating System
Windows 10
Architecture
x64
.Net Version
.net 5
Implementation
WinForms
Reproduction Steps
// user the CefSharp.Winform.net core
CefSettings cefSettings = new CefSettings();
cefSettings.UserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_1 like Max OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Mobile/14A403 IHexin/10.20.10 (Royal Flush) ihexin/1234";
Cef.Initialize(cefSettings);
Expected behavior
I expecte the userAgent can been modified
Actual behavior
I found that the UserAgent has not been truly modified. My CefSharp version is 95. The other two methods regarding the Agent in 'https://github.com/cefsharp/CefSharp/wiki/General-Usage#initialize-and-shutdown' are working fine
Regression?
No response
Known Workarounds
No response
Does this problem also occur in the CEF Sample Application
Yes using WPF/OffScreen command line args
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions