Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0c2c3da31e37476bd95d06f17af5143eae171ec0
      
https://github.com/WebKit/WebKit/commit/0c2c3da31e37476bd95d06f17af5143eae171ec0
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2026-08-27 (Thu, 27 Aug 2026)

  Changed paths:
    M Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.cpp
    M Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp
    M Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.h

  Log Message:
  -----------
  REGRESSION(316854@main): CertificateInfo is not sent to the UI process for 
service worker fetch loads
https://bugs.webkit.org/show_bug.cgi?id=322485

Reviewed by Alex Christensen.

ServiceWorkerFetchTask::processResponse() passes the response to the
loader by calling sendDidReceiveResponseWithPotentialProcessSwap(), so
didReceiveMainResourceResponse(), that sends the certificate info the UI
process, is not called.

This patch adds WebSWServerConnection::fetchTaskReceivedMainResourceResponse()
that is called from ServiceWorkerFetchTask::processResponse() for main frame
loads to send the ReceivedMainResourceResponseWithCertificateInfo to the UI 
process.

* Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.cpp:
(WebKit::ServiceWorkerFetchTask::processResponse):
* Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp:
(WebKit::WebSWServerConnection::fetchTaskReceivedMainResourceResponse):
(WebKit::WebSWServerConnection::resolveUnregistrationJobInClient):
* Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.h:

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



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

Reply via email to