Changeset 216343 in webkit


Ignore:
Timestamp:
May 7, 2017 2:29:45 AM (7 years ago)
Author:
Michael Catanzaro
Message:

[GTK] Cannot sign in with new Google sign-in page
https://bugs.webkit.org/show_bug.cgi?id=171770

Reviewed by Carlos Garcia Campos.

Google's new authentication page does not work with the Firefox user
agent that's required to make various Google websites work. Special-case
accounts.google.com so that it receives our standard user agent.

  • platform/UserAgentQuirks.cpp:

(WebCore::isGoogle):
(WebCore::urlRequiresFirefoxBrowser):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216342 r216343  
     12017-05-07  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Cannot sign in with new Google sign-in page
     4        https://bugs.webkit.org/show_bug.cgi?id=171770
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Google's new authentication page does not work with the Firefox user
     9        agent that's required to make various Google websites work. Special-case
     10        accounts.google.com so that it receives our standard user agent.
     11
     12        * platform/UserAgentQuirks.cpp:
     13        (WebCore::isGoogle):
     14        (WebCore::urlRequiresFirefoxBrowser):
     15
    1162017-05-06  Myles C. Maxfield  <mmaxfield@apple.com>
    217
  • trunk/Source/WebCore/platform/UserAgentQuirks.cpp

    r216139 r216343  
    4242    // https://webkit.org/b/142074 carefully before changing. Test that Earth
    4343    // view is available in Google Maps. Test Google Calendar. Test downloading
    44     // the Hangouts browser plugin. Change platformVersionForUAString() to
    45     // return "FreeBSD amd64" and test Maps and Calendar again.
     44    // the Hangouts browser plugin. Test logging out and logging in to a Google
     45    // account. Change platformVersionForUAString() to return "FreeBSD amd64"
     46    // and test everything again.
    4647    if (baseDomain.startsWith("google."))
    4748        return true;
     
    7677static bool urlRequiresFirefoxBrowser(const URL& url)
    7778{
    78     return isGoogle(url);
     79    return isGoogle(url) && url.host() != "accounts.google.com";
    7980}
    8081
Note: See TracChangeset for help on using the changeset viewer.