summaryrefslogtreecommitdiffstats
path: root/src/about
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-05 01:09:15 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-05 01:09:15 (EDT)
commit682dd96cbfeb5f03d6d893a13dacc68dde7bf61f (patch)
tree681a1c1c5aa179007dafaf1630ed9aec649c28a0 /src/about
parent4a4888710f3e77c6f218336beef9cd23ffb41d5e (diff)
downloadmarquee-682dd96cbfeb5f03d6d893a13dacc68dde7bf61f.zip
marquee-682dd96cbfeb5f03d6d893a13dacc68dde7bf61f.tar.gz
marquee-682dd96cbfeb5f03d6d893a13dacc68dde7bf61f.tar.bz2
about:preferences: Add two more pages of preferences
Diffstat (limited to 'src/about')
-rw-r--r--src/about/preferences.c86
1 files changed, 86 insertions, 0 deletions
diff --git a/src/about/preferences.c b/src/about/preferences.c
index 8b5c2e0..272a031 100644
--- a/src/about/preferences.c
+++ b/src/about/preferences.c
@@ -130,6 +130,88 @@ gen_page_display(MqConfig *config)
NULL);
}
+static gchar *
+gen_page_permissions(MqConfig *config)
+{
+ return mq_html_container("div",
+ mq_html_h3(NULL, "General"),
+ GEN_BOOL("permissions.images.auto-load",
+ "Automatically Load Images"),
+ GEN_BOOL("permissions.images.favicons.override",
+ "Always Load Icons Irrespective of Automatic Image "
+ "Loading"),
+ GEN_BOOL("permissions.java.enable",
+ "Enable Java"),
+ GEN_BOOL("permissions.javascript.enable",
+ "Enable JavaScript"),
+ GEN_BOOL("permissions.plugins.enable",
+ "Enable Plugins"),
+
+ mq_html_h3(NULL, "JavaScript"),
+ GEN_BOOL("permissions.javascript.open-windows",
+ "Enable JavaScript to Open Windows"),
+ GEN_BOOL("permissions.javascript.fullscreen",
+ "Enable JavaScript to Display Elements Fullscreen"),
+ GEN_BOOL("permissions.javascript.modal-dialogs",
+ "Enable JavaScript to Show Modal Dialogs"),
+ GEN_BOOL("permissions.javascript.clipboard",
+ "Enable JavaScript to Access the Clipboard"),
+
+ mq_html_h3(NULL, "Data Storage"),
+ GEN_BOOL("permissions.javascript.database",
+ "Enable Web Database"),
+ GEN_BOOL("permissions.javascript.storage",
+ "Enable Web Storage"),
+ GEN_BOOL("permissions.appcache",
+ "Enable Application Cache"),
+
+ mq_html_h3(NULL, "Graphics and Multimedia"),
+ GEN_BOOL("canvas.acceleration.enable",
+ "Enable Hardware-Accelerated 2-D Canvas Drawing"),
+ GEN_BOOL("permissions.javascript.webgl",
+ "Enable JavaScript WebGL 3-D Graphics Rendering"),
+ GEN_BOOL("permissions.javascript.audio",
+ "Enable JavaScript to Process and Synthesize Audio"),
+ GEN_BOOL("media.autoplay",
+ "Enable Automatic Media Playback and Loading"),
+ GEN_BOOL("media.force-fullscreen",
+ "Force Media to Play Fullscreen"),
+ GEN_BOOL("permissions.javascript.mediastream.enable",
+ "Enable JavaScript to Access Audio and Video Devices"),
+ GEN_BOOL("permissions.javascript.mediasource.enable",
+ "Enable JavaScript to Generate Media Streams"),
+ NULL);
+}
+
+static gchar *
+gen_page_sec_and_priv(MqConfig *config)
+{
+ return mq_html_container("div",
+ mq_html_h3(NULL, "History"),
+ GEN_BOOL("privacy.private-browsing.enabled",
+ "Enable Private Prowsing (Disables History, Cache, and "
+ "Form Auto-Filling)"),
+ GEN_BOOL("privacy.remember.history",
+ "Remember Browsing History"),
+ GEN_BOOL("privacy.remember.downloads",
+ "Remember Download History"),
+
+ mq_html_h3(NULL, "Cookies"),
+ GEN_STR ("cookies.accept",
+ "Accept Cookies"),
+
+ mq_html_h3(NULL, "Security"),
+ GEN_BOOL("security.xss-auditor.enable",
+ "Attempt to Detect and Block Cross-Site Scripting "
+ "Attacks"),
+
+ mq_html_h3(NULL, "Network"),
+ GEN_BOOL("dns.prefetch.enable",
+ "Prefetch Domain Name Resolutions for Better "
+ "Performance"),
+ NULL);
+}
+
#undef GEN_BOOL
#undef GEN_INT
#undef GEN_DBL
@@ -157,6 +239,10 @@ mq_about_preferences_response(MqApplication *application, GHashTable *query,
"General",
gen_page_display(config),
"Display",
+ gen_page_permissions(config),
+ "Permissions",
+ gen_page_sec_and_priv(config),
+ "Security and Privacy",
NULL),
NULL),
NULL);