Changeset 247272 in webkit


Ignore:
Timestamp:
Jul 9, 2019 12:56:24 PM (5 years ago)
Author:
youenn@apple.com
Message:

Revert conditional WebPageProxy check to grant universal file read sandbox upon correct sandbox creation
https://bugs.webkit.org/show_bug.cgi?id=199622
<rdar://problem/52357508>

Reviewed by Alex Christensen.

On iOS, the sandbox extension to '/' will usually fail, thus the universal file read sandbox is not granted.
This makes WebPageProxy cancel some file:// loads to the application own container.
As a short term fix, go back to previous behavior.
Covered by testing broken app identified in rdar://problem/52357508.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r247270 r247272  
     12019-07-09  Youenn Fablet  <youenn@apple.com>
     2
     3        Revert conditional WebPageProxy check to grant universal file read sandbox upon correct sandbox creation
     4        https://bugs.webkit.org/show_bug.cgi?id=199622
     5        <rdar://problem/52357508>
     6
     7        Reviewed by Alex Christensen.
     8
     9        On iOS, the sandbox extension to '/' will usually fail, thus the universal file read sandbox is not granted.
     10        This makes WebPageProxy cancel some file:// loads to the application own container.
     11        As a short term fix, go back to previous behavior.
     12        Covered by testing broken app identified in rdar://problem/52357508.
     13
     14        * UIProcess/WebPageProxy.cpp:
     15        (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
     16
    1172019-07-09  Sihui Liu  <sihui_liu@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r247227 r247272  
    10591059    ASSERT_WITH_SECURITY_IMPLICATION(!WebKit::isInspectorPage(*this));
    10601060
    1061     if (SandboxExtension::createHandle("/", SandboxExtension::Type::ReadOnly, sandboxExtensionHandle))
    1062         willAcquireUniversalFileReadSandboxExtension(process);
     1061    // FIXME: universal file read access should be set if the sandbox extension is successfully created: rdar://problem/52357508.
     1062    SandboxExtension::createHandle("/", SandboxExtension::Type::ReadOnly, sandboxExtensionHandle);
     1063    willAcquireUniversalFileReadSandboxExtension(process);
    10631064}
    10641065
Note: See TracChangeset for help on using the changeset viewer.