1.32 <WebKitSettings>

Class: <WebKitSettings>

It derives from <GObject>.

Control the behaviour of a <WebKitWebView>.

<WebKitSettings> can be applied to a <WebKitWebView> to control text charset, color, font sizes, printing mode, script support, loading of images and various other things on a <WebKitWebView>. After creation, a <WebKitSettings> object contains default settings.

// Disable JavaScript
WebKitSettings *settings = webkit_web_view_group_get_settings (my_view_group);
webkit_settings_set_enable_javascript (settings, FALSE);

Properties

Property: settings:allow-file-access-from-file-urls self

Whether file access is allowed from file URLs. By default, when something is loaded in a <WebKitWebView> using a file URI, cross origin requests to other file resources are not allowed. This setting allows you to change that behaviour, so that it would be possible to do a XMLHttpRequest of a local file, for example.

Its value is a boolean.

Set it with (set! (settings:allow-file-access-from-file-urls self) value).

Property: settings:allow-modal-dialogs self

Determine whether it’s allowed to create and run modal dialogs from a <WebKitWebView> through JavaScript with window.showModalDialog(). If it’s set to #f, the associated <WebKitWebView> won’t be able to create new modal dialogs, so not even the web-view:create signal will be emitted.

Its value is a boolean.

Set it with (set! (settings:allow-modal-dialogs self) value).

Property: settings:allow-top-navigation-to-data-urls self

Whether or not the top frame is allowed to navigate to data URLs. It is disabled by default due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming and phishing attacks. In contrast, a scenario where it could be enabled could be an app that embeds a WebView and you have control of the pages being show instead of a generic browser.

Its value is a boolean.

Set it with (set! (settings:allow-top-navigation-to-data-urls self) value).

Property: settings:allow-universal-access-from-file-urls self

Whether or not JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. By default, when something is loaded in a <WebKitWebView> using a file scheme URL, access to the local file system and arbitrary local storage is not allowed. This setting allows you to change that behaviour, so that it would be possible to use local storage, for example.

Its value is a boolean.

Set it with (set! (settings:allow-universal-access-from-file-urls self) value).

Property: settings:auto-load-images self

Determines whether images should be automatically loaded or not. On devices where network bandwidth is of concern, it might be useful to turn this property off.

Its value is a boolean.

Set it with (set! (settings:auto-load-images self) value).

Property: settings:cursive-font-family self

The font family used as the default for content using a cursive font.

Its value is a string, or #f.

Set it with (set! (settings:cursive-font-family self) value).

Property: settings:default-charset self

The default text charset used when interpreting content with an unspecified charset.

Its value is a string, or #f.

Set it with (set! (settings:default-charset self) value).

Property: settings:default-font-family self

The font family to use as the default for content that does not specify a font.

Its value is a string, or #f.

Set it with (set! (settings:default-font-family self) value).

Property: settings:default-font-size self

The default font size in pixels to use for content displayed if no font size is specified.

Its value is an unsigned 32-bit integer.

Set it with (set! (settings:default-font-size self) value).

Property: settings:default-monospace-font-size self

The default font size in pixels to use for content displayed in monospace font if no font size is specified.

Its value is an unsigned 32-bit integer.

Set it with (set! (settings:default-monospace-font-size self) value).

Property: settings:disable-web-security self

Enable or disable support for Web Security on pages.

This setting disables the same-origin policy, allowing every website full control over all other websites. This is for use in special environments where you wish to disable all security and allow websites to hack each other. It is impossible to use this setting securely.

Its value is a boolean.

Set it with (set! (settings:disable-web-security self) value).

Property: settings:draw-compositing-indicators self

Whether to draw compositing borders and repaint counters on layers drawn with accelerated compositing. This is useful for debugging issues related to web content that is composited with the GPU.

Its value is a boolean.

Set it with (set! (settings:draw-compositing-indicators self) value).

Property: settings:enable-2d-canvas-acceleration self

Enable or disable 2D canvas acceleration. If this setting is enabled, the 2D canvas will be accelerated even if Skia CPU is used for rendering. However, the canvas can be unaccelerated even when this setting is enabled, for other reasons like its size or when willReadFrequently property is used.

Its value is a boolean.

Set it with (set! (settings:enable-2d-canvas-acceleration self) value).

Property: settings:enable-back-forward-navigation-gestures self

Enable or disable horizontal swipe gesture for back-forward navigation.

Its value is a boolean.

Set it with (set! (settings:enable-back-forward-navigation-gestures self) value).

Property: settings:enable-caret-browsing self

Whether to enable accessibility enhanced keyboard navigation.

Its value is a boolean.

Set it with (set! (settings:enable-caret-browsing self) value).

Property: settings:enable-developer-extras self

Determines whether or not developer tools, such as the Web Inspector, are enabled.

Its value is a boolean.

Set it with (set! (settings:enable-developer-extras self) value).

Property: settings:enable-dns-prefetching self

Determines whether or not to prefetch domain names. DNS prefetching attempts to resolve domain names before a user tries to follow a link.

Its value is a boolean.

Set it with (set! (settings:enable-dns-prefetching self) value).

Property: settings:enable-encrypted-media self

Enable or disable support for Encrypted Media API on pages. EncryptedMedia is an experimental JavaScript API for playing encrypted media in HTML. This property will only work as intended if the EncryptedMedia feature is enabled at build time with the ENABLE_ENCRYPTED_MEDIA flag.

