Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

WebView.SetPrivateBrowsing

Enables private browsing.

Component Version macOS Windows Linux Server iOS SDK
WebView 9.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes

Deprecated

This function was deprecated. Use WebView.SetUsePrivateBrowsing instead.

MBS( "WebView.SetPrivateBrowsing"; WebViewerRef; Value )   More

Parameters

Parameter Description Example
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. "web"
Value The new mode.
Pass 1 to enable private browsing.
Pass 0 to disable.
1

Result

Returns OK or error.

Description

Enables private browsing.
If enabled, no data should be stored for cookies or cache on disk, so it's cleared when web viewer is destroyed.
Default is non-private mode for the web viewer.

For WebKit 2.x, it looks like you can't change mode after web viewer was created. Use WebView.SetUsePrivateBrowsing for this.

Examples

Enable private browsing:

Set Variable [ $r ; Value: MBS( "Webview.SetPrivateBrowsing"; "web"; 1 ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 27th October 2019, last changed 11st June 2021


WebView.SetPrintParameter - WebView.SetSilent

💬 Ask a question or report a problem