Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7a0a88ad50affa5fe9f39629ad19bc0e7362a116
      
https://github.com/WebKit/WebKit/commit/7a0a88ad50affa5fe9f39629ad19bc0e7362a116
  Author: Youenn Fablet <[email protected]>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

  Changed paths:
    A 
LayoutTests/http/wpt/service-workers/resources/soft-update-service-worker.py
    A LayoutTests/http/wpt/service-workers/soft-update-referrer-expected.txt
    A LayoutTests/http/wpt/service-workers/soft-update-referrer.html
    M Source/WebCore/workers/service/server/SWServer.cpp
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  Service Worker update requests have a malformed referer (referer: https:)
rdar://154364616
https://bugs.webkit.org/show_bug.cgi?id=294715

Reviewed by Brady Eidson.

SWServer::createScriptRequest is using URL to create a valid referer but this 
does not give the expected result.
Instead reuse an existing routine to generate a referrer from an URL.

* LayoutTests/http/wpt/service-workers/resources/soft-update-service-worker.py: 
Added.
(main):
* LayoutTests/http/wpt/service-workers/soft-update-referrer-expected.txt: Added.
* LayoutTests/http/wpt/service-workers/soft-update-referrer.html: Added.
* Source/WebCore/workers/service/server/SWServer.cpp:
(WebCore::SWServer::createScriptRequest):
(WebCore::originURL): Deleted.
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to