Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 14bbe4e4af393ea3abcf85e3e1fcf0f937701a40
      
https://github.com/WebKit/WebKit/commit/14bbe4e4af393ea3abcf85e3e1fcf0f937701a40
  Author: Youenn Fablet <[email protected]>
  Date:   2026-01-22 (Thu, 22 Jan 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https.html
    M Source/WebCore/page/PerformanceResourceTiming.cpp
    M Source/WebCore/page/PerformanceResourceTiming.h
    M Source/WebCore/page/PerformanceResourceTiming.idl
    M Source/WebCore/platform/network/NetworkLoadMetrics.cpp
    M Source/WebCore/platform/network/NetworkLoadMetrics.h
    M Source/WebCore/workers/service/server/SWServerWorker.cpp
    M Source/WebCore/workers/service/server/SWServerWorker.h
    M Source/WebKit/CMakeLists.txt
    M Source/WebKit/DerivedSources-input.xcfilelist
    M Source/WebKit/DerivedSources.make
    M Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp
    M Source/WebKit/NetworkProcess/NetworkResourceLoader.h
    M Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.cpp
    M Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp
    A Source/WebKit/Shared/ServiceWorkerTimingInfo.h
    A Source/WebKit/Shared/ServiceWorkerTimingInfo.serialization.in
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    M Source/WebKit/WebProcess/Network/WebResourceLoader.cpp
    M Source/WebKit/WebProcess/Network/WebResourceLoader.h
    M Source/WebKit/WebProcess/Network/WebResourceLoader.messages.in

  Log Message:
  -----------
  Implement service worker resource timing API
rdar://168499249
https://bugs.webkit.org/show_bug.cgi?id=305831

Reviewed by Chris Dumez.

We add support for 
https://w3c.github.io/ServiceWorker/#service-worker-timing-info worker router 
evaluation start, worker cache lookup start, worker matched router source and 
worker final router source.
This is stored in NetworkResourceLoader and set by ServiceWorkerFetchTask and 
WebSWServerConnection.
We update SWServerWorker::getRouterSource to return null or a source, as per 
spec to be able to properly set worker router evaluation start.

>From NetworkResourceLoader, we send this additional information to 
>WebResourceLoader just before sending the actual response.
We add the necessary WebIDL API and stubs in PerformanceResourceTiming, as well 
as the plumbery in NetworkLoadMetrics.

For two new timestamp properties, we make sure that reducing the precision of 
the values will not make them back to 0.0, which is equivalent to not being set.
Instead, these values will be set to 1ms, the precision limit.
A follow-up patch will make these two timstamps consistent with other timestamps

Covered by rebased test.
We update this test to use the standardized names of the properties if 
available.

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



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

Reply via email to