Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 442b80b2316837ae262d862bf3726ee534f1a31f
      
https://github.com/WebKit/WebKit/commit/442b80b2316837ae262d862bf3726ee534f1a31f
  Author: Per Arne Vollan <[email protected]>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    M Source/WTF/wtf/PlatformEnableCocoa.h
    M Source/WebKit/NetworkProcess/NetworkProcess.cpp
    M Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp
    M Source/WebKit/NetworkProcess/NetworkResourceLoader.h
    M Tools/TestWebKitAPI/Tests/WebKit/WKPage/cocoa/FetchLocalFile.mm

  Log Message:
  -----------
  [macOS] Enable feature to block local file loads without a sandbox extension
https://bugs.webkit.org/show_bug.cgi?id=313250
rdar://174408804

Reviewed by Chris Dumez.

Check that local paths are not in the block-list before continuing the load.

Test: WebKit.FetchCookieFile

* Source/WTF/wtf/PlatformEnableCocoa.h:
* Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::isLocalFileLoadAllowed):
(WebKit::NetworkResourceLoader::startNetworkLoad):
(WebKit::NetworkResourceLoader::isLocalFileLoadAllowedWithoutSandboxExtension): 
Deleted.
* Source/WebKit/NetworkProcess/NetworkResourceLoader.h:
* Tools/TestWebKitAPI/Tests/WebKit/FetchLocalFile.mm:
(TEST(WebKit, FetchLocalFile)):
(TEST(WebKit, FetchLocalFileInParentDirectory)):

Originally-landed-as: 305413.827@safari-7624-branch (24aaa6e88016). 
rdar://180437879
Canonical link: https://commits.webkit.org/316386@main



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

Reply via email to