ScriptWorld.with_name


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.22" ) ]
public ScriptWorld.with_name (string name)

Creates a new isolated ScriptWorld 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 ScriptWorld for a given Frame with get_javascript_context_for_script_world.

Parameters:

name

a name for the script world

Returns:

a new isolated ScriptWorld