audits

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 7 Imported by: 5

Documentation

Overview

Package audits implements the Audits domain. Audits domain allows investigation of page violations and possible improvements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the Audits domain with the connection set to conn.

Types

type AffectedCookie added in v0.26.0

type AffectedCookie struct {
	Name   string `json:"name"`   // The following three properties uniquely identify a cookie
	Path   string `json:"path"`   // No description.
	Domain string `json:"domain"` // No description.
}

AffectedCookie Information about a cookie that is affected by an inspector issue.

type AffectedFrame added in v0.29.0

type AffectedFrame struct {
	FrameID page.FrameID `json:"frameId"` // No description.
}

AffectedFrame Information about the frame affected by an inspector issue.

type AffectedRequest added in v0.29.0

type AffectedRequest struct {
	RequestID network.RequestID `json:"requestId"`     // The unique request id.
	URL       *string           `json:"url,omitempty"` // No description.
}

AffectedRequest Information about a request that is affected by an inspector issue.

type AttributionReportingIssueDetails added in v0.32.0

type AttributionReportingIssueDetails struct {
	ViolationType    AttributionReportingIssueType `json:"violationType"`              // No description.
	Request          *AffectedRequest              `json:"request,omitempty"`          // No description.
	ViolatingNodeID  *dom.BackendNodeID            `json:"violatingNodeId,omitempty"`  // No description.
	InvalidParameter *string                       `json:"invalidParameter,omitempty"` // No description.
}

AttributionReportingIssueDetails Details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/attribution-reporting-api

type AttributionReportingIssueType added in v0.32.0

type AttributionReportingIssueType string

AttributionReportingIssueType

const (
	AttributionReportingIssueTypeNotSet                                               AttributionReportingIssueType = ""
	AttributionReportingIssueTypePermissionPolicyDisabled                             AttributionReportingIssueType = "PermissionPolicyDisabled"
	AttributionReportingIssueTypeUntrustworthyReportingOrigin                         AttributionReportingIssueType = "UntrustworthyReportingOrigin"
	AttributionReportingIssueTypeInsecureContext                                      AttributionReportingIssueType = "InsecureContext"
	AttributionReportingIssueTypeInvalidHeader                                        AttributionReportingIssueType = "InvalidHeader"
	AttributionReportingIssueTypeInvalidRegisterTriggerHeader                         AttributionReportingIssueType = "InvalidRegisterTriggerHeader"
	AttributionReportingIssueTypeSourceAndTriggerHeaders                              AttributionReportingIssueType = "SourceAndTriggerHeaders"
	AttributionReportingIssueTypeSourceIgnored                                        AttributionReportingIssueType = "SourceIgnored"
	AttributionReportingIssueTypeTriggerIgnored                                       AttributionReportingIssueType = "TriggerIgnored"
	AttributionReportingIssueTypeOSSourceIgnored                                      AttributionReportingIssueType = "OsSourceIgnored"
	AttributionReportingIssueTypeOSTriggerIgnored                                     AttributionReportingIssueType = "OsTriggerIgnored"
	AttributionReportingIssueTypeInvalidRegisterOSSourceHeader                        AttributionReportingIssueType = "InvalidRegisterOsSourceHeader"
	AttributionReportingIssueTypeInvalidRegisterOSTriggerHeader                       AttributionReportingIssueType = "InvalidRegisterOsTriggerHeader"
	AttributionReportingIssueTypeWebAndOSHeaders                                      AttributionReportingIssueType = "WebAndOsHeaders"
	AttributionReportingIssueTypeNoWebOrOSSupport                                     AttributionReportingIssueType = "NoWebOrOsSupport"
	AttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation AttributionReportingIssueType = "NavigationRegistrationWithoutTransientUserActivation"
	AttributionReportingIssueTypeInvalidInfoHeader                                    AttributionReportingIssueType = "InvalidInfoHeader"
	AttributionReportingIssueTypeNoRegisterSourceHeader                               AttributionReportingIssueType = "NoRegisterSourceHeader"
	AttributionReportingIssueTypeNoRegisterTriggerHeader                              AttributionReportingIssueType = "NoRegisterTriggerHeader"
	AttributionReportingIssueTypeNoRegisterOSSourceHeader                             AttributionReportingIssueType = "NoRegisterOsSourceHeader"
	AttributionReportingIssueTypeNoRegisterOSTriggerHeader                            AttributionReportingIssueType = "NoRegisterOsTriggerHeader"
	AttributionReportingIssueTypeNavigationRegistrationUniqueScopeAlreadySet          AttributionReportingIssueType = "NavigationRegistrationUniqueScopeAlreadySet"
)

AttributionReportingIssueType as enums.

func (AttributionReportingIssueType) String added in v0.32.0

func (AttributionReportingIssueType) Valid added in v0.32.0

type BlockedByResponseIssueDetails added in v0.29.0

type BlockedByResponseIssueDetails struct {
	Request      AffectedRequest         `json:"request"`                // No description.
	ParentFrame  *AffectedFrame          `json:"parentFrame,omitempty"`  // No description.
	BlockedFrame *AffectedFrame          `json:"blockedFrame,omitempty"` // No description.
	Reason       BlockedByResponseReason `json:"reason"`                 // No description.
}

BlockedByResponseIssueDetails Details for a request that has been blocked with the BLOCKED_BY_RESPONSE code. Currently only used for COEP/COOP, but may be extended to include some CSP errors in the future.

type BlockedByResponseReason added in v0.29.0

type BlockedByResponseReason string

BlockedByResponseReason Enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.

const (
	BlockedByResponseReasonNotSet                                                  BlockedByResponseReason = ""
	BlockedByResponseReasonCOEPFrameResourceNeedsCOEPHeader                        BlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader"
	BlockedByResponseReasonCOOPSandboxedIFrameCannotNavigateToCOOPPage             BlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage"
	BlockedByResponseReasonCORPNotSameOrigin                                       BlockedByResponseReason = "CorpNotSameOrigin"
	BlockedByResponseReasonCORPNotSameOriginAfterDefaultedToSameOriginByCOEP       BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep"
	BlockedByResponseReasonCORPNotSameOriginAfterDefaultedToSameOriginByDIP        BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByDip"
	BlockedByResponseReasonCORPNotSameOriginAfterDefaultedToSameOriginByCOEPAndDIP BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip"
	BlockedByResponseReasonCORPNotSameSite                                         BlockedByResponseReason = "CorpNotSameSite"
)

BlockedByResponseReason as enums.

func (BlockedByResponseReason) String added in v0.29.0

func (e BlockedByResponseReason) String() string

func (BlockedByResponseReason) Valid added in v0.29.0

func (e BlockedByResponseReason) Valid() bool

type BounceTrackingIssueDetails added in v0.35.0

type BounceTrackingIssueDetails struct {
	TrackingSites []string `json:"trackingSites"` // No description.
}

BounceTrackingIssueDetails This issue warns about sites in the redirect chain of a finished navigation that may be flagged as trackers and have their state cleared if they don't receive a user interaction. Note that in this context 'site' means eTLD+1. For example, if the URL `https://example.test:80/bounce` was in the redirect chain, the site reported would be `example.test`.

