WebKit2WebExtension.Frame¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2WebExtension.Frame(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
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:
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
) – aWebKit2WebExtension.ScriptWorld
- Returns:
the
JavaScriptCore.Context
for the JavaScript execution context of self for world.- Return type:
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
) – aWebKit2WebExtension.DOMObject
- Returns:
the
JavaScriptCore.Value
referencing dom_object.- Return type:
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.
Deprecated since version 2.40.
- get_js_value_for_dom_object_in_script_world(dom_object, world)¶
- Parameters:
dom_object (
WebKit2WebExtension.DOMObject
) – aWebKit2WebExtension.DOMObject
world (
WebKit2WebExtension.ScriptWorld
) – aWebKit2WebExtension.ScriptWorld
- Returns:
the
JavaScriptCore.Value
referencing dom_object- Return type:
Get a
JavaScriptCore.Value
referencing the given DOM object. The value is created in the JavaScript execution context of self for the givenWebKit2WebExtension.ScriptWorld
.New in version 2.22.
Deprecated since version 2.40.
- get_uri()¶
-
Gets the current active URI of self.
New in version 2.2.
- is_main_frame()¶
-
Gets whether self is the main frame of a
WebKit2WebExtension.WebPage
New in version 2.2.