Title: [246733] trunk
- Revision
- 246733
- Author
- [email protected]
- Date
- 2019-06-24 07:35:42 -0700 (Mon, 24 Jun 2019)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (246732 => 246733)
--- trunk/Source/WebCore/ChangeLog 2019-06-24 14:34:47 UTC (rev 246732)
+++ trunk/Source/WebCore/ChangeLog 2019-06-24 14:35:42 UTC (rev 246733)
@@ -1,3 +1,16 @@
+2019-06-24 Michael Catanzaro <[email protected]>
+
+ Add user agent quirk for Google Drive
+ https://bugs.webkit.org/show_bug.cgi?id=199153
+
+ Reviewed by Carlos Garcia Campos.
+
+ This suppresses an unsupported browser warning.
+
+ * platform/UserAgentQuirks.cpp:
+ (WebCore::urlRequiresMacintoshPlatform):
+ (WebCore::urlRequiresLinuxDesktopPlatform):
+
2019-06-24 Charlie Turner <[email protected]>
[GStreamer][MSE] Pausing video sometimes causes skip to finish
Modified: trunk/Source/WebCore/platform/UserAgentQuirks.cpp (246732 => 246733)
--- trunk/Source/WebCore/platform/UserAgentQuirks.cpp 2019-06-24 14:34:47 UTC (rev 246732)
+++ trunk/Source/WebCore/platform/UserAgentQuirks.cpp 2019-06-24 14:35:42 UTC (rev 246733)
@@ -104,9 +104,10 @@
|| domain == "exchange.tu-berlin.de")
return true;
- // Google Docs shows a scary unsupported browser warning with WebKitGTK+'s
- // standard user agent.
- if (domain == "docs.google.com")
+ // Google Docs and Google Drive both show a scary unsupported browser
+ // warning with WebKitGTK+'s standard user agent.
+ if (domain == "docs.google.com"
+ || domain == "drive.google.com")
return true;
return false;
@@ -114,8 +115,10 @@
static bool urlRequiresLinuxDesktopPlatform(const URL& url)
{
- // docs.google.com requires the macOS platform quirk.
- return isGoogle(url) && url.host() != "docs.google.com";
+ // docs.google.com and drive.google.com require the macOS platform quirk.
+ return isGoogle(url)
+ && url.host() != "docs.google.com"
+ && url.host() != "drive.google.com";
}
UserAgentQuirks UserAgentQuirks::quirksForURL(const URL& url)
Modified: trunk/Tools/ChangeLog (246732 => 246733)
--- trunk/Tools/ChangeLog 2019-06-24 14:34:47 UTC (rev 246732)
+++ trunk/Tools/ChangeLog 2019-06-24 14:35:42 UTC (rev 246733)
@@ -1,3 +1,13 @@
+2019-06-24 Michael Catanzaro <[email protected]>
+
+ Add user agent quirk for Google Drive
+ https://bugs.webkit.org/show_bug.cgi?id=199153
+
+ Reviewed by Carlos Garcia Campos.
+
+ * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
+ (TestWebKitAPI::TEST):
+
2019-06-22 Zalan Bujtas <[email protected]>
[LFC] Expand tests coverage (328 new tests -> 2652).
Modified: trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp (246732 => 246733)
--- trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp 2019-06-24 14:34:47 UTC (rev 246732)
+++ trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp 2019-06-24 14:35:42 UTC (rev 246733)
@@ -93,6 +93,7 @@
assertUserAgentForURLHasMacPlatformQuirk("http://web.whatsapp.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://www.chase.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://docs.google.com/");
+ assertUserAgentForURLHasMacPlatformQuirk("http://drive.google.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://paypal.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://outlook.live.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://mail.ntu.edu.tw/");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes