Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e27850ecf3675c59ef7c7c691a84f3b6c1bca4c4
      
https://github.com/WebKit/WebKit/commit/e27850ecf3675c59ef7c7c691a84f3b6c1bca4c4
  Author: Karl Dubost <[email protected]>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M LayoutTests/fast/quirks/active-quirks-by-domain-expected.txt
    M LayoutTests/fast/quirks/active-quirks-by-domain.html
    M LayoutTests/platform/glib/fast/quirks/active-quirks-by-domain-expected.txt
    M LayoutTests/platform/ios/fast/quirks/active-quirks-by-domain-expected.txt
    M LayoutTests/platform/ipad/fast/quirks/active-quirks-by-domain-expected.txt
    M 
LayoutTests/platform/mac-sequoia/fast/quirks/active-quirks-by-domain-expected.txt
    M 
LayoutTests/platform/mac-tahoe/fast/quirks/active-quirks-by-domain-expected.txt
    M Source/WebCore/html/HTMLAnchorElement.cpp
    M Source/WebCore/page/QuirkBehaviors.h
    M Source/WebCore/page/QuirkTable.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h

  Log Message:
  -----------
  [QUIRK] google.com: clicking a provider link in the "Where to watch" panel 
closes the panel instead of navigating
https://bugs.webkit.org/show_bug.cgi?id=323851
rdar://181740296

Reviewed by Cole Carley.

WebKit does not focus a plain link when it is pressed, and Google's
"Where to watch" panel closes itself when focus leaves it. Pressing a
provider link moves focus to the body, so the panel collapses before
mouseup. Press and release then land on different elements and the
click is dispatched to their common ancestor, so the link is never
activated and nothing navigates.

Opt google.com into the existing needsAnchorToBeMouseFocusableQuirk,
scoped two ways. The table entry matches search result pages rather
than the whole domain, and needsAnchorToBeMouseFocusable() now takes
the anchor so it can require it to be inside the expandable panel,
which carries data-expc. Every other link on a search page, and every
other Google page, keeps the current behaviour. The other sites opted
into this quirk still get it for every anchor.

* LayoutTests/fast/quirks/active-quirks-by-domain-expected.txt:
* LayoutTests/fast/quirks/active-quirks-by-domain.html:
* LayoutTests/platform/glib/fast/quirks/active-quirks-by-domain-expected.txt:
* LayoutTests/platform/ios/fast/quirks/active-quirks-by-domain-expected.txt:
* LayoutTests/platform/ipad/fast/quirks/active-quirks-by-domain-expected.txt:
* 
LayoutTests/platform/mac-sequoia/fast/quirks/active-quirks-by-domain-expected.txt:
* 
LayoutTests/platform/mac-tahoe/fast/quirks/active-quirks-by-domain-expected.txt:
* Source/WebCore/html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::isMouseFocusable const):
* Source/WebCore/page/QuirkBehaviors.h:
* Source/WebCore/page/QuirkTable.cpp:
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::needsAnchorToBeMouseFocusable const):
* Source/WebCore/page/Quirks.h:

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



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

Reply via email to