-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Given that information about this is a bit scattered at the moment, I'm opening (and pinning) this issue in the hope that it's easier to find that way. Here's what's going on:
Explanation
- Mid 2019, Google started blocking various smaller browsers from logging in to a Google account. This initially only affected few people, but seems to be rolled out to many Google accounts now (but not all of them, my own accounts are still unaffected...)
- Google claims that you're using "a browser [...] that doesn't allow us to keep your account secure". There's not much further rationale available for that claim - all I'm aware of is a blogpost titled "Better protection against Man in the Middle phishing attacks" where this originally was announced and a Google Help Center entry which also mentions that this change is targetting automation testing frameworks and browsers embedded in a different application. The change seems to affect much more than that - also see a Bleepingcomputer article and related Reddit discussions (/r/kde, /r/privacy and others).
- It looks like Google tries to block the QtWebEngine library which could indeed be used to build applications using a Google account by letting the user sign in and then "stealing" the cookie instead of e.g. using OAuth to log in and some API. It looks like blocking various browsers (including qutebrowser) just is collateral damage.
Fix and workaround
- Fortunately, it was discovered that setting the user agent to Firefox bypasses whatever weird check Google is doing.
- With qutebrowser v1.9.0 (2019-01-08), a
content.site_specific_quirksoption was added (see Site-specific quirks overview #4810 and Refactor user agent handling and introduce site-specific quirks #5157 for details). With it enabled (which is the default), qutebrowser sends a Firefox user agent for the Google Accounts page (and other problematic pages like WhatsApp), thus fixing the issue. As a workaround, you can get the equivalent of that fix by running(see below for an updated workaround):set -u https://accounts.google.com/* content.headers.user_agent 'Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0'(needs v1.2.0 or newer)
Jan 2021 Update
According to some people, this might be coming back - but not all Google Accounts seem to be affected, or at least not to the same degree. If you're seeing this with your account, please answer here!
Aug 2021 Update
This came back for most (all?) accounts now, with the Edge user agent qutebrowser uses as a workaround in v1.14.0 (db13e52). Thankfully, the Firefox one still works.
See below for an updated version.
- The v2.3.1 release contains an updated workaround and should work out of the box
- For versions between v1.10.0 (inclusive) and v2.3.1 (exclusive), run
:set -u https://accounts.google.com/* content.headers.user_agent "Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0"for an equivalent workaround. - For versions between v1.2.0 (inclusive) and v1.10.0 (exclusive), use
X11; Linux x86_64in place of{os_info}. - For versions older than v1.2.0, no workaround is available due to missing per-domain settings. Setting the user agent to Firefox globally is strongly discouraged as it breaks a variety of other pages.
October 2024 Update
- The v3.3.0 release contains an updated workaround and should work out of the box
- For versions between v2.3.1 (inclusive) and v3.3.0 (exclusive), a workaround is present, but with an older Firefox version. If you still have issues, try running the
:setcommand from the next line. - For versions between v1.10.0 (inclusive) and v2.3.1 (exclusive), run
:set -u https://accounts.google.com/* content.headers.user_agent "Mozilla/5.0 ({os_info}; rv:131.0) Gecko/20100101 Firefox/131.0"for an equivalent workaround. - For versions between v1.2.0 (inclusive) and v1.10.0 (exclusive), use
X11; Linux x86_64in place of{os_info}. - For versions older than v1.2.0, no workaround is available due to missing per-domain settings. Setting the user agent to Firefox globally is strongly discouraged as it breaks a variety of other pages.
nanomader, dancorne, mritzmann, Lanny, Lucidiot and 21 morefabiobrasileiroo
Metadata
Metadata
Assignees
Labels
No labels