type CORSIssueDetails added in v0.31.0

type CORSIssueDetails struct {
	CORSErrorStatus        network.CORSErrorStatus      `json:"corsErrorStatus"`                  // No description.
	IsWarning              bool                         `json:"isWarning"`                        // No description.
	Request                AffectedRequest              `json:"request"`                          // No description.
	Location               *SourceCodeLocation          `json:"location,omitempty"`               // No description.
	InitiatorOrigin        *string                      `json:"initiatorOrigin,omitempty"`        // No description.
	ResourceIPAddressSpace *network.IPAddressSpace      `json:"resourceIPAddressSpace,omitempty"` // No description.
	ClientSecurityState    *network.ClientSecurityState `json:"clientSecurityState,omitempty"`    // No description.
}

CORSIssueDetails Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.

type CheckContrastArgs added in v0.31.0

type CheckContrastArgs struct {
	ReportAAA *bool `json:"reportAAA,omitempty"` // Whether to report WCAG AAA level issues. Default is false.
}

CheckContrastArgs represents the arguments for CheckContrast in the Audits domain.

func NewCheckContrastArgs added in v0.31.0

func NewCheckContrastArgs() *CheckContrastArgs

NewCheckContrastArgs initializes CheckContrastArgs with the required arguments.

func (*CheckContrastArgs) SetReportAAA added in v0.31.0

func (a *CheckContrastArgs) SetReportAAA(reportAAA bool) *CheckContrastArgs

SetReportAAA sets the ReportAAA optional argument. Whether to report WCAG AAA level issues. Default is false.

type CheckFormsIssuesReply added in v0.35.0

type CheckFormsIssuesReply struct {
	FormIssues []GenericIssueDetails `json:"formIssues"` // No description.
}

CheckFormsIssuesReply represents the return values for CheckFormsIssues in the Audits domain.

type ClientHintIssueDetails added in v0.33.0

type ClientHintIssueDetails struct {
	SourceCodeLocation    SourceCodeLocation    `json:"sourceCodeLocation"`    // No description.
	ClientHintIssueReason ClientHintIssueReason `json:"clientHintIssueReason"` // No description.
}

ClientHintIssueDetails This issue tracks client hints related issues. It's used to deprecate old features, encourage the use of new ones, and provide general guidance.

type ClientHintIssueReason added in v0.33.0

type ClientHintIssueReason string

ClientHintIssueReason

const (
	ClientHintIssueReasonNotSet                        ClientHintIssueReason = ""
	ClientHintIssueReasonMetaTagAllowListInvalidOrigin ClientHintIssueReason = "MetaTagAllowListInvalidOrigin"
	ClientHintIssueReasonMetaTagModifiedHTML           ClientHintIssueReason = "MetaTagModifiedHTML"
)

ClientHintIssueReason as enums.

func (ClientHintIssueReason) String added in v0.33.0

func (e ClientHintIssueReason) String() string

func (ClientHintIssueReason) Valid added in v0.33.0

func (e ClientHintIssueReason) Valid() bool

type ContentSecurityPolicyIssueDetails added in v0.31.0

type ContentSecurityPolicyIssueDetails struct {
	BlockedURL                         *string                            `json:"blockedURL,omitempty"`               // The url not included in allowed sources.
	ViolatedDirective                  string                             `json:"violatedDirective"`                  // Specific directive that is violated, causing the CSP issue.
	IsReportOnly                       bool                               `json:"isReportOnly"`                       // No description.
	ContentSecurityPolicyViolationType ContentSecurityPolicyViolationType `json:"contentSecurityPolicyViolationType"` // No description.
	FrameAncestor                      *AffectedFrame                     `json:"frameAncestor,omitempty"`            // No description.
	SourceCodeLocation                 *SourceCodeLocation                `json:"sourceCodeLocation,omitempty"`       // No description.
	ViolatingNodeID                    *dom.BackendNodeID                 `json:"violatingNodeId,omitempty"`          // No description.
}

ContentSecurityPolicyIssueDetails

type ContentSecurityPolicyViolationType added in v0.31.0

type ContentSecurityPolicyViolationType string

ContentSecurityPolicyViolationType

const (
	ContentSecurityPolicyViolationTypeNotSet                       ContentSecurityPolicyViolationType = ""
	ContentSecurityPolicyViolationTypeKInlineViolation             ContentSecurityPolicyViolationType = "kInlineViolation"
	ContentSecurityPolicyViolationTypeKEvalViolation               ContentSecurityPolicyViolationType = "kEvalViolation"
	ContentSecurityPolicyViolationTypeKURLViolation                ContentSecurityPolicyViolationType = "kURLViolation"
	ContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation   ContentSecurityPolicyViolationType = "kTrustedTypesSinkViolation"
	ContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation ContentSecurityPolicyViolationType = "kTrustedTypesPolicyViolation"
	ContentSecurityPolicyViolationTypeKWasmEvalViolation           ContentSecurityPolicyViolationType = "kWasmEvalViolation"
)

ContentSecurityPolicyViolationType as enums.

func (ContentSecurityPolicyViolationType) String added in v0.31.0

func (ContentSecurityPolicyViolationType) Valid added in v0.31.0

type CookieDeprecationMetadataIssueDetails added in v0.35.0

type CookieDeprecationMetadataIssueDetails struct {
	AllowedSites     []string        `json:"allowedSites"`     // No description.
	OptOutPercentage float64         `json:"optOutPercentage"` // No description.
	IsOptOutTopLevel bool            `json:"isOptOutTopLevel"` // No description.
	Operation        CookieOperation `json:"operation"`        // No description.
}

CookieDeprecationMetadataIssueDetails This issue warns about third-party sites that are accessing cookies on the current page, and have been permitted due to having a global metadata grant. Note that in this context 'site' means eTLD+1. For example, if the URL `https://example.test:80/web_page` was accessing cookies, the site reported would be `example.test`.

type CookieExclusionReason added in v0.33.0

type CookieExclusionReason string

CookieExclusionReason

const (
	CookieExclusionReasonNotSet                                        CookieExclusionReason = ""
	CookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax        CookieExclusionReason = "ExcludeSameSiteUnspecifiedTreatedAsLax"
	CookieExclusionReasonExcludeSameSiteNoneInsecure                   CookieExclusionReason = "ExcludeSameSiteNoneInsecure"
	CookieExclusionReasonExcludeSameSiteLax                            CookieExclusionReason = "ExcludeSameSiteLax"
	CookieExclusionReasonExcludeSameSiteStrict                         CookieExclusionReason = "ExcludeSameSiteStrict"
	CookieExclusionReasonExcludeInvalidSameParty                       CookieExclusionReason = "ExcludeInvalidSameParty"
	CookieExclusionReasonExcludeSamePartyCrossPartyContext             CookieExclusionReason = "ExcludeSamePartyCrossPartyContext"
	CookieExclusionReasonExcludeDomainNonASCII                         CookieExclusionReason = "ExcludeDomainNonASCII"
	CookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet CookieExclusionReason = "ExcludeThirdPartyCookieBlockedInFirstPartySet"
	CookieExclusionReasonExcludeThirdPartyPhaseout                     CookieExclusionReason = "ExcludeThirdPartyPhaseout"
)

