[Bug]: webContents.getUserAgent() is empty since 20.0.0-alpha.6 #35046
Labels
20-x-y
bug 🪲
component/webcontents
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
Preflight Checklist
Electron Version
20.0.0-alpha.6
What operating system are you using?
Ubuntu
Operating System Version
Ubuntu 20.04
What arch are you using?
x64
Last Known Working Electron version
20.0.0-alpha.5
Expected Behavior
webContents.getUserAgent()
returns a string with a user AgentActual Behavior
webContents.getUserAgent() returns an empty string
Testcase Gist URL
https://gist.github.com/33fd4a9ac6db6b28b1dcc5b765edb622
Additional Information
In the console the user agent is printed in alpha.5, but empty in alpha.6. Looking at the diff between alpha.5 and alpha.6, this PR seems the likely cause: #34524 / #34481
It's worth noting that the renderer does have a filled-in userAgent.
The text was updated successfully, but these errors were encountered: