Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c5b4561fe2db0a4afb4351accc1ad89b0554f76e
      
https://github.com/WebKit/WebKit/commit/c5b4561fe2db0a4afb4351accc1ad89b0554f76e
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-04-26 (Sun, 26 Apr 2026)

  Changed paths:
    M LayoutTests/platform/ios-site-isolation/TestExpectations
    M LayoutTests/platform/mac-site-isolation/TestExpectations
    M Source/WebKit/NetworkProcess/NetworkProcess.cpp
    M Source/WebKit/NetworkProcess/NetworkProcess.h
    M Source/WebKit/NetworkProcess/NetworkProcess.messages.in
    M Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp
    M Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h
    M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp
    M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h
    M Tools/WebKitTestRunner/TestController.cpp

  Log Message:
  -----------
  [Site Isolation] Clear CORS preflight cache between tests
https://bugs.webkit.org/show_bug.cgi?id=313356

Reviewed by Anne van Kesteren.

Three tests were failing under site isolation because WebKitTestRunner does not 
clear the CORS preflight cache
in the network process between each test, meaning that CORS preflight from one 
test bleeds into another.

Added a new mechanism to clear CORS preflight cache for testing purposes and 
calling it in
TestController::resetStateToConsistentValues.

Co-authored with Claude.

Tests: 
http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header.html
       
http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-method.html
       http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html

* LayoutTests/platform/ios-site-isolation/TestExpectations:
* LayoutTests/platform/mac-site-isolation/TestExpectations:
* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::clearCrossOriginPreflightResultCacheForTesting):
* Source/WebKit/NetworkProcess/NetworkProcess.h:
* Source/WebKit/NetworkProcess/NetworkProcess.messages.in:
* Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp:
(WKWebsiteDataStoreClearCrossOriginPreflightResultCacheForTesting):
* Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.h:
* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::clearCrossOriginPreflightResultCacheForTesting):
* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h:
* Tools/WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetStateToConsistentValues):

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



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

Reply via email to