Opt Google Maps into simulated mouse events dispatch quirk
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 07:36:35 +0000 (07:36 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 07:36:35 +0000 (07:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196965
<rdar://problem/49934766>

Reviewed by Dean Jackson.

Use the correct Google Maps path.

* page/Quirks.cpp:
(WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244375 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/Quirks.cpp

index c01d978..2776867 100644 (file)
@@ -1,5 +1,18 @@
 2019-04-16  Antoine Quint  <graouts@apple.com>
 
+        Opt Google Maps into simulated mouse events dispatch quirk
+        https://bugs.webkit.org/show_bug.cgi?id=196965
+        <rdar://problem/49934766>
+
+        Reviewed by Dean Jackson.
+
+        Use the correct Google Maps path.
+
+        * page/Quirks.cpp:
+        (WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):
+
+2019-04-16  Antoine Quint  <graouts@apple.com>
+
         Opt flipkart.com into simulated mouse events dispatch quirk
         https://bugs.webkit.org/show_bug.cgi?id=196961
         <rdar://problem/49648520>
index 5938b26..2562568 100644 (file)
@@ -224,7 +224,7 @@ bool Quirks::shouldDispatchSimulatedMouseEvents() const
         return true;
     if (equalLettersIgnoringASCIICase(host, "flipkart.com") || host.endsWithIgnoringASCIICase(".flipkart.com"))
         return true;
-    if (equalLettersIgnoringASCIICase(host, "maps.google.com"))
+    if (equalLettersIgnoringASCIICase(host, "www.google.com") && url.path().startsWithIgnoringASCIICase("/maps/"))
         return true;
     if (equalLettersIgnoringASCIICase(host, "trailers.apple.com"))
         return true;