WebKitWebProcessExtension.Frame

g GObject.Object GObject.Object WebKitWebProcessExtension.Frame WebKitWebProcessExtension.Frame GObject.Object->WebKitWebProcessExtension.Frame

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_id ()

get_js_context ()

get_js_context_for_script_world (world)

get_uri ()

is_main_frame ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class WebKitWebProcessExtension.Frame(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKitWebProcessExtension.FrameClass

A web page frame.

Each WebKitWebPage has at least one main frame, and can have any number of subframes.

New in version 2.26.

get_id()
Returns:

the identifier of self

Return type:

int

Gets the process-unique identifier of this WebKitWebProcessExtension.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 (WebKitWebProcessExtension.ScriptWorld) – a WebKitWebProcessExtension.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 WebKitWebProcessExtension.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 WebKitWebProcessExtension.WebPage

New in version 2.2.