Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 078a4e83ca88213cd03b40682534d7eca846ab50
      
https://github.com/WebKit/WebKit/commit/078a4e83ca88213cd03b40682534d7eca846ab50
  Author: Pouneh Bahrami <[email protected]>
  Date:   2026-01-16 (Fri, 16 Jan 2026)

  Changed paths:
    M Source/WebKit/NetworkProcess/NetworkProcess.cpp
    M Source/WebKit/NetworkProcess/NetworkProcess.h
    M Source/WebKit/NetworkProcess/NetworkProcess.messages.in
    M 
Source/WebKit/NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManager.cpp
    M 
Source/WebKit/NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManager.h
    M 
Source/WebKit/NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManagerInterface.h
    M Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

  Log Message:
  -----------
  [Private Click Measurement] Fix PCM attribution reports not sent after system 
sleep/wake cycles
https://bugs.webkit.org/show_bug.cgi?id=305659
rdar://167733375

Reviewed by Alex Christensen and Matthew Finkel.

PCM attribution reports were not being sent when the device went to sleep
before the scheduled fire time. The issue is that a timer is not reliably
fired after we wake from sleep, even if it should’ve fired in the past.
This prevents sending overdue attribution reports.

This fix adds SystemWillSleep/SystemDidWake IPC messages to NetworkProcess
and updates WebProcessPool to send these notifications to NetworkProcess
during system sleep/wake events. On wake, NetworkProcess checks for overdue
PCM attributions and restarts timers.

* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::systemDidWake):
* Source/WebKit/NetworkProcess/NetworkProcess.h:
* Source/WebKit/NetworkProcess/NetworkProcess.messages.in:
* 
Source/WebKit/NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManager.cpp:
(WebKit::PrivateClickMeasurementManager::checkAttributionTimer):
* 
Source/WebKit/NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManager.h:
* 
Source/WebKit/NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManagerInterface.h:
(WebKit::PCM::ManagerInterface::checkAttributionTimer):
* Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::systemDidWake):

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



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

Reply via email to