Add support for configuring plugins directories

This commit is contained in:
Quentin Rameau committed 2020-11-01 16:59:12 +01:00
1 parent 8d5e2b3a40
commit 6850365d7c
3 files changed
+12 -2

No files matched your search

+4
View File
@@ -1161,6 +1161,10 @@ newview(Client *c, WebKitWebView *rv)
webkit_web_context_set_cache_model(context,
curconfig[DiskCache].val.i ? WEBKIT_CACHE_MODEL_WEB_BROWSER :
WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
/* plugins directories */
for (; *plugindirs; ++plugindirs)
webkit_web_context_set_additional_plugins_directory(
context, *plugindirs);
/* Currently only works with text file to be compatible with curl */
webkit_cookie_manager_set_persistent_storage(cookiemanager,