Class Frame
Information about the Frame on the page.
public sealed record Frame : IEquatable<Frame>
- Inheritance
-
Frame
- Implements
- Inherited Members
Constructors
Frame(FrameId, LoaderId, string, string, string, string, SecureContextType, CrossOriginIsolatedContextType, ImmutableArray<GatedAPIFeatures>)
Information about the Frame on the page.
public Frame(FrameId Id, LoaderId LoaderId, string Url, string DomainAndRegistry, string SecurityOrigin, string MimeType, SecureContextType SecureContextType, CrossOriginIsolatedContextType CrossOriginIsolatedContextType, ImmutableArray<GatedAPIFeatures> GatedAPIFeatures)
Parameters
IdFrameIdFrame unique identifier.
LoaderIdLoaderIdIdentifier of the loader associated with this frame.
UrlstringFrame document's URL without fragment.
DomainAndRegistrystringFrame 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"
SecurityOriginstringFrame document's security origin.
MimeTypestringFrame document's mimeType as determined by the browser.
SecureContextTypeSecureContextTypeIndicates whether the main document is a secure context and explains why that is the case.
CrossOriginIsolatedContextTypeCrossOriginIsolatedContextTypeIndicates whether this is a cross origin isolated context.
GatedAPIFeaturesImmutableArray<GatedAPIFeatures>Indicated which gated APIs / features are available.
Properties
AdFrameStatus
Indicates whether this frame was tagged as an ad and why.
public AdFrameStatus? AdFrameStatus { get; init; }
Property Value
CrossOriginIsolatedContextType
Indicates whether this is a cross origin isolated context.
public CrossOriginIsolatedContextType CrossOriginIsolatedContextType { get; init; }
Property Value
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"
public string DomainAndRegistry { get; init; }
Property Value
GatedAPIFeatures
Indicated which gated APIs / features are available.
public ImmutableArray<GatedAPIFeatures> GatedAPIFeatures { get; init; }
Property Value
Id
Frame unique identifier.
public FrameId Id { get; init; }
Property Value
LoaderId
Identifier of the loader associated with this frame.
public LoaderId LoaderId { get; init; }
Property Value
MimeType
Frame document's mimeType as determined by the browser.
public string MimeType { get; init; }
Property Value
Name
Frame's name as specified in the tag.
public string? Name { get; init; }
Property Value
ParentId
Parent frame identifier.
public FrameId? ParentId { get; init; }
Property Value
SecureContextType
Indicates whether the main document is a secure context and explains why that is the case.
public SecureContextType SecureContextType { get; init; }
Property Value
SecurityOrigin
Frame document's security origin.
public string SecurityOrigin { get; init; }
Property Value
SecurityOriginDetails
Additional details about the frame document's security origin.
public SecurityOriginDetails? SecurityOriginDetails { get; init; }
Property Value
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.
public string? UnreachableUrl { get; init; }
Property Value
Url
Frame document's URL without fragment.
public string Url { get; init; }
Property Value
UrlFragment
Frame document's URL fragment including the '#'.
public string? UrlFragment { get; init; }