Changeset 249454 in webkit


Ignore:
Timestamp:
Sep 3, 2019 9:11:08 PM (5 years ago)
Author:
pvollan@apple.com
Message:

[macOS] Unable to open local file from favorites bar
https://bugs.webkit.org/show_bug.cgi?id=201444

Reviewed by Brent Fulgham.

The sandbox extension handle should be created providing the pid of the receiving process.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r249452 r249454  
     12019-09-03  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS] Unable to open local file from favorites bar
     4        https://bugs.webkit.org/show_bug.cgi?id=201444
     5
     6        Reviewed by Brent Fulgham.
     7
     8        The sandbox extension handle should be created providing the pid of the receiving process.
     9
     10        * UIProcess/WebPageProxy.cpp:
     11        (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
     12
    1132019-09-03  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r249350 r249454  
    10711071            return;
    10721072
     1073#if HAVE(SANDBOX_ISSUE_READ_EXTENSION_TO_PROCESS_BY_PID)
     1074        if (SandboxExtension::createHandleForReadByPid(resourceDirectoryURL.fileSystemPath(), process.processIdentifier(), sandboxExtensionHandle)) {
     1075            m_process->assumeReadAccessToBaseURL(*this, resourceDirectoryURL);
     1076            return;
     1077        }
     1078#endif
    10731079        if (SandboxExtension::createHandle(resourceDirectoryURL.fileSystemPath(), SandboxExtension::Type::ReadOnly, sandboxExtensionHandle)) {
    10741080            m_process->assumeReadAccessToBaseURL(*this, resourceDirectoryURL);
Note: See TracChangeset for help on using the changeset viewer.