See https://www.w3.org/TR/encrypted-media/

Its value is a boolean.

Set it with (set! (settings:enable-encrypted-media self) value).

Property: settings:enable-fullscreen self

Whether to enable the Javascript Fullscreen API. The API allows any HTML element to request fullscreen display. See also the current draft of the spec: http://www.w3.org/TR/fullscreen/

Its value is a boolean.

Set it with (set! (settings:enable-fullscreen self) value).

Property: settings:enable-html5-database self

Whether to enable HTML5 client-side SQL database support (IndexedDB).

Its value is a boolean.

Set it with (set! (settings:enable-html5-database self) value).

Property: settings:enable-html5-local-storage self

Whether to enable HTML5 local storage support. Local storage provides simple synchronous storage access.

HTML5 local storage specification is available at http://dev.w3.org/html5/webstorage/.

Its value is a boolean.

Set it with (set! (settings:enable-html5-local-storage self) value).

Determines whether or not hyperlink auditing is enabled.

The hyperlink auditing specification is available at http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing.

Its value is a boolean.

Set it with (set! (settings:enable-hyperlink-auditing self) value).

Property: settings:enable-javascript self

Determines whether or not JavaScript executes within a page.

Its value is a boolean.

Set it with (set! (settings:enable-javascript self) value).

Property: settings:enable-javascript-markup self

Determines whether or not JavaScript markup is allowed in document. When this setting is disabled, all JavaScript-related elements and attributes are removed from the document during parsing. Note that executing JavaScript is still allowed if settings:enable-javascript is #t.

Its value is a boolean.

Set it with (set! (settings:enable-javascript-markup self) value).

Property: settings:enable-media self

Enable or disable support for media playback on pages. This setting is enabled by default. Disabling it means <audio>, <track> and <video> elements will have playback support disabled.

Its value is a boolean.

Set it with (set! (settings:enable-media self) value).

Property: settings:enable-media-capabilities self

Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal decision when picking media content for the user. The APIs will expose information about the decoding and encoding capabilities for a given format but also output capabilities to find the best match based on the device’s display.

See also https://wicg.github.io/media-capabilities/

Its value is a boolean.

Set it with (set! (settings:enable-media-capabilities self) value).

Property: settings:enable-media-stream self

Enable or disable support for MediaStream on pages. MediaStream is an experimental proposal for allowing web pages to access audio and video devices for capture.

See also http://dev.w3.org/2011/webrtc/editor/getusermedia.html

Its value is a boolean.

Set it with (set! (settings:enable-media-stream self) value).

Property: settings:enable-mediasource self

Enable or disable support for MediaSource on pages. MediaSource extends HTMLMediaElement to allow JavaScript to generate media streams for playback.

See also http://www.w3.org/TR/media-source/

Its value is a boolean.

Set it with (set! (settings:enable-mediasource self) value).

Property: settings:enable-mock-capture-devices self

Enable or disable the Mock Capture Devices. Those are fake Microphone and Camera devices to be used as MediaStream sources.

Its value is a boolean.

Set it with (set! (settings:enable-mock-capture-devices self) value).

Property: settings:enable-offline-web-application-cache self

Unsupported setting. This property does nothing.

Its value is a boolean.

Set it with (set! (settings:enable-offline-web-application-cache self) value).

Property: settings:enable-page-cache self

Enable or disable the page cache. Disabling the page cache is generally only useful for special circumstances like low-memory scenarios or special purpose applications like static HTML viewers. This setting only controls the Page Cache, this cache is different than the disk-based or memory-based traditional resource caches, its point is to make going back and forth between pages much faster. For details about the different types of caches and their purposes see: http://webkit.org/blog/427/webkit-page-cache-i-the-basics/

Its value is a boolean.

Set it with (set! (settings:enable-page-cache self) value).

Property: settings:enable-resizable-text-areas self

Determines whether or not text areas can be resized.

Its value is a boolean.

Set it with (set! (settings:enable-resizable-text-areas self) value).

Property: settings:enable-site-specific-quirks self

Whether to turn on site-specific quirks. Turning this on will tell WebKit to use some site-specific workarounds for better web compatibility. For example, older versions of MediaWiki will incorrectly send to WebKit a CSS file with KHTML workarounds. By turning on site-specific quirks, WebKit will special-case this and other cases to make some specific sites work.

Its value is a boolean.

Set it with (set! (settings:enable-site-specific-quirks self) value).

Property: settings:enable-smooth-scrolling self

Enable or disable smooth scrolling.

Its value is a boolean.

Set it with (set! (settings:enable-smooth-scrolling self) value).

Property: settings:enable-spatial-navigation self

Whether to enable Spatial Navigation. This feature consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if an user presses the Right key, heuristics determine whether there is an element they might be trying to reach towards the right, and if there are multiple elements, which element they probably wants.

Its value is a boolean.

Set it with (set! (settings:enable-spatial-navigation self) value).

Determines whether the tab key cycles through the elements on the page. When this setting is enabled, users will be able to focus the next element in the page by pressing the tab key. If the selected element is editable, then pressing tab key will insert the tab character.

Its value is a boolean.

Set it with (set! (settings:enable-tabs-to-links self) value).

Property: settings:enable-webaudio self

Enable or disable support for WebAudio on pages. WebAudio is an API for processing and synthesizing audio in web applications

