diff options
author | Daniel Carl <danielcarl@gmx.de> | 2018-08-06 22:46:36 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2018-08-06 22:46:36 +0200 |
commit | d565fb8b0638693f02c8c2711d8a510f80c0884b (patch) | |
tree | 110487f91ca7d05670e898d34421decc79c83e2d /src/setting.c | |
parent | 24cd4e84f09a00185a975381bb3f0ff1913c2797 (diff) |
Added webkit setting for file uri handling.
Diffstat (limited to 'src/setting.c')
-rw-r--r-- | src/setting.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/setting.c b/src/setting.c index cc42ca0..d6c69b6 100644 --- a/src/setting.c +++ b/src/setting.c @@ -81,6 +81,12 @@ void setting_init(Client *c) /* TODO use the real names for webkit settings */ i = 14; setting_add(c, "accelerated-2d-canvas", TYPE_BOOLEAN, &off, webkit, 0, "enable-accelerated-2d-canvas"); +#if WEBKIT_CHECK_VERSION (2, 10, 0) + setting_add(c, "allow-file-access-from-file-urls", TYPE_BOOLEAN, &off, webkit, 0, "allow-file-access-from-file-urls"); +#endif +#if WEBKIT_CHECK_VERSION (2, 14, 0) + setting_add(c, "allow-universal-access-from-file-urls", TYPE_BOOLEAN, &off, webkit, 0, "allow-universal-access-from-file-urls"); +#endif setting_add(c, "caret", TYPE_BOOLEAN, &off, webkit, 0, "enable-caret-browsing"); setting_add(c, "cursiv-font", TYPE_CHAR, &"serif", webkit, 0, "cursive-font-family"); setting_add(c, "default-charset", TYPE_CHAR, &"utf-8", webkit, 0, "default-charset"); |