[webkit-changes] [WebKit/WebKit] f16654: Add a test for https://bugs.webkit.org/show_bug.cg...

youennf noreply at github.com
Mon May 15 09:47:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f1665400b2996d1cb94edaefd87f53a4501c5597
      https://github.com/WebKit/WebKit/commit/f1665400b2996d1cb94edaefd87f53a4501c5597
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h
    M Source/WebKit/NetworkProcess/NetworkProcess.cpp
    M Source/WebKit/NetworkProcess/NetworkProcess.h
    M Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm

  Log Message:
  -----------
  Add a test for https://bugs.webkit.org/show_bug.cgi?id=256280
https://bugs.webkit.org/show_bug.cgi?id=256584
rdar://109152644

Reviewed by Chris Dumez.

In https://bugs.webkit.org/show_bug.cgi?id=256280, we updated WebSWServerConnection::unregisterServiceWorkerClient to check for registrable domains of all clients in that web process.

To add an API test, we make use of an SPI to allow loads from a.amazon.com and b.amazon.com through a localhost server.
This allows to write an API test for registrable domains.
We also disable secure context checks to allow service workers on HTTP scheme.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h:
* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::initializeNetworkProcess):
* Source/WebKit/NetworkProcess/NetworkProcess.h:
(WebKit::NetworkProcess::localhostAliasesForTesting const):
* Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
(WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:

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




More information about the webkit-changes mailing list