See also https://webaudio.github.io/web-audio-api

Its value is a boolean.

Set it with (set! (settings:enable-webaudio self) value).

Property: settings:enable-webgl self

Enable or disable support for WebGL on pages. WebGL enables web content to use an API based on OpenGL ES 2.0.

Its value is a boolean.

Set it with (set! (settings:enable-webgl self) value).

Property: settings:enable-webrtc self

Enable WebRTC support for loaded pages.

Enabling this setting implies that Settings:enable-media-stream will be enabled as well.

See also https://www.w3.org/TR/webrtc/

Its value is a boolean.

Set it with (set! (settings:enable-webrtc self) value).

Property: settings:enable-write-console-messages-to-stdout self

Enable or disable writing console messages to stdout. These are messages sent to the console with console.log and related methods.

Its value is a boolean.

Set it with (set! (settings:enable-write-console-messages-to-stdout self) value).

Property: settings:fantasy-font-family self

The font family used as the default for content using a fantasy font.

Its value is a string, or #f.

Set it with (set! (settings:fantasy-font-family self) value).

Property: settings:hardware-acceleration-policy self

The <WebKitHardwareAccelerationPolicy> to decide how to enable and disable hardware acceleration. Disabling hardware acceleration might cause some websites to not render correctly or consume more CPU.

Note that changing this setting might not be possible if hardware acceleration is not supported by the hardware or the system. In that case, you can get the value to know the actual policy being used, but changing the setting will not have any effect.

Its value is a <WebKitHardwareAccelerationPolicy> (or, to set it, one of its symbols).

Set it with (set! (settings:hardware-acceleration-policy self) value).

Property: settings:javascript-can-access-clipboard self

Whether JavaScript can access the clipboard. The default value is #f. If set to #t, document.execCommand() allows cut, copy and paste commands.

Its value is a boolean.

Set it with (set! (settings:javascript-can-access-clipboard self) value).

Property: settings:javascript-can-open-windows-automatically self

Whether JavaScript can open popup windows automatically without user intervention.

Its value is a boolean.

Set it with (set! (settings:javascript-can-open-windows-automatically self) value).

Property: settings:load-icons-ignoring-image-load-setting self

Unsupported setting. This property does nothing.

Its value is a boolean.

Set it with (set! (settings:load-icons-ignoring-image-load-setting self) value).

Property: settings:math-font-family self

The font family used as the default for content using a math font.

Its value is a string, or #f.

Set it with (set! (settings:math-font-family self) value).

Property: settings:media-content-types-requiring-hardware-support self

List of media content types requiring hardware support, split by semicolons (:). For example: ’video/webm; codecs="vp*":video/mp4; codecs="avc*":video/&ast; codecs="av1*"’.

Its value is a string, or #f.

Set it with (set! (settings:media-content-types-requiring-hardware-support self) value).

Property: settings:media-playback-allows-inline self

Whether media playback is full-screen only or inline playback is allowed. This is #t by default, so media playback can be inline. Setting it to #f allows specifying that media playback should be always fullscreen.

Its value is a boolean.

Set it with (set! (settings:media-playback-allows-inline self) value).

Property: settings:media-playback-requires-user-gesture self

Whether a user gesture (such as clicking the play button) would be required to start media playback or load media. This is off by default, so media playback could start automatically. Setting it on requires a gesture by the user to start playback, or to load the media.

Its value is a boolean.

Set it with (set! (settings:media-playback-requires-user-gesture self) value).

Property: settings:minimum-font-size self

The minimum font size in pixels used to display text. This setting controls the absolute smallest size. Values other than 0 can potentially break page layouts.

Its value is an unsigned 32-bit integer.

Set it with (set! (settings:minimum-font-size self) value).

Property: settings:monospace-font-family self

The font family used as the default for content using a monospace font.

Its value is a string, or #f.

Set it with (set! (settings:monospace-font-family self) value).

Property: settings:pictograph-font-family self

The font family used as the default for content using a pictograph font.

Its value is a string, or #f.

Set it with (set! (settings:pictograph-font-family self) value).

Property: settings:print-backgrounds self

Whether background images should be drawn during printing.

Its value is a boolean.

Set it with (set! (settings:print-backgrounds self) value).

Property: settings:sans-serif-font-family self

The font family used as the default for content using a sans-serif font.

Its value is a string, or #f.

Set it with (set! (settings:sans-serif-font-family self) value).

Property: settings:serif-font-family self

The font family used as the default for content using a serif font.

Its value is a string, or #f.

Set it with (set! (settings:serif-font-family self) value).

Property: settings:user-agent self

The user-agent string used by WebKit. Unusual user-agent strings may cause web content to render incorrectly or fail to run, as many web pages are written to parse the user-agent strings of only the most popular browsers. Therefore, it’s typically better to not completely override the standard user-agent, but to use settings:set-user-agent-with-application-details instead.

If this property is set to the empty string or #f, it will revert to the standard user-agent.

Its value is a string, or #f.

Set it with (set! (settings:user-agent self) value).

Property: settings:webrtc-udp-ports-range self

Allow customization of the WebRTC UDP ports range.

In some constrained environments where a firewall blocks UDP network traffic excepted on a specific port range, this settings can be used to give hints to the WebRTC backend regarding which ports to allocate. The format is min-port:max-port, so for instance 20000:30000. The default empty string value means the OS will use no hints from the WebRTC backend. Using 0 for one of the values is allowed and means the value is unspecified.

