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

  Changed paths:
    M Source/WebKit/NetworkProcess/NetworkProcess.cpp
    M Source/WebKit/NetworkProcess/NetworkProcess.h
    M Source/WebKit/NetworkProcess/NetworkProcess.messages.in
    M Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp
    M Source/WebKit/Shared/WebsiteDataStoreParameters.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.h

  Log Message:
  -----------
  WebPageProxy::loadDataWithNavigationShared may fail to load files under the 
base URL
https://bugs.webkit.org/show_bug.cgi?id=318626
rdar://181431723

Reviewed by Chris Dumez.

Unless we create this sandbox extension, the Networking process will not be 
able to load files under the base
URL that are referenced in the HTML data.

This change also allows us to remove a temporary workaround to allow the 
Networking process to load files from
the temp directory of the UI process on iOS, since we now provide a sandbox 
extension instead.

* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::allowFileAccessFromWebProcess):
* Source/WebKit/NetworkProcess/NetworkProcess.h:
* Source/WebKit/NetworkProcess/NetworkProcess.messages.in:
* Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::isLocalFileLoadAllowed):
* Source/WebKit/Shared/WebsiteDataStoreParameters.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
(WebKit::WebPageProxy::loadDataWithNavigationShared):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::assumeReadAccessToBaseURL):
* Source/WebKit/UIProcess/WebProcessProxy.h:

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



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

Reply via email to