RESOLVED FIXED 204732
[GTK][WPE] Re-add flatpak sandbox support
https://bugs.webkit.org/show_bug.cgi?id=204732
Summary [GTK][WPE] Re-add flatpak sandbox support
Patrick Griffis
Reported 2019-12-01 15:03:12 PST
[GTK][WPE] Re-add flatpak sandbox support
Attachments
Patch (10.63 KB, patch)
2019-12-01 15:10 PST, Patrick Griffis
no flags
Patch (11.06 KB, patch)
2020-01-16 21:28 PST, Patrick Griffis
no flags
Patch (11.16 KB, patch)
2020-02-06 08:47 PST, Patrick Griffis
no flags
Patch (11.16 KB, patch)
2020-02-06 08:50 PST, Patrick Griffis
no flags
Patch (10.51 KB, patch)
2020-02-06 10:22 PST, Patrick Griffis
no flags
Patrick Griffis
Comment 1 2019-12-01 15:10:25 PST
Patrick Griffis
Comment 2 2019-12-01 15:12:11 PST
Before being committed there are some remaining upstream flatpak issues that are being worked on: https://github.com/flatpak/flatpak-xdg-utils/pull/24
Patrick Griffis
Comment 3 2020-01-16 21:28:16 PST
Michael Catanzaro
Comment 4 2020-02-06 08:39:17 PST
Comment on attachment 388009 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388009&action=review > Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:54 > +static bool isFlatpakSpawnUsable(const ProcessLauncher::LaunchOptions& launchOptions) Don't we need to check if running under flatpak before trying to use flatpak-spawn? > Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:66 > + ret = false; > + return *ret; Please print a g_warning() in this case. We shouldn't silently disable the sandbox. > Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:203 > > + Should be only one line of whitespace.
Patrick Griffis
Comment 5 2020-02-06 08:40:20 PST
(In reply to Michael Catanzaro from comment #4) > Comment on attachment 388009 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=388009&action=review > > > Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:54 > > +static bool isFlatpakSpawnUsable(const ProcessLauncher::LaunchOptions& launchOptions) > > Don't we need to check if running under flatpak before trying to use > flatpak-spawn? It will just safely fail on the host.
Patrick Griffis
Comment 6 2020-02-06 08:47:51 PST
Patrick Griffis
Comment 7 2020-02-06 08:50:25 PST
Michael Catanzaro
Comment 8 2020-02-06 09:06:18 PST
(In reply to Patrick Griffis from comment #5) > It will just safely fail on the host. There is the new warning message though, which we don't want printing when not running in flatpak. Makes sense to add another check, yes?
Michael Catanzaro
Comment 9 2020-02-06 09:07:25 PST
Maybe we don't need the check for /tmp after all. We don't support any stable flatpaks of Epiphany, only Epiphany Technology Preview. So there's nothing to keep working. Right?
Patrick Griffis
Comment 10 2020-02-06 10:22:31 PST
Patrick Griffis
Comment 11 2020-02-06 10:22:43 PST
(In reply to Michael Catanzaro from comment #9) > Maybe we don't need the check for /tmp after all. We don't support any > stable flatpaks of Epiphany, only Epiphany Technology Preview. So there's > nothing to keep working. Right? Yeah that is fair. Removed.
WebKit Commit Bot
Comment 12 2020-02-06 11:26:52 PST
Comment on attachment 389971 [details] Patch Clearing flags on attachment: 389971 Committed r255969: <https://trac.webkit.org/changeset/255969>
WebKit Commit Bot
Comment 13 2020-02-06 11:26:54 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.