ScriptWorld.newWithName

Creates a new isolated #WebKitScriptWorld with a name. Scripts executed in isolated worlds have access to the DOM but not to other variable or functions created by the page. You can get the JavaScript execution context of a #WebKitScriptWorld for a given #WebKitFrame with webkit_frame_get_javascript_context_for_script_world().

class ScriptWorld
static
newWithName
(
string name
)

Parameters

name string

a name for the script world

Return Value

Type: webkitwebprocessextension.script_world.ScriptWorld

a new isolated #WebKitScriptWorld