cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.88k stars 2.92k forks source link

Changing browser name in CefSharp #134

Closed architkshk closed 11 years ago

architkshk commented 11 years ago

i have embedded cefsharp webview in my windows form app in visual c#. now, i wanna to change its name,i.e., when i browse www.html5test.com , it shows browser to be chrome 25. i wanna to change the name to my webbrowser

perlun commented 11 years ago

Try using this setting. If you set this property, it will override the user-agent as sent by the browser.

chillitom commented 11 years ago

Cool trick I learnt yesterday: if you press 'y' in Github it will give you a canonical URL which will always point to the same line/file no matter how a repo changes. Good for linking in discussions so the context is preserved.

Link above becomes: https://github.com/cefsharp/CefSharp/blob/81f659eb1c45276806e51a54978192017e831296/CefSharp/Settings.h#L55

On Fri, Jul 26, 2013 at 11:32 AM, Per Lundberg notifications@github.comwrote:

Try using this settinghttps://github.com/cefsharp/CefSharp/blob/master/CefSharp/Settings.h#L55. If you set this property, it will override the user-agent as sent by the browser.

— Reply to this email directly or view it on GitHubhttps://github.com/cefsharp/CefSharp/issues/134#issuecomment-21613084 .

perlun commented 11 years ago

Good point! Although completely unrelated, the 't' key is also pretty useful to search for files in a repo.