[webkit-changes] [WebKit/WebKit] 3a183f: Add a site-specific quirk to return 0 for `navigat...

Wenson Hsieh noreply at github.com
Mon Oct 28 20:44:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3a183fd2fdc9f68df1f0e7d3754d2428e394023e
      https://github.com/WebKit/WebKit/commit/3a183fd2fdc9f68df1f0e7d3754d2428e394023e
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2024-10-28 (Mon, 28 Oct 2024)

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

  Log Message:
  -----------
  Add a site-specific quirk to return 0 for `navigator.maxTouchPoints`
https://bugs.webkit.org/show_bug.cgi?id=282218
rdar://138424489

Reviewed by Abrar Rahman Protyasha.

Add a quirk to force `maxTouchPoints` to return 0 on `max.com`, and related subdomains.

* Source/WebCore/page/Navigator.cpp:
(WebCore::Navigator::document const):

Add a const version of `document()`, so that we can invoke it from const methods on `Navigator`.

(WebCore::Navigator::maxTouchPoints const):
* Source/WebCore/page/Navigator.h:
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::needsZeroMaxTouchPointsQuirk const):
* Source/WebCore/page/Quirks.h:

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



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


More information about the webkit-changes mailing list