Changeset 247429 in webkit


Ignore:
Timestamp:
Jul 15, 2019 6:39:32 AM (5 years ago)
Author:
Alan Bujtas
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r247427 r247429  
     12019-07-15  Zalan Bujtas  <zalan@apple.com>
     2
     3        naver.com: Video stops when tapping on the video to use buttons
     4        https://bugs.webkit.org/show_bug.cgi?id=199784
     5        <rdar://problem/48068610>
     6
     7        Reviewed by Maciej Stachowiak.
     8
     9        Opt out of simulated mouse event sending for tv.naver.com.
     10        When tv.naver.com receives the simulated mouseUp at touchEnd, it pauses the video right away and calls preventDefault()
     11        which prevents us from running the hover heuristics.
     12
     13        * page/Quirks.cpp:
     14        (WebCore::Quirks::shouldDispatchSimulatedMouseEvents const):
     15
    1162019-07-15  Michael Catanzaro  <mcatanzaro@igalia.com>
    217
  • trunk/Source/WebCore/page/Quirks.cpp

    r247213 r247429  
    291291    if (equalLettersIgnoringASCIICase(host, "trailers.apple.com"))
    292292        return true;
    293     if (equalLettersIgnoringASCIICase(host, "naver.com") || host.endsWithIgnoringASCIICase(".naver.com"))
    294         return true;
     293    if (equalLettersIgnoringASCIICase(host, "naver.com"))
     294        return true;
     295    // Disable the quirk for tv.naver.com subdomain to be able to simulate hover on videos.
     296    if (host.endsWithIgnoringASCIICase(".naver.com"))
     297        return !equalLettersIgnoringASCIICase(host, "tv.naver.com");
    295298    return false;
    296299}
Note: See TracChangeset for help on using the changeset viewer.