Skip to content

Commit

Permalink
Switch back to Firefox UA for Google Account quirk
Browse files Browse the repository at this point in the history
Looks like the Edge one doesn't work anymore.

Reverts db13e52 and reintroduces the Firefox UA
removed in e010afd (but updated).

Closes #5182.

(cherry picked from commit 32c78dc7dbbaa42f69ab3bcec13abdbd6f33087d)
  • Loading branch information
The-Compiler committed Jul 28, 2021
1 parent 8b31933 commit 28a80da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions qutebrowser/browser/webengine/webenginesettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,7 @@ def _init_site_specific_quirks():
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/99 "
"Safari/537.36")
edge_ua = ("Mozilla/5.0 ({os_info}) "
"AppleWebKit/{webkit_version} (KHTML, like Gecko) "
"{upstream_browser_key}/{upstream_browser_version} "
"Safari/{webkit_version} "
"Edg/{upstream_browser_version}")
firefox_ua = "Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0"

user_agents = [
# Needed to avoid a ""WhatsApp works with Google Chrome 36+" error
Expand All @@ -447,7 +443,7 @@ def _init_site_specific_quirks():
# Needed to avoid a "you're using a browser [...] that doesn't allow us
# to keep your account secure" error.
# https://github.com/qutebrowser/qutebrowser/issues/5182
("ua-google", 'https://accounts.google.com/*', edge_ua),
("ua-google", 'https://accounts.google.com/*', firefox_ua),

# Needed because Slack adds an error which prevents using it relatively
# aggressively, despite things actually working fine.
Expand Down

0 comments on commit 28a80da

Please sign in to comment.