Its value is a string, or #f.

Set it with (set! (settings:webrtc-udp-ports-range self) value).

Property: settings:zoom-text-only self

Whether web-view:zoom-level affects only the text of the page or all the contents. Other contents containing text like form controls will be also affected by zoom factor when this property is enabled.

Its value is a boolean.

Set it with (set! (settings:zoom-text-only self) value).

Procedures

Method: settings:apply-from-key-file? self key-file group-name ⇒ %return
Method: apply-from-key-file? self key-file group-name ⇒ %return

Reads the contents of the given group-name from the given key-file and apply the value of each key/value to the corresponding property on the self.

Value types have to match with the corresponding setting property type and the group keys have to match existing setting property names. If those conditions are not met, the function will return #f.

Supported value types are strings (unquoted), booleans (0, 1, true, false) and unsigned integers.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

key-file

Passed: a <GKeyFile>.

a <GKeyFile>

group-name

Passed: a string.

Name of the group to read from key-file

%return

Returned: a boolean.

#t if the settings were correctly applied or #f on error.

Procedure: settings:font-size-to-pixels points ⇒ %return

Convert points to the equivalent value in pixels.

Applications can use this function to convert font size values in points to font size values in pixels when setting the font size properties of <WebKitSettings>.

points

Passed: an unsigned 32-bit integer.

the font size in points to convert to pixels

%return

Returned: an unsigned 32-bit integer.

the equivalent font size in pixels.

Procedure: settings:font-size-to-points pixels ⇒ %return

Convert pixels to the equivalent value in points.

Applications can use this function to convert font size values in pixels to font size values in points when getting the font size properties of <WebKitSettings>.

pixels

Passed: an unsigned 32-bit integer.

the font size in pixels to convert to points

%return

Returned: an unsigned 32-bit integer.

the equivalent font size in points.

Procedure: settings:get-all-features ⇒ %return

Gets the list of all available WebKit features.

Features can be toggled with Settings.set_feature_enabled, and their current state determined with Settings.get_feature_enabled.

Note that most applications should use Settings.get_development_features and Settings.get_experimental_features instead.

%return

Returned: a <WebKitFeatureList>.

List of all features.

Method: settings:get-allow-file-access-from-file-urls? self ⇒ %return
Method: get-allow-file-access-from-file-urls? self ⇒ %return

Get the settings:allow-file-access-from-file-urls property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If file access from file URLs is allowed or #f otherwise.

Method: settings:get-allow-modal-dialogs? self ⇒ %return
Method: get-allow-modal-dialogs? self ⇒ %return

Get the settings:allow-modal-dialogs property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if it’s allowed to create and run modal dialogs or #f otherwise.

Method: settings:get-allow-top-navigation-to-data-urls? self ⇒ %return
Method: get-allow-top-navigation-to-data-urls? self ⇒ %return

Get the settings:allow-top-navigation-to-data-urls property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If navigation to data URLs from the top frame is allowed or #f\ otherwise.

Method: settings:get-allow-universal-access-from-file-urls? self ⇒ %return
Method: get-allow-universal-access-from-file-urls? self ⇒ %return

Get the settings:allow-universal-access-from-file-urls property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If universal access from file URLs is allowed or #f otherwise.

Method: settings:get-auto-load-images? self ⇒ %return
Method: get-auto-load-images? self ⇒ %return

Get the settings:auto-load-images property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If auto loading of images is enabled or #f otherwise.

Method: settings:get-cursive-font-family self ⇒ %return
Method: get-cursive-font-family self ⇒ %return

Gets the settings:cursive-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The default font family used to display content marked with cursive font.

Method: settings:get-default-charset self ⇒ %return
Method: get-default-charset self ⇒ %return

Gets the settings:default-charset property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

Default charset.

Method: settings:get-default-font-family self ⇒ %return
Method: get-default-font-family self ⇒ %return

Gets the settings:default-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The default font family used to display content that does not specify a font.

Method: settings:get-default-font-size self ⇒ %return
Method: get-default-font-size self ⇒ %return

Gets the settings:default-font-size property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: an unsigned 32-bit integer.

The default font size, in pixels.

Method: settings:get-default-monospace-font-size self ⇒ %return
Method: get-default-monospace-font-size self ⇒ %return

Gets the settings:default-monospace-font-size property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: an unsigned 32-bit integer.

Default monospace font size, in pixels.

Procedure: settings:get-development-features ⇒ %return

Gets the list of available development WebKit features.

The returned features are a subset of those returned by Settings.get_all_features, and includes those which web and WebKit developers might find useful, but in general should not be exposed to end users; see FeatureStatus for more details.

%return

Returned: a <WebKitFeatureList>.

List of development features.

Method: settings:get-disable-web-security? self ⇒ %return
Method: get-disable-web-security? self ⇒ %return

Get the settings:disable-web-security property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If web security support is disabled or #f otherwise.

Method: settings:get-draw-compositing-indicators? self ⇒ %return
Method: get-draw-compositing-indicators? self ⇒ %return

Get the settings:draw-compositing-indicators property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If compositing borders are drawn or #f otherwise.

Method: settings:get-enable-2d-canvas-acceleration? self ⇒ %return
Method: get-enable-2d-canvas-acceleration? self ⇒ %return