CookieExclusionReason as enums.

func (CookieExclusionReason) String added in v0.33.0

func (e CookieExclusionReason) String() string

func (CookieExclusionReason) Valid added in v0.33.0

func (e CookieExclusionReason) Valid() bool

type CookieIssueDetails added in v0.33.0

type CookieIssueDetails struct {
	Cookie                 *AffectedCookie         `json:"cookie,omitempty"`         // If AffectedCookie is not set then rawCookieLine contains the raw Set-Cookie header string. This hints at a problem where the cookie line is syntactically or semantically malformed in a way that no valid cookie could be created.
	RawCookieLine          *string                 `json:"rawCookieLine,omitempty"`  // No description.
	CookieWarningReasons   []CookieWarningReason   `json:"cookieWarningReasons"`     // No description.
	CookieExclusionReasons []CookieExclusionReason `json:"cookieExclusionReasons"`   // No description.
	Operation              CookieOperation         `json:"operation"`                // Optionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context.
	SiteForCookies         *string                 `json:"siteForCookies,omitempty"` // No description.
	CookieURL              *string                 `json:"cookieUrl,omitempty"`      // No description.
	Request                *AffectedRequest        `json:"request,omitempty"`        // No description.
}

CookieIssueDetails This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.

type CookieOperation added in v0.33.0

type CookieOperation string

CookieOperation

const (
	CookieOperationNotSet     CookieOperation = ""
	CookieOperationSetCookie  CookieOperation = "SetCookie"
	CookieOperationReadCookie CookieOperation = "ReadCookie"
)

CookieOperation as enums.

func (CookieOperation) String added in v0.33.0

func (e CookieOperation) String() string

func (CookieOperation) Valid added in v0.33.0

func (e CookieOperation) Valid() bool

type CookieWarningReason added in v0.33.0

type CookieWarningReason string

CookieWarningReason

const (
	CookieWarningReasonNotSet                                         CookieWarningReason = ""
	CookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext        CookieWarningReason = "WarnSameSiteUnspecifiedCrossSiteContext"
	CookieWarningReasonWarnSameSiteNoneInsecure                       CookieWarningReason = "WarnSameSiteNoneInsecure"
	CookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe          CookieWarningReason = "WarnSameSiteUnspecifiedLaxAllowUnsafe"
	CookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict           CookieWarningReason = "WarnSameSiteStrictLaxDowngradeStrict"
	CookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict         CookieWarningReason = "WarnSameSiteStrictCrossDowngradeStrict"
	CookieWarningReasonWarnSameSiteStrictCrossDowngradeLax            CookieWarningReason = "WarnSameSiteStrictCrossDowngradeLax"
	CookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict            CookieWarningReason = "WarnSameSiteLaxCrossDowngradeStrict"
	CookieWarningReasonWarnSameSiteLaxCrossDowngradeLax               CookieWarningReason = "WarnSameSiteLaxCrossDowngradeLax"
	CookieWarningReasonWarnAttributeValueExceedsMaxSize               CookieWarningReason = "WarnAttributeValueExceedsMaxSize"
	CookieWarningReasonWarnDomainNonASCII                             CookieWarningReason = "WarnDomainNonASCII"
	CookieWarningReasonWarnThirdPartyPhaseout                         CookieWarningReason = "WarnThirdPartyPhaseout"
	CookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion CookieWarningReason = "WarnCrossSiteRedirectDowngradeChangesInclusion"
)

CookieWarningReason as enums.

func (CookieWarningReason) String added in v0.33.0

func (e CookieWarningReason) String() string

func (CookieWarningReason) Valid added in v0.33.0

func (e CookieWarningReason) Valid() bool

type DeprecationIssueDetails added in v0.33.0

type DeprecationIssueDetails struct {
	AffectedFrame      *AffectedFrame     `json:"affectedFrame,omitempty"` // No description.
	SourceCodeLocation SourceCodeLocation `json:"sourceCodeLocation"`      // No description.
	Type               string             `json:"type"`                    // One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5
}

DeprecationIssueDetails This issue tracks information needed to print a deprecation message. https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md

type FailedRequestInfo added in v0.35.0

type FailedRequestInfo struct {
	URL            string             `json:"url"`                 // The URL that failed to load.
	FailureMessage string             `json:"failureMessage"`      // The failure message for the failed request.
	RequestID      *network.RequestID `json:"requestId,omitempty"` // No description.
}

FailedRequestInfo

type FederatedAuthRequestIssueDetails added in v0.33.0

type FederatedAuthRequestIssueDetails struct {
	FederatedAuthRequestIssueReason FederatedAuthRequestIssueReason `json:"federatedAuthRequestIssueReason"` // No description.
}

FederatedAuthRequestIssueDetails

type FederatedAuthRequestIssueReason added in v0.33.0

type FederatedAuthRequestIssueReason string

FederatedAuthRequestIssueReason Represents the failure reason when a federated authentication reason fails. Should be updated alongside RequestIdTokenStatus in third_party/blink/public/mojom/devtools/inspector_issue.mojom to include all cases except for success.

