Title: [247879] trunk/Source/WebCore
Revision
247879
Author
[email protected]
Date
2019-07-26 14:27:38 -0700 (Fri, 26 Jul 2019)

Log Message

[iPadOS] wix.com cannot select a template to edit or view
https://bugs.webkit.org/show_bug.cgi?id=200174
<rdar://problem/53281296>

Reviewed by Simon Fraser.

Opt out of simulated mouse event sending for template selection on wix.com.
When wix.com receives a simulated mouse event during the touch events, it calls preventDefault() which prevents us from running the hover heuristics -> no click.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (247878 => 247879)


--- trunk/Source/WebCore/ChangeLog	2019-07-26 21:26:12 UTC (rev 247878)
+++ trunk/Source/WebCore/ChangeLog	2019-07-26 21:27:38 UTC (rev 247879)
@@ -1,3 +1,17 @@
+2019-07-26  Zalan Bujtas  <[email protected]>
+
+        [iPadOS] wix.com cannot select a template to edit or view
+        https://bugs.webkit.org/show_bug.cgi?id=200174
+        <rdar://problem/53281296>
+
+        Reviewed by Simon Fraser.
+
+        Opt out of simulated mouse event sending for template selection on wix.com.
+        When wix.com receives a simulated mouse event during the touch events, it calls preventDefault() which prevents us from running the hover heuristics -> no click.
+
+        * page/Quirks.cpp:
+        (WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):
+
 2019-07-26  Saam Barati  <[email protected]>
 
         [WHLSL] UnnamedType should be reference counted

Modified: trunk/Source/WebCore/page/Quirks.cpp (247878 => 247879)


--- trunk/Source/WebCore/page/Quirks.cpp	2019-07-26 21:26:12 UTC (rev 247878)
+++ trunk/Source/WebCore/page/Quirks.cpp	2019-07-26 21:27:38 UTC (rev 247879)
@@ -271,8 +271,10 @@
     auto& url = ""
     auto host = url.host();
 
-    if (equalLettersIgnoringASCIICase(host, "wix.com") || host.endsWithIgnoringASCIICase(".wix.com"))
-        return true;
+    if (equalLettersIgnoringASCIICase(host, "wix.com") || host.endsWithIgnoringASCIICase(".wix.com")) {
+        // Disable simulated mouse dispatching for template selection.
+        return !url.path().startsWithIgnoringASCIICase("/website/templates/");
+    }
     if ((equalLettersIgnoringASCIICase(host, "desmos.com") || host.endsWithIgnoringASCIICase(".desmos.com")) && url.path().startsWithIgnoringASCIICase("/calculator/"))
         return true;
     if (equalLettersIgnoringASCIICase(host, "figma.com") || host.endsWithIgnoringASCIICase(".figma.com"))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to