⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249691 in webkit


Ignore:
Timestamp:
Sep 9, 2019, 8:19:37 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r249454. rdar://problem/55198071

[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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249454 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608-branch/Source/WebKit/ChangeLog

    r249690 r249691  
     12019-09-09  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r249454. rdar://problem/55198071
     4
     5    [macOS] Unable to open local file from favorites bar
     6    https://bugs.webkit.org/show_bug.cgi?id=201444
     7   
     8    Reviewed by Brent Fulgham.
     9   
     10    The sandbox extension handle should be created providing the pid of the receiving process.
     11   
     12    * UIProcess/WebPageProxy.cpp:
     13    (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
     14   
     15   
     16    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     17
     18    2019-09-03  Per Arne Vollan  <pvollan@apple.com>
     19
     20            [macOS] Unable to open local file from favorites bar
     21            https://bugs.webkit.org/show_bug.cgi?id=201444
     22
     23            Reviewed by Brent Fulgham.
     24
     25            The sandbox extension handle should be created providing the pid of the receiving process.
     26
     27            * UIProcess/WebPageProxy.cpp:
     28            (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
     29
    1302019-09-09  Kocsen Chung  <kocsen_chung@apple.com>
    231
  • branches/safari-608-branch/Source/WebKit/UIProcess/WebPageProxy.cpp

    r248845 r249691  
    10541054            return;
    10551055
     1056#if HAVE(SANDBOX_ISSUE_READ_EXTENSION_TO_PROCESS_BY_PID)
     1057        if (SandboxExtension::createHandleForReadByPid(resourceDirectoryURL.fileSystemPath(), process.processIdentifier(), sandboxExtensionHandle)) {
     1058            m_process->assumeReadAccessToBaseURL(*this, resourceDirectoryURL);
     1059            return;
     1060        }
     1061#endif
    10561062        if (SandboxExtension::createHandle(resourceDirectoryURL.fileSystemPath(), SandboxExtension::Type::ReadOnly, sandboxExtensionHandle)) {
    10571063            m_process->assumeReadAccessToBaseURL(*this, resourceDirectoryURL);
Note: See TracChangeset for help on using the changeset viewer.