Title: [247272] trunk/Source/WebKit
Revision
247272
Author
[email protected]
Date
2019-07-09 12:56:24 -0700 (Tue, 09 Jul 2019)

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (247271 => 247272)


--- trunk/Source/WebKit/ChangeLog	2019-07-09 19:38:54 UTC (rev 247271)
+++ trunk/Source/WebKit/ChangeLog	2019-07-09 19:56:24 UTC (rev 247272)
@@ -1,3 +1,19 @@
+2019-07-09  Youenn Fablet  <[email protected]>
+
+        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):
+
 2019-07-09  Sihui Liu  <[email protected]>
 
         Only allow fetching and removing session credentials from WebsiteDataStore

Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (247271 => 247272)


--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2019-07-09 19:38:54 UTC (rev 247271)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2019-07-09 19:56:24 UTC (rev 247272)
@@ -1058,8 +1058,9 @@
     // Inspector resources are in a directory with assumed access.
     ASSERT_WITH_SECURITY_IMPLICATION(!WebKit::isInspectorPage(*this));
 
-    if (SandboxExtension::createHandle("/", SandboxExtension::Type::ReadOnly, sandboxExtensionHandle))
-        willAcquireUniversalFileReadSandboxExtension(process);
+    // FIXME: universal file read access should be set if the sandbox extension is successfully created: rdar://problem/52357508.
+    SandboxExtension::createHandle("/", SandboxExtension::Type::ReadOnly, sandboxExtensionHandle);
+    willAcquireUniversalFileReadSandboxExtension(process);
 }
 
 #if !PLATFORM(COCOA)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to