Changeset 246733 in webkit
- Timestamp:
- Jun 24, 2019 7:35:42 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246731 r246733 1 2019-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 1 14 2019-06-24 Charlie Turner <cturner@igalia.com> 2 15 -
trunk/Source/WebCore/platform/UserAgentQuirks.cpp
r246313 r246733 105 105 return true; 106 106 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") 110 111 return true; 111 112 … … 115 116 static bool urlRequiresLinuxDesktopPlatform(const URL& url) 116 117 { 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"; 119 122 } 120 123 -
trunk/Tools/ChangeLog
r246718 r246733 1 2019-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 1 11 2019-06-22 Zalan Bujtas <zalan@apple.com> 2 12 -
trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp
r246313 r246733 94 94 assertUserAgentForURLHasMacPlatformQuirk("http://www.chase.com/"); 95 95 assertUserAgentForURLHasMacPlatformQuirk("http://docs.google.com/"); 96 assertUserAgentForURLHasMacPlatformQuirk("http://drive.google.com/"); 96 97 assertUserAgentForURLHasMacPlatformQuirk("http://paypal.com/"); 97 98 assertUserAgentForURLHasMacPlatformQuirk("http://outlook.live.com/");
Note: See TracChangeset
for help on using the changeset viewer.