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);
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
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).
Whether to enable accessibility enhanced keyboard navigation.
Its value is a boolean.
Set it with (set! (settings:enable-caret-browsing self) value).
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).
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).
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).
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).
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).
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).
Determines whether or not JavaScript executes within a page.
Its value is a boolean.
Set it with (set! (settings:enable-javascript self) value).
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).
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).
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).
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).
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).
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).
Unsupported setting. This property does nothing.
Its value is a boolean.
Set it with (set! (settings:enable-offline-web-application-cache
self) value).
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).
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).
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).
Enable or disable smooth scrolling.
Its value is a boolean.
Set it with (set! (settings:enable-smooth-scrolling self) value).
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).
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).
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).
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).
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).
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).
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).
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).
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).
Unsupported setting. This property does nothing.
Its value is a boolean.
Set it with (set! (settings:load-icons-ignoring-image-load-setting
self) value).
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).
List of media content types requiring hardware support, split by semicolons (:). For example: ’video/webm; codecs="vp*":video/mp4; codecs="avc*":video/* codecs="av1*"’.
Its value is a string, or #f.
Set it with (set!
(settings:media-content-types-requiring-hardware-support self) value).
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).
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).
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).
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).
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).
Whether background images should be drawn during printing.
Its value is a boolean.
Set it with (set! (settings:print-backgrounds self) value).
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).
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).
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).
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).
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).
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.
Passed: a <WebKitSettings>.
Passed: a <GKeyFile>.
Passed: a string.
Name of the group to read from key-file
Returned: a boolean.
#t if the settings were correctly applied or #f on error.
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>.
Passed: an unsigned 32-bit integer.
the font size in points to convert to pixels
Returned: an unsigned 32-bit integer.
the equivalent font size in pixels.
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>.
Passed: an unsigned 32-bit integer.
the font size in pixels to convert to points
Returned: an unsigned 32-bit integer.
the equivalent font size in points.
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.
Returned: a <WebKitFeatureList>.
List of all features.
Get the settings:allow-file-access-from-file-urls
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If file access from file URLs is allowed or #f
otherwise.
Get the settings:allow-modal-dialogs property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if it’s allowed to create and run modal dialogs or #f
otherwise.
Get the settings:allow-top-navigation-to-data-urls
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If navigation to data URLs from the top frame is allowed or
#f\ otherwise.
Get the settings:allow-universal-access-from-file-urls
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If universal access from file URLs is allowed or #f
otherwise.
Get the settings:auto-load-images property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If auto loading of images is enabled or #f otherwise.
Gets the settings:cursive-font-family property.
Passed: a <WebKitSettings>.
Returned: a string.
The default font family used to display content marked with cursive font.
Gets the settings:default-charset property.
Passed: a <WebKitSettings>.
Returned: a string.
Default charset.
Gets the settings:default-font-family property.
Passed: a <WebKitSettings>.
Returned: a string.
The default font family used to display content that does not specify a font.
Gets the settings:default-font-size property.
Passed: a <WebKitSettings>.
Returned: an unsigned 32-bit integer.
The default font size, in pixels.
Gets the settings:default-monospace-font-size
property.
Passed: a <WebKitSettings>.
Returned: an unsigned 32-bit integer.
Default monospace font size, in pixels.
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.
Returned: a <WebKitFeatureList>.
List of development features.
Get the settings:disable-web-security property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If web security support is disabled or #f otherwise.
Get the settings:draw-compositing-indicators
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If compositing borders are drawn or #f otherwise.
Get the settings:enable-2d-canvas-acceleration
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if 2D canvas acceleration is enabled or #f otherwise.
Get the settings:enable-back-forward-navigation-gestures
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if horizontal swipe gesture will trigger back-forward
navigaiton or #f otherwise.
Get the settings:enable-caret-browsing property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If caret browsing is enabled or #f otherwise.
Get the settings:enable-developer-extras property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If developer extras is enabled or #f otherwise.
Get the settings:enable-dns-prefetching property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If DNS prefetching is enabled or #f otherwise.
Get the settings:enable-encrypted-media property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if EncryptedMedia support is enabled or #f otherwise.
Get the settings:enable-fullscreen property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If fullscreen support is enabled or #f otherwise.
Get the settings:enable-html5-database property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if IndexedDB support is enabled or #f otherwise.
Get the settings:enable-html5-local-storage
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If HTML5 local storage support is enabled or #f
otherwise.
Get the settings:enable-hyperlink-auditing
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If hyper link auditing is enabled or #f otherwise.
Get the settings:enable-javascript-markup property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if JavaScript markup is enabled or #f otherwise.
Get the settings:enable-javascript property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If JavaScript is enabled or #f otherwise.
Get the settings:enable-media-capabilities
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if MediaCapabilities support is enabled or #f
otherwise.
Get the settings:enable-media-stream property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If mediastream support is enabled or #f otherwise.
Get the settings:enable-media property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if media support is enabled or #f otherwise.
Get the settings:enable-mediasource property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If MediaSource support is enabled or #f otherwise.
Get the settings:enable-mock-capture-devices
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If mock capture devices is enabled or #f otherwise.
Get the settings:enable-offline-web-application-cache
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#f.
Get the settings:enable-page-cache property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if page cache enabled or #f otherwise.
Get the settings:enable-resizable-text-areas
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If text areas can be resized or #f otherwise.
Get the settings:enable-site-specific-quirks
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if site specific quirks are enabled or #f otherwise.
Get the settings:enable-smooth-scrolling property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if smooth scrolling is enabled or #f otherwise.
Get the settings:enable-spatial-navigation
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If HTML5 spatial navigation support is enabled or #f
otherwise.
Get the settings:enable-tabs-to-links property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If tabs to link is enabled or #f otherwise.
Get the settings:enable-webaudio property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If webaudio support is enabled or #f otherwise.
Get the settings:enable-webgl property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If WebGL support is enabled or #f otherwise.
Get the Settings:enable-webrtc property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If WebRTC support is enabled or #f otherwise.
Get the settings:enable-write-console-messages-to-stdout
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t if writing console messages to stdout is enabled or #f
otherwise.
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.
Returned: a <WebKitFeatureList>.
List of experimental features.
Gets the settings:fantasy-font-family property.
Passed: a <WebKitSettings>.
Returned: a string.
The default font family used to display content marked with fantasy font.
Gets whether a feature is enabled.
Passed: a <WebKitSettings>.
Passed: a <WebKitFeature>.
the feature to toggle.
Returned: a boolean.
Whether the feature is enabled.
Get the settings:hardware-acceleration-policy
property.
Passed: a <WebKitSettings>.
Returned: a
<WebKitHardwareAccelerationPolicy>.
Get the settings:javascript-can-access-clipboard
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If javascript-can-access-clipboard is enabled or #f
otherwise.
Get the settings:javascript-can-open-windows-automatically
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If JavaScript can open window automatically or #f
otherwise.
Setting no longer supported. This function returns #f.
Passed: a <WebKitSettings>.
Returned: a boolean.
#f
Gets the settings:math-font-family property.
Passed: a <WebKitSettings>.
Returned: a string, or #f.
The default font family used to display content marked with math font.
Since 2.52
Gets the settings:media-content-types-requiring-hardware-support
property.
Passed: a <WebKitSettings>.
Returned: a string.
Media content types requiring hardware support, or #f.
Get the settings:media-playback-allows-inline
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If inline playback is allowed for media or #f if only
fullscreen playback is allowed.
Get the settings:media-playback-requires-user-gesture
property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If an user gesture is needed to play or load media or
#f if no user gesture is needed.
Gets the settings:minimum-font-size property.
Passed: a <WebKitSettings>.
Returned: an unsigned 32-bit integer.
Minimum font size, in pixels.
Gets the settings:monospace-font-family property.
Passed: a <WebKitSettings>.
Returned: a string.
Default font family used to display content marked with monospace font.
Gets the settings:pictograph-font-family property.
Passed: a <WebKitSettings>.
Returned: a string.
The default font family used to display content marked with pictograph font.
Get the settings:print-backgrounds property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If background images should be printed or #f otherwise.
Gets the settings:sans-serif-font-family property.
Passed: a <WebKitSettings>.
Returned: a string.
The default font family used to display content marked with sans-serif font.
Gets the settings:serif-font-family property.
Passed: a <WebKitSettings>.
Returned: a string.
The default font family used to display content marked with serif font.
Get the settings:user-agent
property.
Passed: a <WebKitSettings>.
Returned: a string.
The current value of the user-agent property.
Get the Settings:webrtc-udp-ports-range property.
Passed: a <WebKitSettings>.
Returned: a string.
The WebRTC UDP ports range, or #f if un-set.
Get the settings:zoom-text-only property.
Passed: a <WebKitSettings>.
Returned: a boolean.
#t If zoom level of the view should only affect the text or
#f if all view contents should be scaled.
Creates a new <WebKitSettings> instance with
default values.
It must be manually attached to a <WebKitWebView>.
See also webkit_settings_new_with_settings().
Returned: a <WebKitSettings>.
a new <WebKitSettings> instance.
Set the settings:allow-file-access-from-file-urls
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:allow-modal-dialogs property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:allow-top-navigation-to-data-urls
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:allow-universal-access-from-file-urls
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:auto-load-images property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:cursive-font-family property.
Passed: a <WebKitSettings>.
Passed: a string.
the new default cursive font family
Set the settings:default-charset property.
Passed: a <WebKitSettings>.
Passed: a string.
default charset to be set
Set the settings:default-font-family property.
Passed: a <WebKitSettings>.
Passed: a string.
the new default font family
Set the settings:default-font-size property.
Passed: a <WebKitSettings>.
Passed: an unsigned 32-bit integer.
default font size to be set in pixels
Set the settings:default-monospace-font-size
property.
Passed: a <WebKitSettings>.
Passed: an unsigned 32-bit integer.
default monospace font size to be set in pixels
Set the settings:disable-web-security property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:draw-compositing-indicators
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-2d-canvas-acceleration
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-back-forward-navigation-gestures
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
value to be set
Set the settings:enable-caret-browsing property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-developer-extras property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-dns-prefetching property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-encrypted-media property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-fullscreen property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-html5-database property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-html5-local-storage
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-hyperlink-auditing
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-javascript property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-javascript-markup property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-media property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-media-capabilities
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-media-stream property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-mediasource property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-mock-capture-devices
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Setting no longer supported. This function does nothing.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-page-cache property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-resizable-text-areas
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-site-specific-quirks
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-smooth-scrolling property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-spatial-navigation
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-tabs-to-links property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-webaudio property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-webgl property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the Settings:enable-webrtc property.
Setting this property to #t implies the media-stream web-setting
will also be enabled.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:enable-write-console-messages-to-stdout
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:fantasy-font-family property.
Passed: a <WebKitSettings>.
Passed: a string.
the new default fantasy font family
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.
Passed: a <WebKitSettings>.
Passed: a <WebKitFeature>.
the feature to toggle.
Passed: a boolean.
whether the feature will be enabled.
Set the settings:hardware-acceleration-policy
property.
Passed: a <WebKitSettings>.
Passed: a
<WebKitHardwareAccelerationPolicy>,
or one of its symbols.
Set the settings:javascript-can-access-clipboard
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:javascript-can-open-windows-automatically
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Setting no longer supported. This function does nothing.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:math-font-family property.
Since 2.52
Passed: a <WebKitSettings>.
Passed, or left out: a string, or #f.
the new default math font family
Set the settings:media-content-types-requiring-hardware-support
property.
Passed: a <WebKitSettings>.
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.
Set the settings:media-playback-allows-inline
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:media-playback-requires-user-gesture
property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:minimum-font-size property.
Passed: a <WebKitSettings>.
Passed: an unsigned 32-bit integer.
minimum font size to be set in pixels
Set the settings:monospace-font-family property.
Passed: a <WebKitSettings>.
Passed: a string.
the new default monospace font family
Set the settings:pictograph-font-family property.
Passed: a <WebKitSettings>.
Passed: a string.
the new default pictograph font family
Set the settings:print-backgrounds property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set
Set the settings:sans-serif-font-family property.
Passed: a <WebKitSettings>.
Passed: a string.
the new default sans-serif font family
Set the settings:serif-font-family property.
Passed: a <WebKitSettings>.
Passed: a string.
the new default serif font family
Set the settings:user-agent
property.
Passed: a <WebKitSettings>.
Passed, or left out: a string, or #f.
The new custom user agent string or #f to use the default user
agent
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.
Passed: a <WebKitSettings>.
Passed, or left out: a string, or #f.
The application name used for the user agent or #f to use the
default user agent.
Passed, or left out: a string, or #f.
The application version for the user agent or #f to user the
default version.
Set the Settings:webrtc-udp-ports-range property.
Passed: a <WebKitSettings>.
Passed: a string.
Value to be set
Set the settings:zoom-text-only property.
Passed: a <WebKitSettings>.
Passed: a boolean.
Value to be set