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

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/static-router-main-resource.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/static-router-multiple-router-registrations.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/static-router-no-fetch-handler.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/static-router-race-network-and-fetch-handler.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/static-router-subresource.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/tentative/static-router/static-router-resource-timing.https-expected.txt
    M LayoutTests/platform/glib/TestExpectations
    M Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj
    A Source/WebCore/PAL/pal/PALSwift/RegexpHelper.swift
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/workers/service/ServiceWorkerRoute.cpp
    M Source/WebCore/workers/service/ServiceWorkerRoute.h
    A Source/WebCore/workers/service/ServiceWorkerRoute.mm

  Log Message:
  -----------
  [Cocoa] Implement service worker rule regexp matching
rdar://167750788
https://bugs.webkit.org/show_bug.cgi?id=305098

Reviewed by Chris Dumez.

We use Swift regexp API in cocoa ports to match regular expression for service 
worker static routing in networking process.
To do so, we introduce Source/WebCore/workers/service/ServiceWorkerRoute.swift 
and Source/WebCore/workers/service/ServiceWorkerRoute.mm ObjC wrapper.
To optimize matching, at rule matching time, we replace the URLPattern based 
strings with their corresponding regexp version using existing URLPattern 
infrastructure.

Glib does not have regexp support so we mark some WPT related tests as failing.

Covered by existing tests.

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



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

Reply via email to