Title: [243708] trunk/Source/WebKit
Revision
243708
Author
[email protected]
Date
2019-04-01 12:51:09 -0700 (Mon, 01 Apr 2019)

Log Message

[GTK][WPE] Add more websitedatastore directories to web process sandbox
https://bugs.webkit.org/show_bug.cgi?id=196447

Patch by Patrick Griffis <[email protected]> on 2019-04-01
Reviewed by Michael Catanzaro.

* UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
(WebKit::bubblewrapSpawn):
* UIProcess/glib/WebProcessProxyGLib.cpp:
(WebKit::WebProcessProxy::platformGetLaunchOptions):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (243707 => 243708)


--- trunk/Source/WebKit/ChangeLog	2019-04-01 19:48:22 UTC (rev 243707)
+++ trunk/Source/WebKit/ChangeLog	2019-04-01 19:51:09 UTC (rev 243708)
@@ -1,3 +1,15 @@
+2019-04-01  Patrick Griffis  <[email protected]>
+
+        [GTK][WPE] Add more websitedatastore directories to web process sandbox
+        https://bugs.webkit.org/show_bug.cgi?id=196447
+
+        Reviewed by Michael Catanzaro.
+
+        * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
+        (WebKit::bubblewrapSpawn):
+        * UIProcess/glib/WebProcessProxyGLib.cpp:
+        (WebKit::WebProcessProxy::platformGetLaunchOptions):
+
 2019-04-01  Per Arne Vollan  <[email protected]>
 
         [macOS] Crash when loading Twitter with autoplay video enabled.

Modified: trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp (243707 => 243708)


--- trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp	2019-04-01 19:48:22 UTC (rev 243707)
+++ trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp	2019-04-01 19:51:09 UTC (rev 243708)
@@ -765,7 +765,7 @@
             }));
         }
 
-        Vector<String> extraPaths = { "applicationCacheDirectory", "waylandSocket"};
+        Vector<String> extraPaths = { "applicationCacheDirectory", "mediaKeysDirectory", "waylandSocket", "webSQLDatabaseDirectory" };
         for (const auto& path : extraPaths) {
             String extraPath = launchOptions.extraInitializationData.get(path);
             if (!extraPath.isEmpty())

Modified: trunk/Source/WebKit/UIProcess/glib/WebProcessProxyGLib.cpp (243707 => 243708)


--- trunk/Source/WebKit/UIProcess/glib/WebProcessProxyGLib.cpp	2019-04-01 19:48:22 UTC (rev 243707)
+++ trunk/Source/WebKit/UIProcess/glib/WebProcessProxyGLib.cpp	2019-04-01 19:51:09 UTC (rev 243708)
@@ -42,6 +42,8 @@
     launchOptions.extraInitializationData.set("enable-sandbox", m_processPool->sandboxEnabled() ? "true" : "false");
 
     websiteDataStore().resolveDirectoriesIfNecessary();
+    launchOptions.extraInitializationData.set("webSQLDatabaseDirectory", websiteDataStore().resolvedDatabaseDirectory());
+    launchOptions.extraInitializationData.set("mediaKeysDirectory", websiteDataStore().resolvedMediaKeysDirectory());
     launchOptions.extraInitializationData.set("applicationCacheDirectory", websiteDataStore().resolvedApplicationCacheDirectory());
 
     launchOptions.extraWebProcessSandboxPaths = m_processPool->sandboxPaths();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to