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

  Changed paths:
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/UploadDirectory.mm

  Log Message:
  -----------
  Unable to upload PDF file on iOS
rdar://178568342
https://bugs.webkit.org/show_bug.cgi?id=316262

Reviewed by Chris Dumez

In rdar://174670487, we compiled a list of paths where the Networking process 
has unconditional sandbox
access, and blocked files from under these paths to be uploaded. In this list 
we also included the
parent of the temp folder of the Networking process. This is too restrictive, 
since WKFileUploadPanel
places files under that directory for uploads. We should only include the 
actual temp folder of the
Networking folder in this list.

The reason we used the parent folder, was that the Networking process is 
actually granted read access
to the parent of its temp folder as well. This sandbox extension from the UI 
process should also be
removed, but that is out of scope for now. This is being tracked in 
rdar://178551436.

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/UploadDirectory.mm

* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::addPathsBlockedForSandboxExtensions):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UploadDirectory.mm:
(TEST(WebKit, AllowTempUploadDirectory)):

Originally-landed-as: [email protected] (439d7dfd8a9e). 
rdar://181073758
Canonical link: https://commits.webkit.org/316391@main



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

Reply via email to