const (
	FederatedAuthRequestIssueReasonNotSet                           FederatedAuthRequestIssueReason = ""
	FederatedAuthRequestIssueReasonShouldEmbargo                    FederatedAuthRequestIssueReason = "ShouldEmbargo"
	FederatedAuthRequestIssueReasonTooManyRequests                  FederatedAuthRequestIssueReason = "TooManyRequests"
	FederatedAuthRequestIssueReasonWellKnownHTTPNotFound            FederatedAuthRequestIssueReason = "WellKnownHttpNotFound"
	FederatedAuthRequestIssueReasonWellKnownNoResponse              FederatedAuthRequestIssueReason = "WellKnownNoResponse"
	FederatedAuthRequestIssueReasonWellKnownInvalidResponse         FederatedAuthRequestIssueReason = "WellKnownInvalidResponse"
	FederatedAuthRequestIssueReasonWellKnownListEmpty               FederatedAuthRequestIssueReason = "WellKnownListEmpty"
	FederatedAuthRequestIssueReasonWellKnownInvalidContentType      FederatedAuthRequestIssueReason = "WellKnownInvalidContentType"
	FederatedAuthRequestIssueReasonConfigNotInWellKnown             FederatedAuthRequestIssueReason = "ConfigNotInWellKnown"
	FederatedAuthRequestIssueReasonWellKnownTooBig                  FederatedAuthRequestIssueReason = "WellKnownTooBig"
	FederatedAuthRequestIssueReasonConfigHTTPNotFound               FederatedAuthRequestIssueReason = "ConfigHttpNotFound"
	FederatedAuthRequestIssueReasonConfigNoResponse                 FederatedAuthRequestIssueReason = "ConfigNoResponse"
	FederatedAuthRequestIssueReasonConfigInvalidResponse            FederatedAuthRequestIssueReason = "ConfigInvalidResponse"
	FederatedAuthRequestIssueReasonConfigInvalidContentType         FederatedAuthRequestIssueReason = "ConfigInvalidContentType"
	FederatedAuthRequestIssueReasonClientMetadataHTTPNotFound       FederatedAuthRequestIssueReason = "ClientMetadataHttpNotFound"
	FederatedAuthRequestIssueReasonClientMetadataNoResponse         FederatedAuthRequestIssueReason = "ClientMetadataNoResponse"
	FederatedAuthRequestIssueReasonClientMetadataInvalidResponse    FederatedAuthRequestIssueReason = "ClientMetadataInvalidResponse"
	FederatedAuthRequestIssueReasonClientMetadataInvalidContentType FederatedAuthRequestIssueReason = "ClientMetadataInvalidContentType"
	FederatedAuthRequestIssueReasonIDPNotPotentiallyTrustworthy     FederatedAuthRequestIssueReason = "IdpNotPotentiallyTrustworthy"
	FederatedAuthRequestIssueReasonDisabledInSettings               FederatedAuthRequestIssueReason = "DisabledInSettings"
	FederatedAuthRequestIssueReasonDisabledInFlags                  FederatedAuthRequestIssueReason = "DisabledInFlags"
	FederatedAuthRequestIssueReasonErrorFetchingSignin              FederatedAuthRequestIssueReason = "ErrorFetchingSignin"
	FederatedAuthRequestIssueReasonInvalidSigninResponse            FederatedAuthRequestIssueReason = "InvalidSigninResponse"
	FederatedAuthRequestIssueReasonAccountsHTTPNotFound             FederatedAuthRequestIssueReason = "AccountsHttpNotFound"
	FederatedAuthRequestIssueReasonAccountsNoResponse               FederatedAuthRequestIssueReason = "AccountsNoResponse"
	FederatedAuthRequestIssueReasonAccountsInvalidResponse          FederatedAuthRequestIssueReason = "AccountsInvalidResponse"
	FederatedAuthRequestIssueReasonAccountsListEmpty                FederatedAuthRequestIssueReason = "AccountsListEmpty"
	FederatedAuthRequestIssueReasonAccountsInvalidContentType       FederatedAuthRequestIssueReason = "AccountsInvalidContentType"
	FederatedAuthRequestIssueReasonIDTokenHTTPNotFound              FederatedAuthRequestIssueReason = "IdTokenHttpNotFound"
	FederatedAuthRequestIssueReasonIDTokenNoResponse                FederatedAuthRequestIssueReason = "IdTokenNoResponse"
	FederatedAuthRequestIssueReasonIDTokenInvalidResponse           FederatedAuthRequestIssueReason = "IdTokenInvalidResponse"
	FederatedAuthRequestIssueReasonIDTokenIDPErrorResponse          FederatedAuthRequestIssueReason = "IdTokenIdpErrorResponse"
	FederatedAuthRequestIssueReasonIDTokenCrossSiteIDPErrorResponse FederatedAuthRequestIssueReason = "IdTokenCrossSiteIdpErrorResponse"
	FederatedAuthRequestIssueReasonIDTokenInvalidRequest            FederatedAuthRequestIssueReason = "IdTokenInvalidRequest"
	FederatedAuthRequestIssueReasonIDTokenInvalidContentType        FederatedAuthRequestIssueReason = "IdTokenInvalidContentType"
	FederatedAuthRequestIssueReasonErrorIDToken                     FederatedAuthRequestIssueReason = "ErrorIdToken"
	FederatedAuthRequestIssueReasonCanceled                         FederatedAuthRequestIssueReason = "Canceled"
	FederatedAuthRequestIssueReasonRPPageNotVisible                 FederatedAuthRequestIssueReason = "RpPageNotVisible"
	FederatedAuthRequestIssueReasonSilentMediationFailure           FederatedAuthRequestIssueReason = "SilentMediationFailure"
	FederatedAuthRequestIssueReasonThirdPartyCookiesBlocked         FederatedAuthRequestIssueReason = "ThirdPartyCookiesBlocked"
	FederatedAuthRequestIssueReasonNotSignedInWithIDP               FederatedAuthRequestIssueReason = "NotSignedInWithIdp"
	FederatedAuthRequestIssueReasonMissingTransientUserActivation   FederatedAuthRequestIssueReason = "MissingTransientUserActivation"
	FederatedAuthRequestIssueReasonReplacedByButtonMode             FederatedAuthRequestIssueReason = "ReplacedByButtonMode"
	FederatedAuthRequestIssueReasonInvalidFieldsSpecified           FederatedAuthRequestIssueReason = "InvalidFieldsSpecified"
	FederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque       FederatedAuthRequestIssueReason = "RelyingPartyOriginIsOpaque"
	FederatedAuthRequestIssueReasonTypeNotMatching                  FederatedAuthRequestIssueReason = "TypeNotMatching"
)

FederatedAuthRequestIssueReason as enums.

func (FederatedAuthRequestIssueReason) String added in v0.33.0

func (FederatedAuthRequestIssueReason) Valid added in v0.33.0

type FederatedAuthUserInfoRequestIssueDetails added in v0.35.0

type FederatedAuthUserInfoRequestIssueDetails struct {
	FederatedAuthUserInfoRequestIssueReason FederatedAuthUserInfoRequestIssueReason `json:"federatedAuthUserInfoRequestIssueReason"` // No description.
}

FederatedAuthUserInfoRequestIssueDetails

type FederatedAuthUserInfoRequestIssueReason added in v0.35.0

type FederatedAuthUserInfoRequestIssueReason string

FederatedAuthUserInfoRequestIssueReason Represents the failure reason when a getUserInfo() call fails. Should be updated alongside FederatedAuthUserInfoRequestResult in third_party/blink/public/mojom/devtools/inspector_issue.mojom.

const (
	FederatedAuthUserInfoRequestIssueReasonNotSet                             FederatedAuthUserInfoRequestIssueReason = ""
	FederatedAuthUserInfoRequestIssueReasonNotSameOrigin                      FederatedAuthUserInfoRequestIssueReason = "NotSameOrigin"
	FederatedAuthUserInfoRequestIssueReasonNotIframe                          FederatedAuthUserInfoRequestIssueReason = "NotIframe"
	FederatedAuthUserInfoRequestIssueReasonNotPotentiallyTrustworthy          FederatedAuthUserInfoRequestIssueReason = "NotPotentiallyTrustworthy"
	FederatedAuthUserInfoRequestIssueReasonNoAPIPermission                    FederatedAuthUserInfoRequestIssueReason = "NoApiPermission"
	FederatedAuthUserInfoRequestIssueReasonNotSignedInWithIDP                 FederatedAuthUserInfoRequestIssueReason = "NotSignedInWithIdp"
	FederatedAuthUserInfoRequestIssueReasonNoAccountSharingPermission         FederatedAuthUserInfoRequestIssueReason = "NoAccountSharingPermission"
	FederatedAuthUserInfoRequestIssueReasonInvalidConfigOrWellKnown           FederatedAuthUserInfoRequestIssueReason = "InvalidConfigOrWellKnown"
	FederatedAuthUserInfoRequestIssueReasonInvalidAccountsResponse            FederatedAuthUserInfoRequestIssueReason = "InvalidAccountsResponse"
	FederatedAuthUserInfoRequestIssueReasonNoReturningUserFromFetchedAccounts FederatedAuthUserInfoRequestIssueReason = "NoReturningUserFromFetchedAccounts"
)

