gi-webkit2webextension-4.0.12: WebKit2-WebExtension bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2WebExtension.Objects.ScriptWorld

Contents

Description

 

Synopsis

Exported types

Methods

getDefault

scriptWorldGetDefault Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m ScriptWorld

Returns: the default ScriptWorld

Get the default ScriptWorld. This is the normal script world where all scripts are executed by default. You can get the JavaScript execution context of a ScriptWorld for a given Frame with frameGetJavascriptContextForScriptWorld.

Since: 2.2

new

scriptWorldNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m ScriptWorld

Returns: a new isolated ScriptWorld

Creates a new isolated ScriptWorld. 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 frameGetJavascriptContextForScriptWorld.

Since: 2.2

Signals

windowObjectCleared