WebFrameMain
Properties
A WebFrameMain[]
collection containing the direct descendents of frame
.
A WebFrameMain[]
collection containing every frame in the subtree of frame
, including itself. This can be useful when traversing through all frames.
An Integer
representing the id of the frame's internal FrameTreeNode instance. This id is browser-global and uniquely identifies a frame that hosts content. The identifier is fixed at the creation of the frame and stays constant for the lifetime of the frame. When the frame is removed, the id is not used again.
A string
representing the current origin of the frame, serialized according to RFC 6454. This may be different from the URL. For instance, if the frame is a child window opened to about:blank
, then frame.origin
will return the parent frame's origin, while frame.url
will return the empty string. Pages without a scheme/host/port triple origin will have the serialized origin of "null"
(that is, the string containing the letters n, u, l, l).
An Integer
representing the operating system pid
of the process which owns this frame.
A WebFrameMain | null
representing parent frame of frame
, the property would be null
if frame
is the top frame in the frame hierarchy.
A WebFrameMain | null
representing top frame in the frame hierarchy to which frame
belongs.
A string
representing the visibility state of the frame.
Functions
A promise that resolves with the result of the executed code or is rejected if execution throws or results in a rejected promise.
Send a message to the renderer process, optionally transferring ownership of zero or more MessagePortMain
objects.
Send an asynchronous message to the renderer process via channel
, along with arguments. Arguments will be serialized with the Structured Clone Algorithm, just like postMessage
, so prototype chains will not be included. Sending Functions, Promises, Symbols, WeakMaps, or WeakSets will throw an exception.