Get the settings:enable-2d-canvas-acceleration property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if 2D canvas acceleration is enabled or #f otherwise.

Method: settings:get-enable-back-forward-navigation-gestures? self ⇒ %return
Method: get-enable-back-forward-navigation-gestures? self ⇒ %return

Get the settings:enable-back-forward-navigation-gestures property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if horizontal swipe gesture will trigger back-forward navigaiton or #f otherwise.

Method: settings:get-enable-caret-browsing? self ⇒ %return
Method: get-enable-caret-browsing? self ⇒ %return

Get the settings:enable-caret-browsing property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If caret browsing is enabled or #f otherwise.

Method: settings:get-enable-developer-extras? self ⇒ %return
Method: get-enable-developer-extras? self ⇒ %return

Get the settings:enable-developer-extras property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If developer extras is enabled or #f otherwise.

Method: settings:get-enable-dns-prefetching? self ⇒ %return
Method: get-enable-dns-prefetching? self ⇒ %return

Get the settings:enable-dns-prefetching property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If DNS prefetching is enabled or #f otherwise.

Method: settings:get-enable-encrypted-media? self ⇒ %return
Method: get-enable-encrypted-media? self ⇒ %return

Get the settings:enable-encrypted-media property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if EncryptedMedia support is enabled or #f otherwise.

Method: settings:get-enable-fullscreen? self ⇒ %return
Method: get-enable-fullscreen? self ⇒ %return

Get the settings:enable-fullscreen property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If fullscreen support is enabled or #f otherwise.

Method: settings:get-enable-html5-database? self ⇒ %return
Method: get-enable-html5-database? self ⇒ %return

Get the settings:enable-html5-database property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if IndexedDB support is enabled or #f otherwise.

Method: settings:get-enable-html5-local-storage? self ⇒ %return
Method: get-enable-html5-local-storage? self ⇒ %return

Get the settings:enable-html5-local-storage property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If HTML5 local storage support is enabled or #f otherwise.

Get the settings:enable-hyperlink-auditing property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If hyper link auditing is enabled or #f otherwise.

Method: settings:get-enable-javascript-markup? self ⇒ %return
Method: get-enable-javascript-markup? self ⇒ %return

Get the settings:enable-javascript-markup property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if JavaScript markup is enabled or #f otherwise.

Method: settings:get-enable-javascript? self ⇒ %return
Method: get-enable-javascript? self ⇒ %return

Get the settings:enable-javascript property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If JavaScript is enabled or #f otherwise.

Method: settings:get-enable-media-capabilities? self ⇒ %return
Method: get-enable-media-capabilities? self ⇒ %return

Get the settings:enable-media-capabilities property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if MediaCapabilities support is enabled or #f otherwise.

Method: settings:get-enable-media-stream? self ⇒ %return
Method: get-enable-media-stream? self ⇒ %return

Get the settings:enable-media-stream property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If mediastream support is enabled or #f otherwise.

Method: settings:get-enable-media? self ⇒ %return
Method: get-enable-media? self ⇒ %return

Get the settings:enable-media property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if media support is enabled or #f otherwise.

Method: settings:get-enable-mediasource? self ⇒ %return
Method: get-enable-mediasource? self ⇒ %return

Get the settings:enable-mediasource property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If MediaSource support is enabled or #f otherwise.

Method: settings:get-enable-mock-capture-devices? self ⇒ %return
Method: get-enable-mock-capture-devices? self ⇒ %return

Get the settings:enable-mock-capture-devices property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If mock capture devices is enabled or #f otherwise.

Method: settings:get-enable-offline-web-application-cache? self ⇒ %return
Method: get-enable-offline-web-application-cache? self ⇒ %return

Get the settings:enable-offline-web-application-cache property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#f.

Method: settings:get-enable-page-cache? self ⇒ %return
Method: get-enable-page-cache? self ⇒ %return

Get the settings:enable-page-cache property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if page cache enabled or #f otherwise.

Method: settings:get-enable-resizable-text-areas? self ⇒ %return
Method: get-enable-resizable-text-areas? self ⇒ %return

Get the settings:enable-resizable-text-areas property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If text areas can be resized or #f otherwise.

Method: settings:get-enable-site-specific-quirks? self ⇒ %return
Method: get-enable-site-specific-quirks? self ⇒ %return

Get the settings:enable-site-specific-quirks property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if site specific quirks are enabled or #f otherwise.

Method: settings:get-enable-smooth-scrolling? self ⇒ %return
Method: get-enable-smooth-scrolling? self ⇒ %return

Get the settings:enable-smooth-scrolling property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if smooth scrolling is enabled or #f otherwise.

Method: settings:get-enable-spatial-navigation? self ⇒ %return
Method: get-enable-spatial-navigation? self ⇒ %return

Get the settings:enable-spatial-navigation property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If HTML5 spatial navigation support is enabled or #f otherwise.

Get the settings:enable-tabs-to-links property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If tabs to link is enabled or #f otherwise.

Method: settings:get-enable-webaudio? self ⇒ %return
Method: get-enable-webaudio? self ⇒ %return

Get the settings:enable-webaudio property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If webaudio support is enabled or #f otherwise.

Method: settings:get-enable-webgl? self ⇒ %return
Method: get-enable-webgl? self ⇒ %return

Get the settings:enable-webgl property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If WebGL support is enabled or #f otherwise.

