Changeset 249569 in webkit
- Timestamp:
- Sep 6, 2019 2:00:04 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r249567 r249569 1 2019-09-06 Patrick Griffis <pgriffis@igalia.com> 2 3 [GTK][WPE] Do not enable the sandbox in Snap 4 https://bugs.webkit.org/show_bug.cgi?id=201486 5 6 Reviewed by Carlos Garcia Campos. 7 8 Running inside of Snap adds its own complications and is simply 9 not supported for now. 10 11 Also update isInsideFlatpak() for consistency. 12 13 * UIProcess/Launcher/glib/ProcessLauncherGLib.cpp: 14 (WebKit::isInsideFlatpak): 15 (WebKit::isInsideSnap): 16 (WebKit::ProcessLauncher::launchProcess): 17 1 18 2019-09-05 Joseph Pecoraro <pecoraro@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
r247096 r249569 53 53 static bool isInsideFlatpak() 54 54 { 55 static int ret = -1;56 if (ret != -1)57 return ret;55 static Optional<bool> ret; 56 if (ret) 57 return *ret; 58 58 59 59 ret = g_file_test("/.flatpak-info", G_FILE_TEST_EXISTS); 60 return ret; 60 return *ret; 61 } 62 63 static bool isInsideSnap() 64 { 65 static Optional<bool> ret; 66 if (ret) 67 return *ret; 68 69 ret = g_getenv("SNAP"); 70 return *ret; 61 71 } 62 72 #endif … … 138 148 139 149 // You cannot use bubblewrap within Flatpak so lets ensure it never happens. 140 if (sandboxEnabled && !isInsideFlatpak()) 150 // Snap can allow it but has its own limitations that require workarounds. 151 if (sandboxEnabled && !isInsideFlatpak() && !isInsideSnap()) 141 152 process = bubblewrapSpawn(launcher.get(), m_launchOptions, argv, &error.outPtr()); 142 153 else
Note: See TracChangeset
for help on using the changeset viewer.