Title: [247429] trunk/Source/WebCore
Revision
247429
Author
[email protected]
Date
2019-07-15 06:39:32 -0700 (Mon, 15 Jul 2019)

Log Message

naver.com: Video stops when tapping on the video to use buttons
https://bugs.webkit.org/show_bug.cgi?id=199784
<rdar://problem/48068610>

Reviewed by Maciej Stachowiak.

Opt out of simulated mouse event sending for tv.naver.com.
When tv.naver.com receives the simulated mouseUp at touchEnd, it pauses the video right away and calls preventDefault()
which prevents us from running the hover heuristics.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (247428 => 247429)


--- trunk/Source/WebCore/ChangeLog	2019-07-15 11:58:53 UTC (rev 247428)
+++ trunk/Source/WebCore/ChangeLog	2019-07-15 13:39:32 UTC (rev 247429)
@@ -1,3 +1,18 @@
+2019-07-15  Zalan Bujtas  <[email protected]>
+
+        naver.com: Video stops when tapping on the video to use buttons
+        https://bugs.webkit.org/show_bug.cgi?id=199784
+        <rdar://problem/48068610>
+
+        Reviewed by Maciej Stachowiak.
+
+        Opt out of simulated mouse event sending for tv.naver.com.
+        When tv.naver.com receives the simulated mouseUp at touchEnd, it pauses the video right away and calls preventDefault()
+        which prevents us from running the hover heuristics.
+
+        * page/Quirks.cpp:
+        (WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):
+
 2019-07-15  Michael Catanzaro  <[email protected]>
 
         [GTK] GitHub breaks on FreeBSD because of "unsupported browser"

Modified: trunk/Source/WebCore/page/Quirks.cpp (247428 => 247429)


--- trunk/Source/WebCore/page/Quirks.cpp	2019-07-15 11:58:53 UTC (rev 247428)
+++ trunk/Source/WebCore/page/Quirks.cpp	2019-07-15 13:39:32 UTC (rev 247429)
@@ -290,8 +290,11 @@
         return true;
     if (equalLettersIgnoringASCIICase(host, "trailers.apple.com"))
         return true;
-    if (equalLettersIgnoringASCIICase(host, "naver.com") || host.endsWithIgnoringASCIICase(".naver.com"))
+    if (equalLettersIgnoringASCIICase(host, "naver.com"))
         return true;
+    // Disable the quirk for tv.naver.com subdomain to be able to simulate hover on videos.
+    if (host.endsWithIgnoringASCIICase(".naver.com"))
+        return !equalLettersIgnoringASCIICase(host, "tv.naver.com");
     return false;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to