Method: settings:get-enable-webrtc? self ⇒ %return
Method: get-enable-webrtc? self ⇒ %return

Get the Settings:enable-webrtc property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If WebRTC support is enabled or #f otherwise.

Method: settings:get-enable-write-console-messages-to-stdout? self ⇒ %return
Method: get-enable-write-console-messages-to-stdout? self ⇒ %return

Get the settings:enable-write-console-messages-to-stdout property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t if writing console messages to stdout is enabled or #f otherwise.

Procedure: settings:get-experimental-features ⇒ %return

Gets the list of available experimental WebKit features.

The returned features are a subset of those returned by Settings.get_all_features, and includes those which certain applications may want to expose to end users; see FeatureStatus for more details.

%return

Returned: a <WebKitFeatureList>.

List of experimental features.

Method: settings:get-fantasy-font-family self ⇒ %return
Method: get-fantasy-font-family self ⇒ %return

Gets the settings:fantasy-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The default font family used to display content marked with fantasy font.

Method: settings:get-feature-enabled? self feature ⇒ %return
Method: get-feature-enabled? self feature ⇒ %return

Gets whether a feature is enabled.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

feature

Passed: a <WebKitFeature>.

the feature to toggle.

%return

Returned: a boolean.

Whether the feature is enabled.

Method: settings:get-hardware-acceleration-policy self ⇒ %return
Method: get-hardware-acceleration-policy self ⇒ %return

Get the settings:hardware-acceleration-policy property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a <WebKitHardwareAccelerationPolicy>.

a <WebKitHardwareAccelerationPolicy>

Method: settings:get-javascript-can-access-clipboard? self ⇒ %return
Method: get-javascript-can-access-clipboard? self ⇒ %return

Get the settings:javascript-can-access-clipboard property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If javascript-can-access-clipboard is enabled or #f otherwise.

Method: settings:get-javascript-can-open-windows-automatically? self ⇒ %return
Method: get-javascript-can-open-windows-automatically? self ⇒ %return

Get the settings:javascript-can-open-windows-automatically property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If JavaScript can open window automatically or #f otherwise.

Method: settings:get-load-icons-ignoring-image-load-setting? self ⇒ %return
Method: get-load-icons-ignoring-image-load-setting? self ⇒ %return

Setting no longer supported. This function returns #f.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#f

Method: settings:get-math-font-family self ⇒ %return
Method: get-math-font-family self ⇒ %return

Gets the settings:math-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string, or #f.

The default font family used to display content marked with math font.

Since 2.52

Method: settings:get-media-content-types-requiring-hardware-support self ⇒ %return
Method: get-media-content-types-requiring-hardware-support self ⇒ %return

Gets the settings:media-content-types-requiring-hardware-support property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

Media content types requiring hardware support, or #f.

Method: settings:get-media-playback-allows-inline? self ⇒ %return
Method: get-media-playback-allows-inline? self ⇒ %return

Get the settings:media-playback-allows-inline property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If inline playback is allowed for media or #f if only fullscreen playback is allowed.

Method: settings:get-media-playback-requires-user-gesture? self ⇒ %return
Method: get-media-playback-requires-user-gesture? self ⇒ %return

Get the settings:media-playback-requires-user-gesture property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If an user gesture is needed to play or load media or #f if no user gesture is needed.

Method: settings:get-minimum-font-size self ⇒ %return
Method: get-minimum-font-size self ⇒ %return

Gets the settings:minimum-font-size property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: an unsigned 32-bit integer.

Minimum font size, in pixels.

Method: settings:get-monospace-font-family self ⇒ %return
Method: get-monospace-font-family self ⇒ %return

Gets the settings:monospace-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

Default font family used to display content marked with monospace font.

Method: settings:get-pictograph-font-family self ⇒ %return
Method: get-pictograph-font-family self ⇒ %return

Gets the settings:pictograph-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The default font family used to display content marked with pictograph font.

Method: settings:get-print-backgrounds? self ⇒ %return
Method: get-print-backgrounds? self ⇒ %return

Get the settings:print-backgrounds property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If background images should be printed or #f otherwise.

Method: settings:get-sans-serif-font-family self ⇒ %return
Method: get-sans-serif-font-family self ⇒ %return

Gets the settings:sans-serif-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The default font family used to display content marked with sans-serif font.

Method: settings:get-serif-font-family self ⇒ %return
Method: get-serif-font-family self ⇒ %return

Gets the settings:serif-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The default font family used to display content marked with serif font.

Method: settings:get-user-agent self ⇒ %return
Method: get-user-agent self ⇒ %return

Get the settings:user-agent property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The current value of the user-agent property.

Method: settings:get-webrtc-udp-ports-range self ⇒ %return
Method: get-webrtc-udp-ports-range self ⇒ %return

Get the Settings:webrtc-udp-ports-range property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a string.

The WebRTC UDP ports range, or #f if un-set.

Method: settings:get-zoom-text-only? self ⇒ %return
Method: get-zoom-text-only? self ⇒ %return

Get the settings:zoom-text-only property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

%return

Returned: a boolean.

#t If zoom level of the view should only affect the text or #f if all view contents should be scaled.

Procedure: settings:new ⇒ %return

Creates a new <WebKitSettings> instance with default values.

It must be manually attached to a <WebKitWebView>. See also webkit_settings_new_with_settings().

%return

Returned: a <WebKitSettings>.

