[webkit-changes] [WebKit/WebKit] 4b0d92: WebKit API should support loading file reference URLs

Per Arne Vollan noreply at github.com
Tue Jan 23 11:39:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4b0d92f22315da25f50c27276c875f14a5502adc
      https://github.com/WebKit/WebKit/commit/4b0d92f22315da25f50c27276c875f14a5502adc
  Author: Per Arne Vollan <pvollan at apple.com>
  Date:   2024-01-23 (Tue, 23 Jan 2024)

  Changed paths:
    M Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

  Log Message:
  -----------
  WebKit API should support loading file reference URLs
https://bugs.webkit.org/show_bug.cgi?id=267928
rdar://120389511

Reviewed by Brent Fulgham.

WebKit API should support loading file reference URLs with the form file:///.file/id=...
A file reference URL can be resolved to the actual file with the NSURL method filePathURL.

* Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm:
(WebKit::SandboxExtensionImpl::consume):
(WebKit::resolvePathForSandboxExtension):
(WebKit::SandboxExtension::createHandleWithoutResolvingPath):
(WebKit::SandboxExtension::createHandleForReadByAuditToken):
(WebKit::SandboxExtension::createHandleForIOKitClassExtension):
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView loadFileURL:allowingReadAccessToURL:]):

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




More information about the webkit-changes mailing list