WebContext.addPathToSandbox

Adds a path to be mounted in the sandbox. @path must exist before any web process has been created otherwise it will be silently ignored. It is a fatal error to add paths after a web process has been spawned.

Paths in directories such as /sys, /proc, and /dev or all of / are not valid.

See also webkit_web_context_set_sandbox_enabled()

class WebContext
void
addPathToSandbox
(
string path
,)

Parameters

path string

an absolute path to mount in the sandbox

readOnly bool

if %TRUE the path will be read-only

Meta

Since

2.26