Property

WebKit2WebView:is-ephemeral

since: 2.16

Declaration

property is-ephemeral: gboolean [ read, write, construct-only ]

Description [src]

Whether the WebKitWebView is ephemeral. An ephemeral web view never writes website data to the client storage, no matter what WebKitWebsiteDataManager its context is using. This is normally used to implement private browsing mode. This is a G_PARAM_CONSTRUCT_ONLY property, so you have to create an ephemeral WebKitWebView and it can’t be changed. The ephemeral WebKitWebsiteDataManager created for the WebKitWebView will inherit the network settings from the WebKitWebContext‘s WebKitWebsiteDataManager. To use different settings you can get the WebKitWebsiteDataManager with webkit_web_view_get_website_data_manager() and set the new ones. Note that all WebKitWebViews created with an ephemeral WebKitWebContext will be ephemeral automatically. See also webkit_web_context_new_ephemeral().

Type: gboolean
Available since:2.16
Default valueFALSE

Flags

Readableyes
Writableyes
Constructno
Construct onlyyes