Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 190dac6ff2e2090ebc0738141036741ff3caea2c
      
https://github.com/WebKit/WebKit/commit/190dac6ff2e2090ebc0738141036741ff3caea2c
  Author: Vitor Roriz <[email protected]>
  Date:   2025-12-09 (Tue, 09 Dec 2025)

  Changed paths:
    M Source/WebCore/Modules/push-api/PushManager.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebCore/page/QuirksData.h

  Log Message:
  -----------
  [Quirk] Allow pinterest.com to request push notifications without user gesture
https://bugs.webkit.org/show_bug.cgi?id=303793
rdar://104979314

Reviewed by Brent Fulgham.

Pinterest calls pushManager.subscribe() after page navigation, which lacks a 
user
gesture in the document. WebKit blocks this type of request while other engines
don't (Blink only track it for telemetry).

Add a quirk for pinterest.com to allow push notification subscription without 
user gesture,
matching other engines behavior for this site.

This quirk should be removed once Pinterest updates their implementation to 
request
notifications from a user-triggered action (e.g., clicking a button).

* Source/WebCore/Modules/push-api/PushManager.cpp:
(WebCore::PushManager::subscribe):
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldAllowNotificationPermissionWithoutUserGesture const):
(WebCore::handlePinterestQuirks):
(WebCore::Quirks::determineRelevantQuirks):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/QuirksData.h:

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



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

Reply via email to