a new <WebKitSettings> instance.

Method: settings:set-allow-file-access-from-file-urls self allowed
Method: set-allow-file-access-from-file-urls self allowed

Set the settings:allow-file-access-from-file-urls property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

allowed

Passed: a boolean.

Value to be set

Method: settings:set-allow-modal-dialogs self allowed
Method: set-allow-modal-dialogs self allowed

Set the settings:allow-modal-dialogs property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

allowed

Passed: a boolean.

Value to be set

Method: settings:set-allow-top-navigation-to-data-urls self allowed
Method: set-allow-top-navigation-to-data-urls self allowed

Set the settings:allow-top-navigation-to-data-urls property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

allowed

Passed: a boolean.

Value to be set

Method: settings:set-allow-universal-access-from-file-urls self allowed
Method: set-allow-universal-access-from-file-urls self allowed

Set the settings:allow-universal-access-from-file-urls property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

allowed

Passed: a boolean.

Value to be set

Method: settings:set-auto-load-images self enabled
Method: set-auto-load-images self enabled

Set the settings:auto-load-images property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-cursive-font-family self cursive-font-family
Method: set-cursive-font-family self cursive-font-family

Set the settings:cursive-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

cursive-font-family

Passed: a string.

the new default cursive font family

Method: settings:set-default-charset self default-charset
Method: set-default-charset self default-charset

Set the settings:default-charset property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

default-charset

Passed: a string.

default charset to be set

Method: settings:set-default-font-family self default-font-family
Method: set-default-font-family self default-font-family

Set the settings:default-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

default-font-family

Passed: a string.

the new default font family

Method: settings:set-default-font-size self font-size
Method: set-default-font-size self font-size

Set the settings:default-font-size property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

font-size

Passed: an unsigned 32-bit integer.

default font size to be set in pixels

Method: settings:set-default-monospace-font-size self font-size
Method: set-default-monospace-font-size self font-size

Set the settings:default-monospace-font-size property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

font-size

Passed: an unsigned 32-bit integer.

default monospace font size to be set in pixels

Method: settings:set-disable-web-security self disabled
Method: set-disable-web-security self disabled

Set the settings:disable-web-security property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

disabled

Passed: a boolean.

Value to be set

Method: settings:set-draw-compositing-indicators self enabled
Method: set-draw-compositing-indicators self enabled

Set the settings:draw-compositing-indicators property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-2d-canvas-acceleration self enabled
Method: set-enable-2d-canvas-acceleration self enabled

Set the settings:enable-2d-canvas-acceleration property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-back-forward-navigation-gestures self enabled
Method: set-enable-back-forward-navigation-gestures self enabled

Set the settings:enable-back-forward-navigation-gestures property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

value to be set

Method: settings:set-enable-caret-browsing self enabled
Method: set-enable-caret-browsing self enabled

Set the settings:enable-caret-browsing property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-developer-extras self enabled
Method: set-enable-developer-extras self enabled

Set the settings:enable-developer-extras property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-dns-prefetching self enabled
Method: set-enable-dns-prefetching self enabled

Set the settings:enable-dns-prefetching property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-encrypted-media self enabled
Method: set-enable-encrypted-media self enabled

Set the settings:enable-encrypted-media property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-fullscreen self enabled
Method: set-enable-fullscreen self enabled

Set the settings:enable-fullscreen property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-html5-database self enabled
Method: set-enable-html5-database self enabled

Set the settings:enable-html5-database property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-html5-local-storage self enabled
Method: set-enable-html5-local-storage self enabled

Set the settings:enable-html5-local-storage property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Set the settings:enable-hyperlink-auditing property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-javascript self enabled
Method: set-enable-javascript self enabled

Set the settings:enable-javascript property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-javascript-markup self enabled
Method: set-enable-javascript-markup self enabled

Set the settings:enable-javascript-markup property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-media self enabled
Method: set-enable-media self enabled

Set the settings:enable-media property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-media-capabilities self enabled
Method: set-enable-media-capabilities self enabled

Set the settings:enable-media-capabilities property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-media-stream self enabled
Method: set-enable-media-stream self enabled

Set the settings:enable-media-stream property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-mediasource self enabled
Method: set-enable-mediasource self enabled

Set the settings:enable-mediasource property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-mock-capture-devices self enabled
Method: set-enable-mock-capture-devices self enabled

Set the settings:enable-mock-capture-devices property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-offline-web-application-cache self enabled
Method: set-enable-offline-web-application-cache self enabled

Setting no longer supported. This function does nothing.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-page-cache self enabled
Method: set-enable-page-cache self enabled

Set the settings:enable-page-cache property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-resizable-text-areas self enabled
Method: set-enable-resizable-text-areas self enabled

Set the settings:enable-resizable-text-areas property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-site-specific-quirks self enabled
Method: set-enable-site-specific-quirks self enabled

Set the settings:enable-site-specific-quirks property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-smooth-scrolling self enabled
Method: set-enable-smooth-scrolling self enabled

Set the settings:enable-smooth-scrolling property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-spatial-navigation self enabled
Method: set-enable-spatial-navigation self enabled

Set the settings:enable-spatial-navigation property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Set the settings:enable-tabs-to-links property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-webaudio self enabled
Method: set-enable-webaudio self enabled

Set the settings:enable-webaudio property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-webgl self enabled
Method: set-enable-webgl self enabled