FederatedAuthUserInfoRequestIssueReason as enums.

func (FederatedAuthUserInfoRequestIssueReason) String added in v0.35.0

func (FederatedAuthUserInfoRequestIssueReason) Valid added in v0.35.0

type GenericIssueDetails added in v0.33.0

type GenericIssueDetails struct {
	ErrorType              GenericIssueErrorType `json:"errorType"`                        // Issues with the same errorType are aggregated in the frontend.
	FrameID                *page.FrameID         `json:"frameId,omitempty"`                // No description.
	ViolatingNodeID        *dom.BackendNodeID    `json:"violatingNodeId,omitempty"`        // No description.
	ViolatingNodeAttribute *string               `json:"violatingNodeAttribute,omitempty"` // No description.
	Request                *AffectedRequest      `json:"request,omitempty"`                // No description.
}

GenericIssueDetails Depending on the concrete errorType, different properties are set.

type GenericIssueErrorType added in v0.33.0

type GenericIssueErrorType string

GenericIssueErrorType

const (
	GenericIssueErrorTypeNotSet                                                     GenericIssueErrorType = ""
	GenericIssueErrorTypeFormLabelForNameError                                      GenericIssueErrorType = "FormLabelForNameError"
	GenericIssueErrorTypeFormDuplicateIDForInputError                               GenericIssueErrorType = "FormDuplicateIdForInputError"
	GenericIssueErrorTypeFormInputWithNoLabelError                                  GenericIssueErrorType = "FormInputWithNoLabelError"
	GenericIssueErrorTypeFormAutocompleteAttributeEmptyError                        GenericIssueErrorType = "FormAutocompleteAttributeEmptyError"
	GenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError                  GenericIssueErrorType = "FormEmptyIdAndNameAttributesForInputError"
	GenericIssueErrorTypeFormAriaLabelledByToNonExistingID                          GenericIssueErrorType = "FormAriaLabelledByToNonExistingId"
	GenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError GenericIssueErrorType = "FormInputAssignedAutocompleteValueToIdOrNameAttributeError"
	GenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput                       GenericIssueErrorType = "FormLabelHasNeitherForNorNestedInput"
	GenericIssueErrorTypeFormLabelForMatchesNonExistingIDError                      GenericIssueErrorType = "FormLabelForMatchesNonExistingIdError"
	GenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError     GenericIssueErrorType = "FormInputHasWrongButWellIntendedAutocompleteValueError"
	GenericIssueErrorTypeResponseWasBlockedByORB                                    GenericIssueErrorType = "ResponseWasBlockedByORB"
)

GenericIssueErrorType as enums.

func (GenericIssueErrorType) String added in v0.33.0

func (e GenericIssueErrorType) String() string

func (GenericIssueErrorType) Valid added in v0.33.0

func (e GenericIssueErrorType) Valid() bool

type GetEncodedResponseArgs

type GetEncodedResponseArgs struct {
	RequestID network.RequestID `json:"requestId"` // Identifier of the network request to get content for.
	// Encoding The encoding to use.
	//
	// Values: "webp", "jpeg", "png".
	Encoding string   `json:"encoding"`
	Quality  *float64 `json:"quality,omitempty"`  // The quality of the encoding (0-1). (defaults to 1)
	SizeOnly *bool    `json:"sizeOnly,omitempty"` // Whether to only return the size information (defaults to false).
}

GetEncodedResponseArgs represents the arguments for GetEncodedResponse in the Audits domain.

func NewGetEncodedResponseArgs

func NewGetEncodedResponseArgs(requestID network.RequestID, encoding string) *GetEncodedResponseArgs

NewGetEncodedResponseArgs initializes GetEncodedResponseArgs with the required arguments.

func (*GetEncodedResponseArgs) SetQuality

func (a *GetEncodedResponseArgs) SetQuality(quality float64) *GetEncodedResponseArgs

SetQuality sets the Quality optional argument. The quality of the encoding (0-1). (defaults to 1)

func (*GetEncodedResponseArgs) SetSizeOnly

func (a *GetEncodedResponseArgs) SetSizeOnly(sizeOnly bool) *GetEncodedResponseArgs

SetSizeOnly sets the SizeOnly optional argument. Whether to only return the size information (defaults to false).

type GetEncodedResponseReply

type GetEncodedResponseReply struct {
	Body         []byte `json:"body,omitempty"` // The encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON)
	OriginalSize int    `json:"originalSize"`   // Size before re-encoding.
	EncodedSize  int    `json:"encodedSize"`    // Size after re-encoding.
}

GetEncodedResponseReply represents the return values for GetEncodedResponse in the Audits domain.

type HeavyAdIssueDetails added in v0.31.0

type HeavyAdIssueDetails struct {
	Resolution HeavyAdResolutionStatus `json:"resolution"` // The resolution status, either blocking the content or warning.
	Reason     HeavyAdReason           `json:"reason"`     // The reason the ad was blocked, total network or cpu or peak cpu.
	Frame      AffectedFrame           `json:"frame"`      // The frame that was blocked.
}

HeavyAdIssueDetails

type HeavyAdReason added in v0.31.0

type HeavyAdReason string

HeavyAdReason

const (
	HeavyAdReasonNotSet            HeavyAdReason = ""
	HeavyAdReasonNetworkTotalLimit HeavyAdReason = "NetworkTotalLimit"
	HeavyAdReasonCPUTotalLimit     HeavyAdReason = "CpuTotalLimit"
	HeavyAdReasonCPUPeakLimit      HeavyAdReason = "CpuPeakLimit"
)

HeavyAdReason as enums.

func (HeavyAdReason) String added in v0.31.0

func (e HeavyAdReason) String() string

func (HeavyAdReason) Valid added in v0.31.0

func (e HeavyAdReason) Valid() bool

type HeavyAdResolutionStatus added in v0.31.0

type HeavyAdResolutionStatus string

HeavyAdResolutionStatus

const (
	HeavyAdResolutionStatusNotSet         HeavyAdResolutionStatus = ""
	HeavyAdResolutionStatusHeavyAdBlocked HeavyAdResolutionStatus = "HeavyAdBlocked"
	HeavyAdResolutionStatusHeavyAdWarning HeavyAdResolutionStatus = "HeavyAdWarning"
)

HeavyAdResolutionStatus as enums.

func (HeavyAdResolutionStatus) String added in v0.31.0

func (e HeavyAdResolutionStatus) String() string

func (HeavyAdResolutionStatus) Valid added in v0.31.0

func (e HeavyAdResolutionStatus) Valid() bool

type InspectorIssue added in v0.26.0

type InspectorIssue struct {
	Code    InspectorIssueCode    `json:"code"`              // No description.
	Details InspectorIssueDetails `json:"details"`           // No description.
	IssueID *IssueID              `json:"issueId,omitempty"` // A unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue.
}

