Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: webContents.getUserAgent() is empty since 20.0.0-alpha.6 #35046

Closed
3 tasks done
Kilian opened this issue Jul 25, 2022 · 1 comment · Fixed by #35069
Closed
3 tasks done

[Bug]: webContents.getUserAgent() is empty since 20.0.0-alpha.6 #35046

Kilian opened this issue Jul 25, 2022 · 1 comment · Fixed by #35069
Assignees
Labels
20-x-y bug 🪲 component/webcontents has-repro-gist Issue can be reproduced with code at https://gist.github.com/

Comments

@Kilian
Copy link
Member

Kilian commented Jul 25, 2022

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 Agent

Actual 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.

@codebytere codebytere self-assigned this Jul 26, 2022
@codebytere codebytere added the has-repro-gist Issue can be reproduced with code at https://gist.github.com/ label Jul 26, 2022
@TheMightyPenguin
Copy link

I'm also getting this same issue in 19.0.9!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
20-x-y bug 🪲 component/webcontents has-repro-gist Issue can be reproduced with code at https://gist.github.com/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants