RESOLVED FIXED 227343
[GTK] MiniBrowser: add an option to enable the web process sandbox
https://bugs.webkit.org/show_bug.cgi?id=227343
Summary [GTK] MiniBrowser: add an option to enable the web process sandbox
Carlos Garcia Campos
Reported 2021-06-24 02:36:48 PDT
.
Attachments
Patch (2.99 KB, patch)
2021-06-24 02:38 PDT, Carlos Garcia Campos
mcatanzaro: review+
Carlos Garcia Campos
Comment 1 2021-06-24 02:38:05 PDT
Michael Catanzaro
Comment 2 2021-06-24 08:46:28 PDT
Comment on attachment 432143 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432143&action=review > Tools/MiniBrowser/gtk/main.c:149 > + { "enable-sandbox", 0, 0, G_OPTION_ARG_NONE, &enableSandbox, "Enable web process sandbox support", NULL }, Ideally it would be on by default, to have the best chance of avoiding mistakes like developing new features that are incompatible with the sandbox (it has happened recently). I guess the sandbox will probably break layout tests if we're not careful, though. And I know you want to avoid waiting for D-Bus registration when running layout tests. So I would flip it to disable-sandbox, if possible. > Tools/MiniBrowser/gtk/main.c:682 > + if (!webkit_website_data_manager_is_ephemeral(manager)) { > + webkit_web_context_add_path_to_sandbox(webContext, webkit_website_data_manager_get_base_data_directory(manager), TRUE); > + webkit_web_context_add_path_to_sandbox(webContext, webkit_website_data_manager_get_base_cache_directory(manager), TRUE); > + } Um, I thought this was supposed to be done automatically, but I can't find any code for it, so I guess it has to be manual. :/
Michael Catanzaro
Comment 3 2021-06-24 10:03:44 PDT
(In reply to Michael Catanzaro from comment #2) > So I would flip it to disable-sandbox, if possible. If you do this, then we can also close bug #213174. > > Tools/MiniBrowser/gtk/main.c:682 > > + if (!webkit_website_data_manager_is_ephemeral(manager)) { > > + webkit_web_context_add_path_to_sandbox(webContext, webkit_website_data_manager_get_base_data_directory(manager), TRUE); > > + webkit_web_context_add_path_to_sandbox(webContext, webkit_website_data_manager_get_base_cache_directory(manager), TRUE); > > + } > > Um, I thought this was supposed to be done automatically, but I can't find > any code for it, so I guess it has to be manual. :/ Discussing this with Patrick, we think these should not be needed. Does something break if you don't add them? It might be a bug.
Carlos Garcia Campos
Comment 4 2021-06-28 05:41:14 PDT
Note You need to log in before you can comment on or make changes to this bug.