Set the settings:enable-webgl property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-webrtc self enabled
Method: set-enable-webrtc self enabled

Set the Settings:enable-webrtc property.

Setting this property to #t implies the media-stream web-setting will also be enabled.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-enable-write-console-messages-to-stdout self enabled
Method: set-enable-write-console-messages-to-stdout self enabled

Set the settings:enable-write-console-messages-to-stdout property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-fantasy-font-family self fantasy-font-family
Method: set-fantasy-font-family self fantasy-font-family

Set the settings:fantasy-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

fantasy-font-family

Passed: a string.

the new default fantasy font family

Method: settings:set-feature-enabled self feature enabled
Method: set-feature-enabled self feature enabled

Enables or disables a feature.

The current status of the feature can be determined with webkit_settings_get_feature_enabled. To reset a feature to its initial status, pass the value returned by webkit_feature_get_default_value as the enabled parameter.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

feature

Passed: a <WebKitFeature>.

the feature to toggle.

enabled

Passed: a boolean.

whether the feature will be enabled.

Method: settings:set-hardware-acceleration-policy self policy
Method: set-hardware-acceleration-policy self policy

Set the settings:hardware-acceleration-policy property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

policy

Passed: a <WebKitHardwareAccelerationPolicy>, or one of its symbols.

a <WebKitHardwareAccelerationPolicy>

Method: settings:set-javascript-can-access-clipboard self enabled
Method: set-javascript-can-access-clipboard self enabled

Set the settings:javascript-can-access-clipboard property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-javascript-can-open-windows-automatically self enabled
Method: set-javascript-can-open-windows-automatically self enabled

Set the settings:javascript-can-open-windows-automatically property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-load-icons-ignoring-image-load-setting self enabled
Method: set-load-icons-ignoring-image-load-setting self enabled

Setting no longer supported. This function does nothing.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-math-font-family self [math-font-family]
Method: set-math-font-family self [math-font-family]

Set the settings:math-font-family property.

Since 2.52

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

math-font-family

Passed, or left out: a string, or #f.

the new default math font family

Method: settings:set-media-content-types-requiring-hardware-support self [content-types]
Method: set-media-content-types-requiring-hardware-support self [content-types]

Set the settings:media-content-types-requiring-hardware-support property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

content-types

Passed, or left out: a string, or #f.

list of media content types requiring hardware support split by semicolons (:) or #f to use the default value.

Method: settings:set-media-playback-allows-inline self enabled
Method: set-media-playback-allows-inline self enabled

Set the settings:media-playback-allows-inline property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-media-playback-requires-user-gesture self enabled
Method: set-media-playback-requires-user-gesture self enabled

Set the settings:media-playback-requires-user-gesture property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

enabled

Passed: a boolean.

Value to be set

Method: settings:set-minimum-font-size self font-size
Method: set-minimum-font-size self font-size

Set the settings:minimum-font-size property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

font-size

Passed: an unsigned 32-bit integer.

minimum font size to be set in pixels

Method: settings:set-monospace-font-family self monospace-font-family
Method: set-monospace-font-family self monospace-font-family

Set the settings:monospace-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

monospace-font-family

Passed: a string.

the new default monospace font family

Method: settings:set-pictograph-font-family self pictograph-font-family
Method: set-pictograph-font-family self pictograph-font-family

Set the settings:pictograph-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

pictograph-font-family

Passed: a string.

the new default pictograph font family

Method: settings:set-print-backgrounds self print-backgrounds
Method: set-print-backgrounds self print-backgrounds

Set the settings:print-backgrounds property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

print-backgrounds

Passed: a boolean.

Value to be set

Method: settings:set-sans-serif-font-family self sans-serif-font-family
Method: set-sans-serif-font-family self sans-serif-font-family

Set the settings:sans-serif-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

sans-serif-font-family

Passed: a string.

the new default sans-serif font family

Method: settings:set-serif-font-family self serif-font-family
Method: set-serif-font-family self serif-font-family

Set the settings:serif-font-family property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

serif-font-family

Passed: a string.

the new default serif font family

Method: settings:set-user-agent self [user-agent]
Method: set-user-agent self [user-agent]

Set the settings:user-agent property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

user-agent

Passed, or left out: a string, or #f.

The new custom user agent string or #f to use the default user agent

Method: settings:set-user-agent-with-application-details self [application-name] [application-version]
Method: set-user-agent-with-application-details self [application-name] [application-version]

Set the settings:user-agent property by appending the application details.

Set the settings:user-agent property by appending the application details to the default user agent. If no application name or version is given, the default user agent used will be used. If only the version is given, the default engine version is used with the given application name.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

application-name

Passed, or left out: a string, or #f.

The application name used for the user agent or #f to use the default user agent.

application-version

Passed, or left out: a string, or #f.

The application version for the user agent or #f to user the default version.

Method: settings:set-webrtc-udp-ports-range self udp-port-range
Method: set-webrtc-udp-ports-range self udp-port-range

Set the Settings:webrtc-udp-ports-range property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

udp-port-range

Passed: a string.

Value to be set

Method: settings:set-zoom-text-only self zoom-text-only
Method: set-zoom-text-only self zoom-text-only

Set the settings:zoom-text-only property.

self

Passed: a <WebKitSettings>.

a <WebKitSettings>

zoom-text-only

Passed: a boolean.

Value to be set