WebKit2WebExtension.Frame

g GObject.Object GObject.Object WebKit2WebExtension.Frame WebKit2WebExtension.Frame GObject.Object->WebKit2WebExtension.Frame

Subclasses:None

Virtual Methods

Inherited:GObject.Object (7)

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  

Class Details

class WebKit2WebExtension.Frame(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:WebKit2WebExtension.FrameClass
get_id()
Returns:the identifier of self
Return type:int

Gets the process-unique identifier of this WebKit2WebExtension.Frame. No other frame in the same web process will have the same ID; however, frames in other web processes may.

New in version 2.26.

get_js_context()
Returns:the JavaScriptCore.Context for the JavaScript execution context of self.
Return type:JavaScriptCore.Context

Get the JavaScript execution context of self. Use this function to bridge between the WebKit and JavaScriptCore APIs.

New in version 2.22.

get_js_context_for_script_world(world)
Parameters:world (WebKit2WebExtension.ScriptWorld) – a WebKit2WebExtension.ScriptWorld
Returns:the JavaScriptCore.Context for the JavaScript execution context of self for world.
Return type:JavaScriptCore.Context

Get the JavaScript execution context of self for the given WebKit2WebExtension.ScriptWorld.

New in version 2.22.

get_js_value_for_dom_object(dom_object)
Parameters:dom_object (WebKit2WebExtension.DOMObject) – a WebKit2WebExtension.DOMObject
Returns:the JavaScriptCore.Value referencing dom_object.
Return type:JavaScriptCore.Value

Get a JavaScriptCore.Value referencing the given DOM object. The value is created in the JavaScript execution context of self.

New in version 2.22.

get_js_value_for_dom_object_in_script_world(dom_object, world)
Parameters:
Returns:

the JavaScriptCore.Value referencing dom_object

Return type:

JavaScriptCore.Value

Get a JavaScriptCore.Value referencing the given DOM object. The value is created in the JavaScript execution context of self for the given WebKit2WebExtension.ScriptWorld.

New in version 2.22.

get_uri()
Returns:the current active URI of self or None if nothing has been loaded yet.
Return type:str

Gets the current active URI of self.

New in version 2.2.

is_main_frame()
Returns:True if self is a main frame or False otherwise
Return type:bool

Gets whether self is the main frame of a WebKit2WebExtension.WebPage

New in version 2.2.