InspectorIssue An inspector issue reported from the back-end.

type InspectorIssueCode added in v0.26.0

type InspectorIssueCode string

InspectorIssueCode A unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.

const (
	InspectorIssueCodeNotSet                            InspectorIssueCode = ""
	InspectorIssueCodeCookieIssue                       InspectorIssueCode = "CookieIssue"
	InspectorIssueCodeMixedContentIssue                 InspectorIssueCode = "MixedContentIssue"
	InspectorIssueCodeBlockedByResponseIssue            InspectorIssueCode = "BlockedByResponseIssue"
	InspectorIssueCodeHeavyAdIssue                      InspectorIssueCode = "HeavyAdIssue"
	InspectorIssueCodeContentSecurityPolicyIssue        InspectorIssueCode = "ContentSecurityPolicyIssue"
	InspectorIssueCodeSharedArrayBufferIssue            InspectorIssueCode = "SharedArrayBufferIssue"
	InspectorIssueCodeLowTextContrastIssue              InspectorIssueCode = "LowTextContrastIssue"
	InspectorIssueCodeCORSIssue                         InspectorIssueCode = "CorsIssue"
	InspectorIssueCodeAttributionReportingIssue         InspectorIssueCode = "AttributionReportingIssue"
	InspectorIssueCodeQuirksModeIssue                   InspectorIssueCode = "QuirksModeIssue"
	InspectorIssueCodeNavigatorUserAgentIssue           InspectorIssueCode = "NavigatorUserAgentIssue"
	InspectorIssueCodeGenericIssue                      InspectorIssueCode = "GenericIssue"
	InspectorIssueCodeDeprecationIssue                  InspectorIssueCode = "DeprecationIssue"
	InspectorIssueCodeClientHintIssue                   InspectorIssueCode = "ClientHintIssue"
	InspectorIssueCodeFederatedAuthRequestIssue         InspectorIssueCode = "FederatedAuthRequestIssue"
	InspectorIssueCodeBounceTrackingIssue               InspectorIssueCode = "BounceTrackingIssue"
	InspectorIssueCodeCookieDeprecationMetadataIssue    InspectorIssueCode = "CookieDeprecationMetadataIssue"
	InspectorIssueCodeStylesheetLoadingIssue            InspectorIssueCode = "StylesheetLoadingIssue"
	InspectorIssueCodeFederatedAuthUserInfoRequestIssue InspectorIssueCode = "FederatedAuthUserInfoRequestIssue"
	InspectorIssueCodePropertyRuleIssue                 InspectorIssueCode = "PropertyRuleIssue"
	InspectorIssueCodeSharedDictionaryIssue             InspectorIssueCode = "SharedDictionaryIssue"
)

InspectorIssueCode as enums.

func (InspectorIssueCode) String added in v0.26.0

func (e InspectorIssueCode) String() string

func (InspectorIssueCode) Valid added in v0.26.0

func (e InspectorIssueCode) Valid() bool

type InspectorIssueDetails added in v0.26.0

type InspectorIssueDetails struct {
	CookieIssueDetails                *CookieIssueDetails                `json:"cookieIssueDetails,omitempty"`                // No description.
	MixedContentIssueDetails          *MixedContentIssueDetails          `json:"mixedContentIssueDetails,omitempty"`          // No description.
	BlockedByResponseIssueDetails     *BlockedByResponseIssueDetails     `json:"blockedByResponseIssueDetails,omitempty"`     // No description.
	HeavyAdIssueDetails               *HeavyAdIssueDetails               `json:"heavyAdIssueDetails,omitempty"`               // No description.
	ContentSecurityPolicyIssueDetails *ContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty"` // No description.
	SharedArrayBufferIssueDetails     *SharedArrayBufferIssueDetails     `json:"sharedArrayBufferIssueDetails,omitempty"`     // No description.
	LowTextContrastIssueDetails       *LowTextContrastIssueDetails       `json:"lowTextContrastIssueDetails,omitempty"`       // No description.
	CORSIssueDetails                  *CORSIssueDetails                  `json:"corsIssueDetails,omitempty"`                  // No description.
	AttributionReportingIssueDetails  *AttributionReportingIssueDetails  `json:"attributionReportingIssueDetails,omitempty"`  // No description.
	QuirksModeIssueDetails            *QuirksModeIssueDetails            `json:"quirksModeIssueDetails,omitempty"`            // No description.
	// NavigatorUserAgentIssueDetails is deprecated.
	//
	// Deprecated: This property should not be used.
	NavigatorUserAgentIssueDetails           *NavigatorUserAgentIssueDetails           `json:"navigatorUserAgentIssueDetails,omitempty"`
	GenericIssueDetails                      *GenericIssueDetails                      `json:"genericIssueDetails,omitempty"`                      // No description.
	DeprecationIssueDetails                  *DeprecationIssueDetails                  `json:"deprecationIssueDetails,omitempty"`                  // No description.
	ClientHintIssueDetails                   *ClientHintIssueDetails                   `json:"clientHintIssueDetails,omitempty"`                   // No description.
	FederatedAuthRequestIssueDetails         *FederatedAuthRequestIssueDetails         `json:"federatedAuthRequestIssueDetails,omitempty"`         // No description.
	BounceTrackingIssueDetails               *BounceTrackingIssueDetails               `json:"bounceTrackingIssueDetails,omitempty"`               // No description.
	CookieDeprecationMetadataIssueDetails    *CookieDeprecationMetadataIssueDetails    `json:"cookieDeprecationMetadataIssueDetails,omitempty"`    // No description.
	StylesheetLoadingIssueDetails            *StylesheetLoadingIssueDetails            `json:"stylesheetLoadingIssueDetails,omitempty"`            // No description.
	PropertyRuleIssueDetails                 *PropertyRuleIssueDetails                 `json:"propertyRuleIssueDetails,omitempty"`                 // No description.
	FederatedAuthUserInfoRequestIssueDetails *FederatedAuthUserInfoRequestIssueDetails `json:"federatedAuthUserInfoRequestIssueDetails,omitempty"` // No description.
	SharedDictionaryIssueDetails             *SharedDictionaryIssueDetails             `json:"sharedDictionaryIssueDetails,omitempty"`             // No description.
}

InspectorIssueDetails This struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type.

type IssueAddedClient added in v0.26.0

type IssueAddedClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*IssueAddedReply, error)
	rpcc.Stream
}

IssueAddedClient is a client for IssueAdded events.

type IssueAddedReply added in v0.26.0

type IssueAddedReply struct {
	Issue InspectorIssue `json:"issue"` // No description.
}

IssueAddedReply is the reply for IssueAdded events.

type IssueID added in v0.32.0

type IssueID string

IssueID A unique id for a DevTools inspector issue. Allows other entities (e.g. exceptions, CDP message, console messages, etc.) to reference an issue.

type LowTextContrastIssueDetails added in v0.31.0

