Title: [249673] branches/safari-608.2.11.1-branch/Source/WebKit
- Revision
- 249673
- Author
- [email protected]
- Date
- 2019-09-09 16:23:48 -0700 (Mon, 09 Sep 2019)
Log Message
Cherry-pick r249454. rdar://problem/55198064
[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
Modified Paths
Diff
Modified: branches/safari-608.2.11.1-branch/Source/WebKit/ChangeLog (249672 => 249673)
--- branches/safari-608.2.11.1-branch/Source/WebKit/ChangeLog 2019-09-09 23:14:44 UTC (rev 249672)
+++ branches/safari-608.2.11.1-branch/Source/WebKit/ChangeLog 2019-09-09 23:23:48 UTC (rev 249673)
@@ -1,3 +1,32 @@
+2019-09-09 Alan Coon <[email protected]>
+
+ Cherry-pick r249454. rdar://problem/55198064
+
+ [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
+
+ 2019-09-03 Per Arne Vollan <[email protected]>
+
+ [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):
+
2019-09-04 Kocsen Chung <[email protected]>
Cherry-pick r249430. rdar://problem/55031098
Modified: branches/safari-608.2.11.1-branch/Source/WebKit/UIProcess/WebPageProxy.cpp (249672 => 249673)
--- branches/safari-608.2.11.1-branch/Source/WebKit/UIProcess/WebPageProxy.cpp 2019-09-09 23:14:44 UTC (rev 249672)
+++ branches/safari-608.2.11.1-branch/Source/WebKit/UIProcess/WebPageProxy.cpp 2019-09-09 23:23:48 UTC (rev 249673)
@@ -1053,6 +1053,12 @@
if (process.hasAssumedReadAccessToURL(resourceDirectoryURL))
return;
+#if HAVE(SANDBOX_ISSUE_READ_EXTENSION_TO_PROCESS_BY_PID)
+ if (SandboxExtension::createHandleForReadByPid(resourceDirectoryURL.fileSystemPath(), process.processIdentifier(), sandboxExtensionHandle)) {
+ m_process->assumeReadAccessToBaseURL(*this, resourceDirectoryURL);
+ return;
+ }
+#endif
if (SandboxExtension::createHandle(resourceDirectoryURL.fileSystemPath(), SandboxExtension::Type::ReadOnly, sandboxExtensionHandle)) {
m_process->assumeReadAccessToBaseURL(*this, resourceDirectoryURL);
return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes