struct Protocol::Page::Frame

Overview

Information about the Frame on the page.

Included Modules

Defined in:

protocol/page.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ad_frame_status : AdFrameStatus | Nil #

Indicates whether this frame was tagged as an ad and why.


[View source]
def cross_origin_isolated_context_type : CrossOriginIsolatedContextType #

Indicates whether this is a cross origin isolated context.


[View source]
def domain_and_registry : String #

Frame document's registered domain, taking the public suffixes list into account. Extracted from the Frame's url. Example URLs: http://www.google.com/file.html -> "google.com" http://a.b.co.uk/file.html -> "b.co.uk"


[View source]
def gated_api_features : Array(GatedAPIFeatures) #

Indicated which gated APIs / features are available.


[View source]
def id : FrameId #

Frame unique identifier.


[View source]
def loader_id : Network::LoaderId #

Identifier of the loader associated with this frame.


[View source]
def mime_type : String #

Frame document's mimeType as determined by the browser.


[View source]
def name : String | Nil #

Frame's name as specified in the tag.


[View source]
def parent_id : FrameId | Nil #

Parent frame identifier.


[View source]
def secure_context_type : SecureContextType #

Indicates whether the main document is a secure context and explains why that is the case.


[View source]
def security_origin : String #

Frame document's security origin.


[View source]
def unreachable_url : String | Nil #

If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.


[View source]
def url : String #

Frame document's URL without fragment.


[View source]
def url_fragment : String | Nil #

Frame document's URL fragment including the '#'.


[View source]