WebPreferences QML Type

Web settings More...

Import Statement: import com.canonical.Oxide 1.15
Instantiates: OxideQWebPreferences

Properties

Detailed Description

WebPreferences contains a collection of settings for a webview.

Property Documentation

allowFileAccessFromFileUrls : bool

Whether to disable same-origin restrictions between file: URLs. The default is false.

By default, unique file: URLs are treated as unique origins for the purposes of the Same-origin policy. Enabling this causes all file: URLs to be treated as a single origin.

Note: This is a dangerous option and should generally not be used in production code. Application developers should think carefully before enabling this option to ensure that they are fully aware of its consequences. This option should never be enabled in web browsers.


allowScriptsToCloseWindows : bool

Whether web content can request to close a window via window.close. The default is false.

Note: Web content can always request to close windows that were opened by it via window.open(), regardless of this preference.


allowUniversalAccessFromFileUrls : bool

Whether to disable same-origin restrictions for pages loaded via file: URLs. The default is false.

Note: This is a dangerous option and should generally not be used in production code. Application developers should think carefully before enabling this option to ensure that they are fully aware of its consequences. This option should never be enabled in web browsers.


appCacheEnabled : bool

Whether the offline application cache is enabled. The default is false.


canDisplayInsecureContent : bool

Whether to allow the display of passive mixed content. The default is true.

Passive mixed content includes images and videos loaded over an insecure connection in to a page that was loaded over a secure connection. Passive mixed content can't access other parts of a web page or change the behaviour of it, but an attacker could replace the content a user sees or otherwise infer the user's browsing habits because the connections aren't private.


canRunInsecureContent : bool

Whether to allow the execution of active mixed content. The default is false.

Active mixed content includes CSS and scripts loaded over an insecure connection in to a page that was loaded over a secure connection. Because active mixed content can change the behaviour of a page and steal sensitive information, it compromises the security of a page entirely.


caretBrowsingEnabled : bool

Whether to enable caret browsing. The default is false.

When caret browsing is enabled, the content of a web page can be navigated using the keyboard.


defaultEncoding : string

The default character set, used for pages that don't define a character set.


defaultFixedFontSize : int

The default fixed font size in points.


defaultFontSize : int

The default font size in points.


fixedFontFamily : string

The default fixed font family for characters from the Unicode Common script.

The default value is dependent on the system's font configuration.


hyperlinkAuditingEnabled : bool

Whether to notify the URLs specified by the ping attribute when a user clicks on an anchor element. The default is true.


javascriptCanAccessClipboard : bool

Whether javascript can use the various clipboard related editing commands via document.execCommand(). The default is false.


javascriptEnabled : bool

Whether JavaScript is enabled. The default is true.


loadsImagesAutomatically : bool

Whether to load images automatically when a page loads. The default is true.

If this is set to false, images aren't loaded when a page loads, and image elements are replaced by a placeholder.


localStorageEnabled : bool

Whether the DOM local storage API is enabled. The default is false.


minimumFontSize : int

The minimum font size in points.


passwordEchoEnabled : bool

Whether password echo is enabled. The default is false.

When password echo is enabled, actual characters are displayed when a user inputs text in to an <input type="password"> element.


remoteFontsEnabled : bool

Whether support for remote web fonts is enabled. The default is true.


sanSerifFontFamily : string

The default Sans Serif font family for characters from the Unicode Common script.

The default value is dependent on the system's font configuration.


serifFontFamily : string

The default Serif font family for characters from the Unicode Common script.

The default value is dependent on the system's font configuration.


standardFontFamily : string

The default standard font family for characters from the Unicode Common script.

The default value is dependent on the system's font configuration.


Whether HTML anchor elements are keyboard focusable by pressing the TAB key. The default is true.


textAreasAreResizable : bool

Whether <textarea> elements are resizable. The default is true.