Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dc17abd7018a7b8122b9f199584390e60778de7d
https://github.com/WebKit/WebKit/commit/dc17abd7018a7b8122b9f199584390e60778de7d
Author: Youenn Fablet <[email protected]>
Date: 2026-04-15 (Wed, 15 Apr 2026)
Changed paths:
M Source/WebCore/workers/service/server/SWRegistrationDatabase.cpp
M Source/WebCore/workers/service/server/SWServer.cpp
M Source/WebCore/workers/service/server/SWServer.h
M Source/WebCore/workers/service/server/SWServerJobQueue.cpp
M Source/WebCore/workers/service/server/SWServerRegistration.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ServiceWorkerBasic.mm
Log Message:
-----------
Unregister service worker registrations with missing main script
rdar://174755909
https://bugs.webkit.org/show_bug.cgi?id=312287
Reviewed by Chris Dumez.
As seen in logs, service worker database may have registrations with missing
service worker scripts.
In that case, it is best to clear the registration as we cannot run properly
the service worker.
The web page is then expected to reregister the service worker as needed.
We implement this by having a load script callback returning true or false.
In case of failure, we schedule an unregister job.
We add some logging to help further diagnose.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ServiceWorkerBasic.mm
Canonical link: https://commits.webkit.org/311301@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications