Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0829e2fa6ac38b3e0aef83ee29f73280b2ea537e
      
https://github.com/WebKit/WebKit/commit/0829e2fa6ac38b3e0aef83ee29f73280b2ea537e
  Author: Wenson Hsieh <[email protected]>
  Date:   2024-11-11 (Mon, 11 Nov 2024)

  Changed paths:
    M Source/WebCore/page/Quirks.cpp

  Log Message:
  -----------
  weather.com: [macOS] Unable to dismiss drop-down after clicking on document 
body
https://bugs.webkit.org/show_bug.cgi?id=282965
rdar://138053733

Reviewed by Abrar Rahman Protyasha and Richard Robinson.

Augment an existing quirk to allow mouse clicks to `focus()` form controls (in 
this case, a `button`
element). weather.com depends on the button that shows the dropdown menu 
gaining focus when clicked,
since it dismisses the dropdown when the button loses focus (which, in turn, 
happens when the user
clicks on the body).

This is a long-standing behavior in WebKit, which (roughly) matches platform 
convention on macOS;
see https://webkit.org/b/22261 for more context.

* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::needsFormControlToBeMouseFocusable const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to