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

Implement partial UA client hints support for gmail #1715

Merged
merged 1 commit into from Aug 16, 2021
Merged

Conversation

PalmerAL
Copy link
Collaborator

Starting a few days ago, Gmail now checks (for unknown reasons) for navigator.userAgentData. If it isn't found, it redirects to the basic HTML version.

Client hints currently doesn't work in Electron: electron/electron#30201. So this PR adds a (somewhat ridiculous) workaround of creating a fake userAgentData object that mostly conforms to the one Chrome provides. With that, the standard version of Gmail seems to load again.

Separately, signing in to Gmail is broken, see #868. You can workaround that by setting your user-agent to Firefox in preferences, but then you'll have to switch back to the standard user-agent after signing in before trying this fix.

I wish Google would stop trying to block non-official Chromium browsers...

@PalmerAL PalmerAL requested a review from lubiedo August 15, 2021 18:48
Copy link
Member

@lubiedo lubiedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants