[geary/wip/728002-webkit2: 31/96] Explicitly set a bunch of good-to-know default WebSettings values.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/728002-webkit2: 31/96] Explicitly set a bunch of good-to-know default WebSettings values.
- Date: Sat, 14 Jan 2017 12:14:26 +0000 (UTC)
commit ac23144b2922125ae1d12e5aa7c0ad6f0f315b74
Author: Michael James Gratton <mike vee net>
Date: Wed Nov 23 23:42:16 2016 +1100
Explicitly set a bunch of good-to-know default WebSettings values.
src/client/components/client-web-view.vala | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/client/components/client-web-view.vala b/src/client/components/client-web-view.vala
index f3c9a8b..b1fd0f3 100644
--- a/src/client/components/client-web-view.vala
+++ b/src/client/components/client-web-view.vala
@@ -104,10 +104,18 @@ public class ClientWebView : WebKit.WebView {
public ClientWebView(WebKit.UserContentManager? content_manager = null) {
WebKit.Settings setts = new WebKit.Settings();
- setts.enable_javascript = false;
+ setts.allow_modal_dialogs = false;
+ setts.default_charset = "UTF-8";
+ setts.enable_developer_extras = Args.inspector;
+ setts.enable_fullscreen = false;
+ setts.enable_html5_database = false;
+ setts.enable_html5_local_storage = false;
setts.enable_java = false;
+ setts.enable_javascript = false;
+ setts.enable_media_stream = false;
+ setts.enable_offline_web_application_cache = false;
+ setts.enable_page_cache = false;
setts.enable_plugins = false;
- setts.enable_developer_extras = Args.inspector;
setts.javascript_can_access_clipboard = true;
Object(user_content_manager: content_manager, settings: setts);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]