type LowTextContrastIssueDetails struct {
	ViolatingNodeID       dom.BackendNodeID `json:"violatingNodeId"`       // No description.
	ViolatingNodeSelector string            `json:"violatingNodeSelector"` // No description.
	ContrastRatio         float64           `json:"contrastRatio"`         // No description.
	ThresholdAA           float64           `json:"thresholdAA"`           // No description.
	ThresholdAAA          float64           `json:"thresholdAAA"`          // No description.
	FontSize              string            `json:"fontSize"`              // No description.
	FontWeight            string            `json:"fontWeight"`            // No description.
}

LowTextContrastIssueDetails

type MixedContentIssueDetails added in v0.29.0

type MixedContentIssueDetails struct {
	ResourceType     MixedContentResourceType     `json:"resourceType,omitempty"` // The type of resource causing the mixed content issue (css, js, iframe, form,...). Marked as optional because it is mapped to from blink::mojom::RequestContextType, which will be replaced by network::mojom::RequestDestination
	ResolutionStatus MixedContentResolutionStatus `json:"resolutionStatus"`       // The way the mixed content issue is being resolved.
	InsecureURL      string                       `json:"insecureURL"`            // The unsafe http url causing the mixed content issue.
	MainResourceURL  string                       `json:"mainResourceURL"`        // The url responsible for the call to an unsafe url.
	Request          *AffectedRequest             `json:"request,omitempty"`      // The mixed content request. Does not always exist (e.g. for unsafe form submission urls).
	Frame            *AffectedFrame               `json:"frame,omitempty"`        // Optional because not every mixed content issue is necessarily linked to a frame.
}

MixedContentIssueDetails

type MixedContentResolutionStatus added in v0.29.0

type MixedContentResolutionStatus string

MixedContentResolutionStatus

const (
	MixedContentResolutionStatusNotSet                            MixedContentResolutionStatus = ""
	MixedContentResolutionStatusMixedContentBlocked               MixedContentResolutionStatus = "MixedContentBlocked"
	MixedContentResolutionStatusMixedContentAutomaticallyUpgraded MixedContentResolutionStatus = "MixedContentAutomaticallyUpgraded"
	MixedContentResolutionStatusMixedContentWarning               MixedContentResolutionStatus = "MixedContentWarning"
)

MixedContentResolutionStatus as enums.

func (MixedContentResolutionStatus) String added in v0.29.0

func (MixedContentResolutionStatus) Valid added in v0.29.0

type MixedContentResourceType added in v0.29.0

type MixedContentResourceType string

MixedContentResourceType

const (
	MixedContentResourceTypeNotSet           MixedContentResourceType = ""
	MixedContentResourceTypeAttributionSrc   MixedContentResourceType = "AttributionSrc"
	MixedContentResourceTypeAudio            MixedContentResourceType = "Audio"
	MixedContentResourceTypeBeacon           MixedContentResourceType = "Beacon"
	MixedContentResourceTypeCSPReport        MixedContentResourceType = "CSPReport"
	MixedContentResourceTypeDownload         MixedContentResourceType = "Download"
	MixedContentResourceTypeEventSource      MixedContentResourceType = "EventSource"
	MixedContentResourceTypeFavicon          MixedContentResourceType = "Favicon"
	MixedContentResourceTypeFont             MixedContentResourceType = "Font"
	MixedContentResourceTypeForm             MixedContentResourceType = "Form"
	MixedContentResourceTypeFrame            MixedContentResourceType = "Frame"
	MixedContentResourceTypeImage            MixedContentResourceType = "Image"
	MixedContentResourceTypeImport           MixedContentResourceType = "Import"
	MixedContentResourceTypeJSON             MixedContentResourceType = "JSON"
	MixedContentResourceTypeManifest         MixedContentResourceType = "Manifest"
	MixedContentResourceTypePing             MixedContentResourceType = "Ping"
	MixedContentResourceTypePluginData       MixedContentResourceType = "PluginData"
	MixedContentResourceTypePluginResource   MixedContentResourceType = "PluginResource"
	MixedContentResourceTypePrefetch         MixedContentResourceType = "Prefetch"
	MixedContentResourceTypeResource         MixedContentResourceType = "Resource"
	MixedContentResourceTypeScript           MixedContentResourceType = "Script"
	MixedContentResourceTypeServiceWorker    MixedContentResourceType = "ServiceWorker"
	MixedContentResourceTypeSharedWorker     MixedContentResourceType = "SharedWorker"
	MixedContentResourceTypeSpeculationRules MixedContentResourceType = "SpeculationRules"
	MixedContentResourceTypeStylesheet       MixedContentResourceType = "Stylesheet"
	MixedContentResourceTypeTrack            MixedContentResourceType = "Track"
	MixedContentResourceTypeVideo            MixedContentResourceType = "Video"
	MixedContentResourceTypeWorker           MixedContentResourceType = "Worker"
	MixedContentResourceTypeXMLHttpRequest   MixedContentResourceType = "XMLHttpRequest"
	MixedContentResourceTypeXSLT             MixedContentResourceType = "XSLT"
)

MixedContentResourceType as enums.

func (MixedContentResourceType) String added in v0.29.0

func (e MixedContentResourceType) String() string

func (MixedContentResourceType) Valid added in v0.29.0

func (e MixedContentResourceType) Valid() bool
type NavigatorUserAgentIssueDetails struct {
	URL      string              `json:"url"`                // No description.
	Location *SourceCodeLocation `json:"location,omitempty"` // No description.
}

NavigatorUserAgentIssueDetails

Deprecated:

type PropertyRuleIssueDetails added in v0.35.0

type PropertyRuleIssueDetails struct {
	SourceCodeLocation      SourceCodeLocation      `json:"sourceCodeLocation"`      // Source code position of the property rule.
	PropertyRuleIssueReason PropertyRuleIssueReason `json:"propertyRuleIssueReason"` // Reason why the property rule was discarded.
	PropertyValue           *string                 `json:"propertyValue,omitempty"` // The value of the property rule property that failed to parse
}

PropertyRuleIssueDetails This issue warns about errors in property rules that lead to property registrations being ignored.

type PropertyRuleIssueReason added in v0.35.0

type PropertyRuleIssueReason string

PropertyRuleIssueReason

const (
	PropertyRuleIssueReasonNotSet              PropertyRuleIssueReason = ""
	PropertyRuleIssueReasonInvalidSyntax       PropertyRuleIssueReason = "InvalidSyntax"
	PropertyRuleIssueReasonInvalidInitialValue PropertyRuleIssueReason = "InvalidInitialValue"
	PropertyRuleIssueReasonInvalidInherits     PropertyRuleIssueReason = "InvalidInherits"
	PropertyRuleIssueReasonInvalidName         PropertyRuleIssueReason = "InvalidName"
)

PropertyRuleIssueReason as enums.

func (PropertyRuleIssueReason) String added in v0.35.0

func (e PropertyRuleIssueReason) String() string

func (PropertyRuleIssueReason) Valid added in v0.35.0

func (e PropertyRuleIssueReason) Valid() bool

type QuirksModeIssueDetails added in v0.32.0

type QuirksModeIssueDetails struct {
	IsLimitedQuirksMode bool              `json:"isLimitedQuirksMode"` // If false, it means the document's mode is "quirks" instead of "limited-quirks".
	DocumentNodeID      dom.BackendNodeID `json:"documentNodeId"`      // No description.
	URL                 string            `json:"url"`                 // No description.
	FrameID             page.FrameID      `json:"frameId"`             // No description.
	LoaderID            network.LoaderID  `json:"loaderId"`            // No description.
}

