tests: Disable sandboxing for now
https://bugs.webkit.org/show_bug.cgi?id=213174
This commit is contained in:
parent
62b89db042
commit
80aa742686
3 changed files with 10 additions and 5 deletions
|
|
@ -77,12 +77,15 @@ public abstract class Components.WebView : WebKit.WebView, Geary.BaseInterface {
|
|||
*/
|
||||
public static void init_web_context(Application.Configuration config,
|
||||
File web_extension_dir,
|
||||
File cache_dir) {
|
||||
File cache_dir,
|
||||
bool sandboxed=true) {
|
||||
WebsiteDataManager data_manager = new WebsiteDataManager(cache_dir.get_path());
|
||||
WebKit.WebContext context = new WebKit.WebContext.with_website_data_manager(data_manager);
|
||||
// Enable WebProcess sandboxing
|
||||
if (sandboxed) {
|
||||
context.add_path_to_sandbox(web_extension_dir.get_path(), true);
|
||||
context.set_sandbox_enabled(true);
|
||||
}
|
||||
// Use the doc browser model so that we get some caching of
|
||||
// resources between email body loads.
|
||||
context.set_cache_model(WebKit.CacheModel.DOCUMENT_BROWSER);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ public abstract class Components.WebViewTestCase<V> : TestCase {
|
|||
WebView.init_web_context(
|
||||
this.config,
|
||||
File.new_for_path(_BUILD_ROOT_DIR).get_child("src"),
|
||||
File.new_for_path("/tmp") // XXX use something better here
|
||||
File.new_for_path("/tmp"), // XXX use something better here
|
||||
false // https://bugs.webkit.org/show_bug.cgi?id=213174
|
||||
);
|
||||
try {
|
||||
WebView.load_resources(GLib.File.new_for_path("/tmp"));
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ public class Components.WebViewTest : TestCase {
|
|||
WebView.init_web_context(
|
||||
config,
|
||||
File.new_for_path(_BUILD_ROOT_DIR).get_child("src"),
|
||||
File.new_for_path("/tmp") // XXX use something better here
|
||||
File.new_for_path("/tmp"), // XXX use something better here
|
||||
false // https://bugs.webkit.org/show_bug.cgi?id=213174
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue