### Changed
### Fixed
### Removed
+* setting `private-browsing` was removed in favor of `--incognito` option.
## [3.4.0] - 2019-03-26
### Added
cookie file
* Fixed none POSIX `echo -n` call
-[Unreleased]: https://github.com/fanglingsu/vimb/compare/3.3.0...master
+[Unreleased]: https://github.com/fanglingsu/vimb/compare/3.4.0...master
[3.4.0]: https://github.com/fanglingsu/vimb/compare/3.3.0...3.4.0
[3.3.0]: https://github.com/fanglingsu/vimb/compare/3.2.0...3.3.0
[3.2.0]: https://github.com/fanglingsu/vimb/compare/3.1.0...3.2.0
.B print-backgrounds (bool)
Whether background images should be drawn during printing.
.TP
-.B private-browsing (bool)
-Whether to enable private browsing mode.
-This suppresses printing of messages into JavaScript Console.
-At the time this is the only way to force WebKit to
-not allow a page to store data in the windows sessionStorage.
-.TP
.B plugins (bool)
Determines whether or not plugins on the page are enabled.
.TP
/* Use seperate rendering processed for the webview of the clients in the
* current instance. This must be called as soon as possible according to
* the documentation. */
- ctx = webkit_web_context_get_default();
+ if (vb.incognito) {
+ ctx = webkit_web_context_new_ephemeral();
+ } else {
+ ctx = webkit_web_context_get_default();
+ }
webkit_web_context_set_process_model(ctx, WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES);
webkit_web_context_set_cache_model(ctx, WEBKIT_CACHE_MODEL_WEB_BROWSER);
setting_add(c, "plugins", TYPE_BOOLEAN, &on, webkit, 0, "enable-plugins");
setting_add(c, "prevent-newwindow", TYPE_BOOLEAN, &off, internal, 0, &c->config.prevent_newwindow);
setting_add(c, "print-backgrounds", TYPE_BOOLEAN, &on, webkit, 0, "print-backgrounds");
- setting_add(c, "private-browsing", TYPE_BOOLEAN, &off, webkit, 0, "enable-private-browsing");
setting_add(c, "sans-serif-font", TYPE_CHAR, &"sans-serif", webkit, 0, "sans-serif-font-family");
setting_add(c, "scripts", TYPE_BOOLEAN, &on, webkit, 0, "enable-javascript");
setting_add(c, "serif-font", TYPE_CHAR, &"serif", webkit, 0, "serif-font-family");