chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.page / Frame

Frame

data class Frame

Information about the Frame on the page.

Official doc

Constructors

<init>

Information about the Frame on the page.

Frame(id: FrameId, parentId: String? = null, loaderId: LoaderId, name: String? = null, url: String, urlFragment: String? = null, domainAndRegistry: String? = null, securityOrigin: String, mimeType: String, unreachableUrl: String? = null, adFrameType: AdFrameType? = null, secureContextType: SecureContextType? = null, crossOriginIsolatedContextType: CrossOriginIsolatedContextType? = null, gatedAPIFeatures: List<GatedAPIFeatures>? = null)

Properties

adFrameType

Indicates whether this frame was tagged as an ad.

val adFrameType: AdFrameType?

crossOriginIsolatedContextType

Indicates whether this is a cross origin isolated context.

val crossOriginIsolatedContextType: CrossOriginIsolatedContextType?

domainAndRegistry

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"

val domainAndRegistry: String?

gatedAPIFeatures

Indicated which gated APIs / features are available.

val gatedAPIFeatures: List<GatedAPIFeatures>?

id

Frame unique identifier.

val id: FrameId

loaderId

Identifier of the loader associated with this frame.

val loaderId: LoaderId

mimeType

Frame document's mimeType as determined by the browser.

val mimeType: String

name

Frame's name as specified in the tag.

val name: String?

parentId

Parent frame identifier.

val parentId: String?

secureContextType

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

val secureContextType: SecureContextType?

securityOrigin

Frame document's security origin.

val securityOrigin: String

unreachableUrl

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.

val unreachableUrl: String?

url

Frame document's URL without fragment.

val url: String

urlFragment

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

val urlFragment: String?