QuirksModeIssueDetails Details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.

type SharedArrayBufferIssueDetails added in v0.31.0

type SharedArrayBufferIssueDetails struct {
	SourceCodeLocation SourceCodeLocation         `json:"sourceCodeLocation"` // No description.
	IsWarning          bool                       `json:"isWarning"`          // No description.
	Type               SharedArrayBufferIssueType `json:"type"`               // No description.
}

SharedArrayBufferIssueDetails Details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.

type SharedArrayBufferIssueType added in v0.31.0

type SharedArrayBufferIssueType string

SharedArrayBufferIssueType

const (
	SharedArrayBufferIssueTypeNotSet        SharedArrayBufferIssueType = ""
	SharedArrayBufferIssueTypeTransferIssue SharedArrayBufferIssueType = "TransferIssue"
	SharedArrayBufferIssueTypeCreationIssue SharedArrayBufferIssueType = "CreationIssue"
)

SharedArrayBufferIssueType as enums.

func (SharedArrayBufferIssueType) String added in v0.31.0

func (SharedArrayBufferIssueType) Valid added in v0.31.0

func (e SharedArrayBufferIssueType) Valid() bool

type SharedDictionaryError added in v0.35.0

type SharedDictionaryError string

SharedDictionaryError

const (
	SharedDictionaryErrorNotSet                                    SharedDictionaryError = ""
	SharedDictionaryErrorUseErrorCrossOriginNoCORSRequest          SharedDictionaryError = "UseErrorCrossOriginNoCorsRequest"
	SharedDictionaryErrorUseErrorDictionaryLoadFailure             SharedDictionaryError = "UseErrorDictionaryLoadFailure"
	SharedDictionaryErrorUseErrorMatchingDictionaryNotUsed         SharedDictionaryError = "UseErrorMatchingDictionaryNotUsed"
	SharedDictionaryErrorUseErrorUnexpectedContentDictionaryHeader SharedDictionaryError = "UseErrorUnexpectedContentDictionaryHeader"
	SharedDictionaryErrorWriteErrorCossOriginNoCORSRequest         SharedDictionaryError = "WriteErrorCossOriginNoCorsRequest"
	SharedDictionaryErrorWriteErrorDisallowedBySettings            SharedDictionaryError = "WriteErrorDisallowedBySettings"
	SharedDictionaryErrorWriteErrorExpiredResponse                 SharedDictionaryError = "WriteErrorExpiredResponse"
	SharedDictionaryErrorWriteErrorFeatureDisabled                 SharedDictionaryError = "WriteErrorFeatureDisabled"
	SharedDictionaryErrorWriteErrorInsufficientResources           SharedDictionaryError = "WriteErrorInsufficientResources"
	SharedDictionaryErrorWriteErrorInvalidMatchField               SharedDictionaryError = "WriteErrorInvalidMatchField"
	SharedDictionaryErrorWriteErrorInvalidStructuredHeader         SharedDictionaryError = "WriteErrorInvalidStructuredHeader"
	SharedDictionaryErrorWriteErrorNavigationRequest               SharedDictionaryError = "WriteErrorNavigationRequest"
	SharedDictionaryErrorWriteErrorNoMatchField                    SharedDictionaryError = "WriteErrorNoMatchField"
	SharedDictionaryErrorWriteErrorNonListMatchDestField           SharedDictionaryError = "WriteErrorNonListMatchDestField"
	SharedDictionaryErrorWriteErrorNonSecureContext                SharedDictionaryError = "WriteErrorNonSecureContext"
	SharedDictionaryErrorWriteErrorNonStringIDField                SharedDictionaryError = "WriteErrorNonStringIdField"
	SharedDictionaryErrorWriteErrorNonStringInMatchDestList        SharedDictionaryError = "WriteErrorNonStringInMatchDestList"
	SharedDictionaryErrorWriteErrorNonStringMatchField             SharedDictionaryError = "WriteErrorNonStringMatchField"
	SharedDictionaryErrorWriteErrorNonTokenTypeField               SharedDictionaryError = "WriteErrorNonTokenTypeField"
	SharedDictionaryErrorWriteErrorRequestAborted                  SharedDictionaryError = "WriteErrorRequestAborted"
	SharedDictionaryErrorWriteErrorShuttingDown                    SharedDictionaryError = "WriteErrorShuttingDown"
	SharedDictionaryErrorWriteErrorTooLongIDField                  SharedDictionaryError = "WriteErrorTooLongIdField"
	SharedDictionaryErrorWriteErrorUnsupportedType                 SharedDictionaryError = "WriteErrorUnsupportedType"
)

SharedDictionaryError as enums.

func (SharedDictionaryError) String added in v0.35.0

func (e SharedDictionaryError) String() string

func (SharedDictionaryError) Valid added in v0.35.0

func (e SharedDictionaryError) Valid() bool

type SharedDictionaryIssueDetails added in v0.35.0

type SharedDictionaryIssueDetails struct {
	SharedDictionaryError SharedDictionaryError `json:"sharedDictionaryError"` // No description.
	Request               AffectedRequest       `json:"request"`               // No description.
}

SharedDictionaryIssueDetails

type SourceCodeLocation added in v0.31.0

type SourceCodeLocation struct {
	ScriptID     *runtime.ScriptID `json:"scriptId,omitempty"` // No description.
	URL          string            `json:"url"`                // No description.
	LineNumber   int               `json:"lineNumber"`         // No description.
	ColumnNumber int               `json:"columnNumber"`       // No description.
}

SourceCodeLocation

type StyleSheetLoadingIssueReason added in v0.35.0

type StyleSheetLoadingIssueReason string

StyleSheetLoadingIssueReason

const (
	StyleSheetLoadingIssueReasonNotSet         StyleSheetLoadingIssueReason = ""
	StyleSheetLoadingIssueReasonLateImportRule StyleSheetLoadingIssueReason = "LateImportRule"
	StyleSheetLoadingIssueReasonRequestFailed  StyleSheetLoadingIssueReason = "RequestFailed"
)

StyleSheetLoadingIssueReason as enums.

func (StyleSheetLoadingIssueReason) String added in v0.35.0

func (StyleSheetLoadingIssueReason) Valid added in v0.35.0

type StylesheetLoadingIssueDetails added in v0.35.0

type StylesheetLoadingIssueDetails struct {
	SourceCodeLocation           SourceCodeLocation           `json:"sourceCodeLocation"`           // Source code position that referenced the failing stylesheet.
	StyleSheetLoadingIssueReason StyleSheetLoadingIssueReason `json:"styleSheetLoadingIssueReason"` // Reason why the stylesheet couldn't be loaded.
	FailedRequestInfo            *FailedRequestInfo           `json:"failedRequestInfo,omitempty"`  // Contains additional info when the failure was due to a request.
}

StylesheetLoadingIssueDetails This issue warns when a referenced stylesheet couldn't be loaded.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL