Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 740f093fdcb9330b1e4685167b2be2b057cb1cf5
      
https://github.com/WebKit/WebKit/commit/740f093fdcb9330b1e4685167b2be2b057cb1cf5
  Author: Phinehas Fuachie <[email protected]>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M Source/WebCore/dom/Node.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebCore/page/QuirksData.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp

  Log Message:
  -----------
  [LinkedIn] Tapping a video in the feed on iPad does not surface media controls
https://bugs.webkit.org/show_bug.cgi?id=316707
rdar://171231918

Reviewed by Abrar Rahman Protyasha and Brent Fulgham.

LinkedIn calls preventDefault() on touchend for taps inside the feed, including 
taps targeting the
<video>. iOS treats that as "page handled" and cancels UITapGestureRecognizer, 
so no synthetic
click fires and the player's user-active toggle never flips.

Add a linkedin.com quirk that overrides the touchend "handled" result to false 
in
WebPage::dispatchTouchEvent when the target hit-tests to an HTMLMediaElement, 
so the tap commits
normally. Pair with a node-level gate so the resulting click lands on the 
<video>.
The page's touchend handler still runs; only the gesture-cancellation signal is 
suppressed.

* Source/WebCore/dom/Node.cpp:
(WebCore::Node::willRespondToMouseClickEventsWithEditability const):
* Source/WebCore/page/Quirks.cpp:
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/QuirksData.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::dispatchTouchEvent):

Canonical link: https://commits.webkit.org/315049@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to