Changeset 246733 in webkit


Ignore:
Timestamp:
Jun 24, 2019 7:35:42 AM (5 years ago)
Author:
Michael Catanzaro
Message:

Add user agent quirk for Google Drive
https://bugs.webkit.org/show_bug.cgi?id=199153

Reviewed by Carlos Garcia Campos.

Source/WebCore:

This suppresses an unsupported browser warning.

  • platform/UserAgentQuirks.cpp:

(WebCore::urlRequiresMacintoshPlatform):
(WebCore::urlRequiresLinuxDesktopPlatform):

Tools:

  • TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:

(TestWebKitAPI::TEST):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246731 r246733  
     12019-06-24  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Add user agent quirk for Google Drive
     4        https://bugs.webkit.org/show_bug.cgi?id=199153
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        This suppresses an unsupported browser warning.
     9
     10        * platform/UserAgentQuirks.cpp:
     11        (WebCore::urlRequiresMacintoshPlatform):
     12        (WebCore::urlRequiresLinuxDesktopPlatform):
     13
    1142019-06-24  Charlie Turner  <cturner@igalia.com>
    215
  • trunk/Source/WebCore/platform/UserAgentQuirks.cpp

    r246313 r246733  
    105105        return true;
    106106
    107     // Google Docs shows a scary unsupported browser warning with WebKitGTK+'s
    108     // standard user agent.
    109     if (domain == "docs.google.com")
     107    // Google Docs and Google Drive both show a scary unsupported browser
     108    // warning with WebKitGTK+'s standard user agent.
     109    if (domain == "docs.google.com"
     110        || domain == "drive.google.com")
    110111        return true;
    111112
     
    115116static bool urlRequiresLinuxDesktopPlatform(const URL& url)
    116117{
    117     // docs.google.com requires the macOS platform quirk.
    118     return isGoogle(url) && url.host() != "docs.google.com";
     118    // docs.google.com and drive.google.com require the macOS platform quirk.
     119    return isGoogle(url)
     120        && url.host() != "docs.google.com"
     121        && url.host() != "drive.google.com";
    119122}
    120123
  • trunk/Tools/ChangeLog

    r246718 r246733  
     12019-06-24  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Add user agent quirk for Google Drive
     4        https://bugs.webkit.org/show_bug.cgi?id=199153
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
     9        (TestWebKitAPI::TEST):
     10
    1112019-06-22  Zalan Bujtas  <zalan@apple.com>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp

    r246313 r246733  
    9494    assertUserAgentForURLHasMacPlatformQuirk("http://www.chase.com/");
    9595    assertUserAgentForURLHasMacPlatformQuirk("http://docs.google.com/");
     96    assertUserAgentForURLHasMacPlatformQuirk("http://drive.google.com/");
    9697    assertUserAgentForURLHasMacPlatformQuirk("http://paypal.com/");
    9798    assertUserAgentForURLHasMacPlatformQuirk("http://outlook.live.com/");
Note: See TracChangeset for help on using the changeset viewer.