Documentation
¶
Overview ¶
Package audits provides the Chrome DevTools Protocol commands, types, and events for the Audits domain.
Audits domain allows investigation of page violations and possible improvements.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type AffectedCookie
- type AffectedFrame
- type AffectedRequest
- type BlockedByResponseIssueDetails
- type BlockedByResponseReason
- type BounceTrackingIssueDetails
- type CheckFormsIssuesParams
- type CheckFormsIssuesReturns
- type ClientHintIssueDetails
- type ClientHintIssueReason
- type ConnectionAllowlistError
- type ConnectionAllowlistIssueDetails
- type ContentSecurityPolicyIssueDetails
- type ContentSecurityPolicyViolationType
- type CookieDeprecationMetadataIssueDetails
- type CookieExclusionReason
- type CookieIssueDetails
- type CookieIssueInsight
- type CookieOperation
- type CookieWarningReason
- type CorsIssueDetails
- type DeprecationIssueDetails
- type DisableParams
- type ElementAccessibilityIssueDetails
- type ElementAccessibilityIssueReason
- type EmailVerificationRequestIssueDetails
- type EmailVerificationRequestIssueReason
- type EnableParams
- type EventIssueAdded
- type FailedRequestInfo
- type FederatedAuthRequestIssueDetails
- type FederatedAuthRequestIssueReason
- type FederatedAuthUserInfoRequestIssueDetails
- type FederatedAuthUserInfoRequestIssueReason
- type GenericIssueDetails
- type GenericIssueErrorType
- type GetEncodedResponseParams
- type GetEncodedResponseReturns
- type HeavyAdIssueDetails
- type HeavyAdReason
- type HeavyAdResolutionStatus
- type InsightType
- type InspectorIssue
- type InspectorIssueCode
- type InspectorIssueDetails
- type IssueID
- type LazyLoadImageIssueDetails
- type MixedContentIssueDetails
- type MixedContentResolutionStatus
- type MixedContentResourceType
- type PartitioningBlobURLInfo
- type PartitioningBlobURLIssueDetails
- type PerformanceIssueDetails
- type PerformanceIssueType
- type PermissionElementIssueDetails
- type PermissionElementIssueType
- type PropertyRuleIssueDetails
- type PropertyRuleIssueReason
- type QuirksModeIssueDetails
- type SRIMessageSignatureError
- type SRIMessageSignatureIssueDetails
- type SelectivePermissionsInterventionIssueDetails
- type SharedArrayBufferIssueDetails
- type SharedArrayBufferIssueType
- type SharedDictionaryError
- type SharedDictionaryIssueDetails
- type SourceCodeLocation
- type StyleSheetLoadingIssueReason
- type StylesheetLoadingIssueDetails
- type UnencodedDigestError
- type UnencodedDigestIssueDetails
- type UserReidentificationIssueDetails
- type UserReidentificationIssueType
- type WebInstallIssueDetails
- type WebInstallIssueReason
Constants ¶
const ( CommandGetEncodedResponse = "Audits.getEncodedResponse" CommandDisable = "Audits.disable" CommandEnable = "Audits.enable" CommandCheckFormsIssues = "Audits.checkFormsIssues" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffectedCookie ¶
type AffectedCookie struct {
Name string `json:"name"` // The following three properties uniquely identify a cookie
Path string `json:"path"`
Domain string `json:"domain"`
}
AffectedCookie information about a cookie that is affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedCookie
type AffectedFrame ¶
AffectedFrame information about the frame affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedFrame
type AffectedRequest ¶
type AffectedRequest struct {
RequestID network.RequestID `json:"requestId,omitempty,omitzero"` // The unique request id.
URL string `json:"url"`
}
AffectedRequest information about a request that is affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedRequest
type BlockedByResponseIssueDetails ¶
type BlockedByResponseIssueDetails struct {
Request *AffectedRequest `json:"request"`
ParentFrame *AffectedFrame `json:"parentFrame,omitempty,omitzero"`
BlockedFrame *AffectedFrame `json:"blockedFrame,omitempty,omitzero"`
Reason BlockedByResponseReason `json:"reason"`
}
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-BlockedByResponseIssueDetails
type BlockedByResponseReason ¶
type BlockedByResponseReason string
BlockedByResponseReason enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-BlockedByResponseReason
const ( BlockedByResponseReasonCoepFrameResourceNeedsCoepHeader BlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader" BlockedByResponseReasonCorpNotSameOrigin BlockedByResponseReason = "CorpNotSameOrigin" BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep" BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByDip" BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip" BlockedByResponseReasonCorpNotSameSite BlockedByResponseReason = "CorpNotSameSite" BlockedByResponseReasonSRIMessageSignatureMismatch BlockedByResponseReason = "SRIMessageSignatureMismatch" )
BlockedByResponseReason values.
func (BlockedByResponseReason) String ¶
func (t BlockedByResponseReason) String() string
String returns the BlockedByResponseReason as string value.
func (*BlockedByResponseReason) UnmarshalJSON ¶
func (t *BlockedByResponseReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type BounceTrackingIssueDetails ¶
type BounceTrackingIssueDetails struct {
TrackingSites []string `json:"trackingSites"`
}
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-BounceTrackingIssueDetails
type CheckFormsIssuesParams ¶
type CheckFormsIssuesParams struct{}
CheckFormsIssuesParams runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
func CheckFormsIssues ¶
func CheckFormsIssues() *CheckFormsIssuesParams
CheckFormsIssues runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-checkFormsIssues
func (*CheckFormsIssuesParams) Do ¶
func (p *CheckFormsIssuesParams) Do(ctx context.Context) (formIssues []*GenericIssueDetails, err error)
Do executes Audits.checkFormsIssues against the provided context.
returns:
formIssues
type CheckFormsIssuesReturns ¶
type CheckFormsIssuesReturns struct {
FormIssues []*GenericIssueDetails `json:"formIssues,omitempty,omitzero"`
}
CheckFormsIssuesReturns return values.
type ClientHintIssueDetails ¶
type ClientHintIssueDetails struct {
SourceCodeLocation *SourceCodeLocation `json:"sourceCodeLocation"`
ClientHintIssueReason ClientHintIssueReason `json:"clientHintIssueReason"`
}
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ClientHintIssueDetails
type ClientHintIssueReason ¶
type ClientHintIssueReason string
ClientHintIssueReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ClientHintIssueReason
const ( ClientHintIssueReasonMetaTagAllowListInvalidOrigin ClientHintIssueReason = "MetaTagAllowListInvalidOrigin" ClientHintIssueReasonMetaTagModifiedHTML ClientHintIssueReason = "MetaTagModifiedHTML" )
ClientHintIssueReason values.
func (ClientHintIssueReason) String ¶
func (t ClientHintIssueReason) String() string
String returns the ClientHintIssueReason as string value.
func (*ClientHintIssueReason) UnmarshalJSON ¶
func (t *ClientHintIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type ConnectionAllowlistError ¶
type ConnectionAllowlistError string
ConnectionAllowlistError [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ConnectionAllowlistError
const ( ConnectionAllowlistErrorInvalidHeader ConnectionAllowlistError = "InvalidHeader" ConnectionAllowlistErrorMoreThanOneList ConnectionAllowlistError = "MoreThanOneList" ConnectionAllowlistErrorItemNotInnerList ConnectionAllowlistError = "ItemNotInnerList" ConnectionAllowlistErrorInvalidAllowlistItemType ConnectionAllowlistError = "InvalidAllowlistItemType" ConnectionAllowlistErrorReportingEndpointNotToken ConnectionAllowlistError = "ReportingEndpointNotToken" ConnectionAllowlistErrorInvalidURLPattern ConnectionAllowlistError = "InvalidUrlPattern" ConnectionAllowlistErrorIFrameAttributeLoosensEmbeddingRequirement ConnectionAllowlistError = "IFrameAttributeLoosensEmbeddingRequirement" ConnectionAllowlistErrorInvalidAllowConnectionAllowlistFrom ConnectionAllowlistError = "InvalidAllowConnectionAllowlistFrom" ConnectionAllowlistErrorEmbeddingRequirementNotSatisfied ConnectionAllowlistError = "EmbeddingRequirementNotSatisfied" )
ConnectionAllowlistError values.
func (ConnectionAllowlistError) String ¶
func (t ConnectionAllowlistError) String() string
String returns the ConnectionAllowlistError as string value.
func (*ConnectionAllowlistError) UnmarshalJSON ¶
func (t *ConnectionAllowlistError) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type ConnectionAllowlistIssueDetails ¶
type ConnectionAllowlistIssueDetails struct {
Error ConnectionAllowlistError `json:"error"`
Request *AffectedRequest `json:"request"`
}
ConnectionAllowlistIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ConnectionAllowlistIssueDetails
type ContentSecurityPolicyIssueDetails ¶
type ContentSecurityPolicyIssueDetails struct {
BlockedURL string `json:"blockedURL,omitempty,omitzero"` // The url not included in allowed sources.
ViolatedDirective string `json:"violatedDirective"` // Specific directive that is violated, causing the CSP issue.
IsReportOnly bool `json:"isReportOnly"`
ContentSecurityPolicyViolationType ContentSecurityPolicyViolationType `json:"contentSecurityPolicyViolationType"`
FrameAncestor *AffectedFrame `json:"frameAncestor,omitempty,omitzero"`
SourceCodeLocation *SourceCodeLocation `json:"sourceCodeLocation,omitempty,omitzero"`
ViolatingNodeID cdp.BackendNodeID `json:"violatingNodeId,omitempty,omitzero"`
}
ContentSecurityPolicyIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ContentSecurityPolicyIssueDetails
type ContentSecurityPolicyViolationType ¶
type ContentSecurityPolicyViolationType string
ContentSecurityPolicyViolationType [no description].
const ( ContentSecurityPolicyViolationTypeKInlineViolation ContentSecurityPolicyViolationType = "kInlineViolation" ContentSecurityPolicyViolationTypeKEvalViolation ContentSecurityPolicyViolationType = "kEvalViolation" ContentSecurityPolicyViolationTypeKURLViolation ContentSecurityPolicyViolationType = "kURLViolation" ContentSecurityPolicyViolationTypeKSRIViolation ContentSecurityPolicyViolationType = "kSRIViolation" ContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation ContentSecurityPolicyViolationType = "kTrustedTypesSinkViolation" ContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation ContentSecurityPolicyViolationType = "kTrustedTypesPolicyViolation" ContentSecurityPolicyViolationTypeKWasmEvalViolation ContentSecurityPolicyViolationType = "kWasmEvalViolation" )
ContentSecurityPolicyViolationType values.
func (ContentSecurityPolicyViolationType) String ¶
func (t ContentSecurityPolicyViolationType) String() string
String returns the ContentSecurityPolicyViolationType as string value.
func (*ContentSecurityPolicyViolationType) UnmarshalJSON ¶
func (t *ContentSecurityPolicyViolationType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type CookieDeprecationMetadataIssueDetails ¶
type CookieDeprecationMetadataIssueDetails struct {
AllowedSites []string `json:"allowedSites"`
OptOutPercentage float64 `json:"optOutPercentage"`
IsOptOutTopLevel bool `json:"isOptOutTopLevel"`
Operation CookieOperation `json:"operation"`
}
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 ¶
type CookieExclusionReason string
CookieExclusionReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-CookieExclusionReason
const ( CookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax CookieExclusionReason = "ExcludeSameSiteUnspecifiedTreatedAsLax" CookieExclusionReasonExcludeSameSiteNoneInsecure CookieExclusionReason = "ExcludeSameSiteNoneInsecure" CookieExclusionReasonExcludeSameSiteLax CookieExclusionReason = "ExcludeSameSiteLax" CookieExclusionReasonExcludeSameSiteStrict CookieExclusionReason = "ExcludeSameSiteStrict" CookieExclusionReasonExcludeDomainNonASCII CookieExclusionReason = "ExcludeDomainNonASCII" CookieExclusionReasonExcludeThirdPartyPhaseout CookieExclusionReason = "ExcludeThirdPartyPhaseout" CookieExclusionReasonExcludePortMismatch CookieExclusionReason = "ExcludePortMismatch" CookieExclusionReasonExcludeSchemeMismatch CookieExclusionReason = "ExcludeSchemeMismatch" )
CookieExclusionReason values.
func (CookieExclusionReason) String ¶
func (t CookieExclusionReason) String() string
String returns the CookieExclusionReason as string value.
func (*CookieExclusionReason) UnmarshalJSON ¶
func (t *CookieExclusionReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type CookieIssueDetails ¶
type CookieIssueDetails struct {
Cookie *AffectedCookie `json:"cookie,omitempty,omitzero"` // 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,omitzero"`
CookieWarningReasons []CookieWarningReason `json:"cookieWarningReasons"`
CookieExclusionReasons []CookieExclusionReason `json:"cookieExclusionReasons"`
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,omitzero"`
CookieURL string `json:"cookieUrl,omitempty,omitzero"`
Request *AffectedRequest `json:"request,omitempty,omitzero"`
Insight *CookieIssueInsight `json:"insight,omitempty,omitzero"` // The recommended solution to the issue.
}
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-CookieIssueDetails
type CookieIssueInsight ¶
type CookieIssueInsight struct {
Type InsightType `json:"type"`
TableEntryURL string `json:"tableEntryUrl,omitempty,omitzero"` // Link to table entry in third-party cookie migration readiness list.
}
CookieIssueInsight information about the suggested solution to a cookie issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-CookieIssueInsight
type CookieOperation ¶
type CookieOperation string
CookieOperation [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-CookieOperation
const ( CookieOperationSetCookie CookieOperation = "SetCookie" CookieOperationReadCookie CookieOperation = "ReadCookie" )
CookieOperation values.
func (CookieOperation) String ¶
func (t CookieOperation) String() string
String returns the CookieOperation as string value.
func (*CookieOperation) UnmarshalJSON ¶
func (t *CookieOperation) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type CookieWarningReason ¶
type CookieWarningReason string
CookieWarningReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-CookieWarningReason
const ( 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" CookieWarningReasonWarnDeprecationTrialMetadata CookieWarningReason = "WarnDeprecationTrialMetadata" CookieWarningReasonWarnThirdPartyCookieHeuristic CookieWarningReason = "WarnThirdPartyCookieHeuristic" )
CookieWarningReason values.
func (CookieWarningReason) String ¶
func (t CookieWarningReason) String() string
String returns the CookieWarningReason as string value.
func (*CookieWarningReason) UnmarshalJSON ¶
func (t *CookieWarningReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type CorsIssueDetails ¶
type CorsIssueDetails struct {
CorsErrorStatus *network.CorsErrorStatus `json:"corsErrorStatus"`
IsWarning bool `json:"isWarning"`
Request *AffectedRequest `json:"request"`
Location *SourceCodeLocation `json:"location,omitempty,omitzero"`
InitiatorOrigin string `json:"initiatorOrigin,omitempty,omitzero"`
ResourceIPAddressSpace network.IPAddressSpace `json:"resourceIPAddressSpace,omitempty,omitzero"`
ClientSecurityState *network.ClientSecurityState `json:"clientSecurityState,omitempty,omitzero"`
}
CorsIssueDetails details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-CorsIssueDetails
type DeprecationIssueDetails ¶
type DeprecationIssueDetails struct {
AffectedFrame *AffectedFrame `json:"affectedFrame,omitempty,omitzero"`
SourceCodeLocation *SourceCodeLocation `json:"sourceCodeLocation"`
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-DeprecationIssueDetails
type DisableParams ¶
type DisableParams struct{}
DisableParams disables issues domain, prevents further issues from being reported to the client.
func Disable ¶
func Disable() *DisableParams
Disable disables issues domain, prevents further issues from being reported to the client.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-disable
type ElementAccessibilityIssueDetails ¶
type ElementAccessibilityIssueDetails struct {
NodeID cdp.BackendNodeID `json:"nodeId"`
ElementAccessibilityIssueReason ElementAccessibilityIssueReason `json:"elementAccessibilityIssueReason"`
HasDisallowedAttributes bool `json:"hasDisallowedAttributes"`
}
ElementAccessibilityIssueDetails this issue warns about errors in the select or summary element content model.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ElementAccessibilityIssueDetails
type ElementAccessibilityIssueReason ¶
type ElementAccessibilityIssueReason string
ElementAccessibilityIssueReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ElementAccessibilityIssueReason
const ( ElementAccessibilityIssueReasonDisallowedSelectChild ElementAccessibilityIssueReason = "DisallowedSelectChild" ElementAccessibilityIssueReasonDisallowedOptGroupChild ElementAccessibilityIssueReason = "DisallowedOptGroupChild" ElementAccessibilityIssueReasonNonPhrasingContentOptionChild ElementAccessibilityIssueReason = "NonPhrasingContentOptionChild" ElementAccessibilityIssueReasonInteractiveContentOptionChild ElementAccessibilityIssueReason = "InteractiveContentOptionChild" ElementAccessibilityIssueReasonInteractiveContentLegendChild ElementAccessibilityIssueReason = "InteractiveContentLegendChild" ElementAccessibilityIssueReasonInteractiveContentSummaryDescendant ElementAccessibilityIssueReason = "InteractiveContentSummaryDescendant" )
ElementAccessibilityIssueReason values.
func (ElementAccessibilityIssueReason) String ¶
func (t ElementAccessibilityIssueReason) String() string
String returns the ElementAccessibilityIssueReason as string value.
func (*ElementAccessibilityIssueReason) UnmarshalJSON ¶
func (t *ElementAccessibilityIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type EmailVerificationRequestIssueDetails ¶
type EmailVerificationRequestIssueDetails struct {
EmailVerificationRequestIssueReason EmailVerificationRequestIssueReason `json:"emailVerificationRequestIssueReason"`
}
EmailVerificationRequestIssueDetails [no description].
type EmailVerificationRequestIssueReason ¶
type EmailVerificationRequestIssueReason string
EmailVerificationRequestIssueReason represents the failure reason when an email verification request fails. Should be updated alongside EmailVerificationRequestResult in third_party/blink/public/mojom/devtools/inspector_issue.mojom.
const ( EmailVerificationRequestIssueReasonInvalidEmail EmailVerificationRequestIssueReason = "InvalidEmail" EmailVerificationRequestIssueReasonDNSFetchFailed EmailVerificationRequestIssueReason = "DnsFetchFailed" EmailVerificationRequestIssueReasonDNSInvalidRecord EmailVerificationRequestIssueReason = "DnsInvalidRecord" EmailVerificationRequestIssueReasonWellKnownHTTPNotFound EmailVerificationRequestIssueReason = "WellKnownHttpNotFound" EmailVerificationRequestIssueReasonWellKnownNoResponse EmailVerificationRequestIssueReason = "WellKnownNoResponse" EmailVerificationRequestIssueReasonWellKnownInvalidResponse EmailVerificationRequestIssueReason = "WellKnownInvalidResponse" EmailVerificationRequestIssueReasonWellKnownListEmpty EmailVerificationRequestIssueReason = "WellKnownListEmpty" EmailVerificationRequestIssueReasonWellKnownInvalidContentType EmailVerificationRequestIssueReason = "WellKnownInvalidContentType" EmailVerificationRequestIssueReasonWellKnownMissingIssuanceEndpoint EmailVerificationRequestIssueReason = "WellKnownMissingIssuanceEndpoint" EmailVerificationRequestIssueReasonWellKnownIssuanceEndpointCrossOrigin EmailVerificationRequestIssueReason = "WellKnownIssuanceEndpointCrossOrigin" EmailVerificationRequestIssueReasonWellKnownUnsupportedSigningAlgorithm EmailVerificationRequestIssueReason = "WellKnownUnsupportedSigningAlgorithm" EmailVerificationRequestIssueReasonTokenHTTPNotFound EmailVerificationRequestIssueReason = "TokenHttpNotFound" EmailVerificationRequestIssueReasonTokenNoResponse EmailVerificationRequestIssueReason = "TokenNoResponse" EmailVerificationRequestIssueReasonTokenInvalidResponse EmailVerificationRequestIssueReason = "TokenInvalidResponse" EmailVerificationRequestIssueReasonTokenInvalidContentType EmailVerificationRequestIssueReason = "TokenInvalidContentType" EmailVerificationRequestIssueReasonTokenMalformedSdJwt EmailVerificationRequestIssueReason = "TokenMalformedSdJwt" EmailVerificationRequestIssueReasonTokenInvalidSdJwt EmailVerificationRequestIssueReason = "TokenInvalidSdJwt" EmailVerificationRequestIssueReasonKeyBindingSigningFailed EmailVerificationRequestIssueReason = "KeyBindingSigningFailed" EmailVerificationRequestIssueReasonRpOriginIsOpaque EmailVerificationRequestIssueReason = "RpOriginIsOpaque" EmailVerificationRequestIssueReasonWellKnownMissingAccountsEndpoint EmailVerificationRequestIssueReason = "WellKnownMissingAccountsEndpoint" EmailVerificationRequestIssueReasonUserLoggedOut EmailVerificationRequestIssueReason = "UserLoggedOut" EmailVerificationRequestIssueReasonWellKnownAccountsEndpointCrossOrigin EmailVerificationRequestIssueReason = "WellKnownAccountsEndpointCrossOrigin" EmailVerificationRequestIssueReasonAccountsHTTPNotFound EmailVerificationRequestIssueReason = "AccountsHttpNotFound" EmailVerificationRequestIssueReasonAccountsNoResponse EmailVerificationRequestIssueReason = "AccountsNoResponse" EmailVerificationRequestIssueReasonAccountsInvalidResponse EmailVerificationRequestIssueReason = "AccountsInvalidResponse" EmailVerificationRequestIssueReasonAccountsInvalidContentType EmailVerificationRequestIssueReason = "AccountsInvalidContentType" EmailVerificationRequestIssueReasonAccountsEmptyList EmailVerificationRequestIssueReason = "AccountsEmptyList" EmailVerificationRequestIssueReasonEmailVerificationWellKnownHTTPNotFound EmailVerificationRequestIssueReason = "EmailVerificationWellKnownHttpNotFound" EmailVerificationRequestIssueReasonEmailVerificationWellKnownNoResponse EmailVerificationRequestIssueReason = "EmailVerificationWellKnownNoResponse" EmailVerificationRequestIssueReasonEmailVerificationWellKnownInvalidResponse EmailVerificationRequestIssueReason = "EmailVerificationWellKnownInvalidResponse" EmailVerificationRequestIssueReasonEmailVerificationWellKnownInvalidContentType EmailVerificationRequestIssueReason = "EmailVerificationWellKnownInvalidContentType" EmailVerificationRequestIssueReasonJwksHTTPNotFound EmailVerificationRequestIssueReason = "JwksHttpNotFound" EmailVerificationRequestIssueReasonJwksInvalidResponse EmailVerificationRequestIssueReason = "JwksInvalidResponse" EmailVerificationRequestIssueReasonTokenVerificationSdJwtUnsupportedHeaderAlg EmailVerificationRequestIssueReason = "TokenVerificationSdJwtUnsupportedHeaderAlg" EmailVerificationRequestIssueReasonTokenVerificationSdJwtInvalidTyp EmailVerificationRequestIssueReason = "TokenVerificationSdJwtInvalidTyp" EmailVerificationRequestIssueReasonTokenVerificationSdJwtMissingIss EmailVerificationRequestIssueReason = "TokenVerificationSdJwtMissingIss" EmailVerificationRequestIssueReasonTokenVerificationSdJwtMissingIat EmailVerificationRequestIssueReason = "TokenVerificationSdJwtMissingIat" EmailVerificationRequestIssueReasonTokenVerificationSdJwtMissingCnf EmailVerificationRequestIssueReason = "TokenVerificationSdJwtMissingCnf" EmailVerificationRequestIssueReasonTokenVerificationSdJwtMissingEmail EmailVerificationRequestIssueReason = "TokenVerificationSdJwtMissingEmail" EmailVerificationRequestIssueReasonTokenVerificationSdJwtInvalidIssuedAt EmailVerificationRequestIssueReason = "TokenVerificationSdJwtInvalidIssuedAt" EmailVerificationRequestIssueReasonTokenVerificationSdJwtInvalidIssuer EmailVerificationRequestIssueReason = "TokenVerificationSdJwtInvalidIssuer" EmailVerificationRequestIssueReasonTokenVerificationSdJwtJwksMissingKeys EmailVerificationRequestIssueReason = "TokenVerificationSdJwtJwksMissingKeys" EmailVerificationRequestIssueReasonTokenVerificationSdJwtSignatureFailed EmailVerificationRequestIssueReason = "TokenVerificationSdJwtSignatureFailed" EmailVerificationRequestIssueReasonTokenVerificationSdJwtInvalidEmailVerified EmailVerificationRequestIssueReason = "TokenVerificationSdJwtInvalidEmailVerified" EmailVerificationRequestIssueReasonTokenVerificationSdJwtInvalidEmail EmailVerificationRequestIssueReason = "TokenVerificationSdJwtInvalidEmail" EmailVerificationRequestIssueReasonTokenVerificationSdJwtInvalidHolderKey EmailVerificationRequestIssueReason = "TokenVerificationSdJwtInvalidHolderKey" EmailVerificationRequestIssueReasonTokenVerificationKbInvalidTyp EmailVerificationRequestIssueReason = "TokenVerificationKbInvalidTyp" EmailVerificationRequestIssueReasonTokenVerificationKbMissingAud EmailVerificationRequestIssueReason = "TokenVerificationKbMissingAud" EmailVerificationRequestIssueReasonTokenVerificationKbMissingNonce EmailVerificationRequestIssueReason = "TokenVerificationKbMissingNonce" EmailVerificationRequestIssueReasonTokenVerificationKbMissingIat EmailVerificationRequestIssueReason = "TokenVerificationKbMissingIat" EmailVerificationRequestIssueReasonTokenVerificationKbMissingSdHash EmailVerificationRequestIssueReason = "TokenVerificationKbMissingSdHash" EmailVerificationRequestIssueReasonTokenVerificationKbInvalidIssuedAt EmailVerificationRequestIssueReason = "TokenVerificationKbInvalidIssuedAt" EmailVerificationRequestIssueReasonTokenVerificationKbInvalidAudience EmailVerificationRequestIssueReason = "TokenVerificationKbInvalidAudience" EmailVerificationRequestIssueReasonTokenVerificationKbInvalidNonce EmailVerificationRequestIssueReason = "TokenVerificationKbInvalidNonce" EmailVerificationRequestIssueReasonTokenVerificationKbInvalidSdHash EmailVerificationRequestIssueReason = "TokenVerificationKbInvalidSdHash" EmailVerificationRequestIssueReasonTokenVerificationKbMissingCnf EmailVerificationRequestIssueReason = "TokenVerificationKbMissingCnf" EmailVerificationRequestIssueReasonTokenVerificationKbSignatureFailed EmailVerificationRequestIssueReason = "TokenVerificationKbSignatureFailed" EmailVerificationRequestIssueReasonCrossOriginIframeNotSupported EmailVerificationRequestIssueReason = "CrossOriginIframeNotSupported" )
EmailVerificationRequestIssueReason values.
func (EmailVerificationRequestIssueReason) String ¶
func (t EmailVerificationRequestIssueReason) String() string
String returns the EmailVerificationRequestIssueReason as string value.
func (*EmailVerificationRequestIssueReason) UnmarshalJSON ¶
func (t *EmailVerificationRequestIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type EnableParams ¶
type EnableParams struct{}
EnableParams enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.
func Enable ¶
func Enable() *EnableParams
Enable enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-enable
type EventIssueAdded ¶
type EventIssueAdded struct {
Issue *InspectorIssue `json:"issue"`
}
EventIssueAdded [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#event-issueAdded
type FailedRequestInfo ¶
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,omitzero"`
}
FailedRequestInfo [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-FailedRequestInfo
type FederatedAuthRequestIssueDetails ¶
type FederatedAuthRequestIssueDetails struct {
FederatedAuthRequestIssueReason FederatedAuthRequestIssueReason `json:"federatedAuthRequestIssueReason"`
}
FederatedAuthRequestIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-FederatedAuthRequestIssueDetails
type FederatedAuthRequestIssueReason ¶
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-FederatedAuthRequestIssueReason
const ( FederatedAuthRequestIssueReasonShouldEmbargo FederatedAuthRequestIssueReason = "ShouldEmbargo" FederatedAuthRequestIssueReasonTooManyRequests FederatedAuthRequestIssueReason = "TooManyRequests" FederatedAuthRequestIssueReasonWellKnownHTTPNotFound FederatedAuthRequestIssueReason = "WellKnownHttpNotFound" FederatedAuthRequestIssueReasonWellKnownNoResponse FederatedAuthRequestIssueReason = "WellKnownNoResponse" FederatedAuthRequestIssueReasonWellKnownBlockedByConnectionAllowlist FederatedAuthRequestIssueReason = "WellKnownBlockedByConnectionAllowlist" FederatedAuthRequestIssueReasonWellKnownInvalidResponse FederatedAuthRequestIssueReason = "WellKnownInvalidResponse" FederatedAuthRequestIssueReasonWellKnownListEmpty FederatedAuthRequestIssueReason = "WellKnownListEmpty" FederatedAuthRequestIssueReasonWellKnownInvalidContentType FederatedAuthRequestIssueReason = "WellKnownInvalidContentType" FederatedAuthRequestIssueReasonConfigNotInWellKnown FederatedAuthRequestIssueReason = "ConfigNotInWellKnown" FederatedAuthRequestIssueReasonWellKnownTooBig FederatedAuthRequestIssueReason = "WellKnownTooBig" FederatedAuthRequestIssueReasonConfigHTTPNotFound FederatedAuthRequestIssueReason = "ConfigHttpNotFound" FederatedAuthRequestIssueReasonConfigNoResponse FederatedAuthRequestIssueReason = "ConfigNoResponse" FederatedAuthRequestIssueReasonConfigBlockedByConnectionAllowlist FederatedAuthRequestIssueReason = "ConfigBlockedByConnectionAllowlist" FederatedAuthRequestIssueReasonConfigInvalidResponse FederatedAuthRequestIssueReason = "ConfigInvalidResponse" FederatedAuthRequestIssueReasonConfigInvalidContentType FederatedAuthRequestIssueReason = "ConfigInvalidContentType" FederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy FederatedAuthRequestIssueReason = "IdpNotPotentiallyTrustworthy" FederatedAuthRequestIssueReasonDisabledInSettings FederatedAuthRequestIssueReason = "DisabledInSettings" FederatedAuthRequestIssueReasonDisabledInFlags FederatedAuthRequestIssueReason = "DisabledInFlags" FederatedAuthRequestIssueReasonErrorFetchingSignin FederatedAuthRequestIssueReason = "ErrorFetchingSignin" FederatedAuthRequestIssueReasonInvalidSigninResponse FederatedAuthRequestIssueReason = "InvalidSigninResponse" FederatedAuthRequestIssueReasonAccountsHTTPNotFound FederatedAuthRequestIssueReason = "AccountsHttpNotFound" FederatedAuthRequestIssueReasonAccountsNoResponse FederatedAuthRequestIssueReason = "AccountsNoResponse" FederatedAuthRequestIssueReasonAccountsBlockedByConnectionAllowlist FederatedAuthRequestIssueReason = "AccountsBlockedByConnectionAllowlist" FederatedAuthRequestIssueReasonAccountsInvalidResponse FederatedAuthRequestIssueReason = "AccountsInvalidResponse" FederatedAuthRequestIssueReasonAccountsListEmpty FederatedAuthRequestIssueReason = "AccountsListEmpty" FederatedAuthRequestIssueReasonAccountsInvalidContentType FederatedAuthRequestIssueReason = "AccountsInvalidContentType" FederatedAuthRequestIssueReasonIDTokenHTTPNotFound FederatedAuthRequestIssueReason = "IdTokenHttpNotFound" FederatedAuthRequestIssueReasonIDTokenNoResponse FederatedAuthRequestIssueReason = "IdTokenNoResponse" FederatedAuthRequestIssueReasonIDTokenBlockedByConnectionAllowlist FederatedAuthRequestIssueReason = "IdTokenBlockedByConnectionAllowlist" 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" FederatedAuthRequestIssueReasonNotSignedInWithIdp FederatedAuthRequestIssueReason = "NotSignedInWithIdp" FederatedAuthRequestIssueReasonMissingTransientUserActivation FederatedAuthRequestIssueReason = "MissingTransientUserActivation" FederatedAuthRequestIssueReasonReplacedByActiveMode FederatedAuthRequestIssueReason = "ReplacedByActiveMode" FederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque FederatedAuthRequestIssueReason = "RelyingPartyOriginIsOpaque" FederatedAuthRequestIssueReasonTypeNotMatching FederatedAuthRequestIssueReason = "TypeNotMatching" FederatedAuthRequestIssueReasonUIDismissedNoEmbargo FederatedAuthRequestIssueReason = "UiDismissedNoEmbargo" FederatedAuthRequestIssueReasonCorsError FederatedAuthRequestIssueReason = "CorsError" FederatedAuthRequestIssueReasonSuppressedBySegmentationPlatform FederatedAuthRequestIssueReason = "SuppressedBySegmentationPlatform" FederatedAuthRequestIssueReasonPopupBlockedByConnectionAllowlist FederatedAuthRequestIssueReason = "PopupBlockedByConnectionAllowlist" )
FederatedAuthRequestIssueReason values.
func (FederatedAuthRequestIssueReason) String ¶
func (t FederatedAuthRequestIssueReason) String() string
String returns the FederatedAuthRequestIssueReason as string value.
func (*FederatedAuthRequestIssueReason) UnmarshalJSON ¶
func (t *FederatedAuthRequestIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type FederatedAuthUserInfoRequestIssueDetails ¶
type FederatedAuthUserInfoRequestIssueDetails struct {
FederatedAuthUserInfoRequestIssueReason FederatedAuthUserInfoRequestIssueReason `json:"federatedAuthUserInfoRequestIssueReason"`
}
FederatedAuthUserInfoRequestIssueDetails [no description].
type FederatedAuthUserInfoRequestIssueReason ¶
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 ( 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 values.
func (FederatedAuthUserInfoRequestIssueReason) String ¶
func (t FederatedAuthUserInfoRequestIssueReason) String() string
String returns the FederatedAuthUserInfoRequestIssueReason as string value.
func (*FederatedAuthUserInfoRequestIssueReason) UnmarshalJSON ¶
func (t *FederatedAuthUserInfoRequestIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type GenericIssueDetails ¶
type GenericIssueDetails struct {
ErrorType GenericIssueErrorType `json:"errorType"` // Issues with the same errorType are aggregated in the frontend.
FrameID cdp.FrameID `json:"frameId,omitempty,omitzero"`
ViolatingNodeID cdp.BackendNodeID `json:"violatingNodeId,omitempty,omitzero"`
ViolatingNodeAttribute string `json:"violatingNodeAttribute,omitempty,omitzero"`
Request *AffectedRequest `json:"request,omitempty,omitzero"`
}
GenericIssueDetails depending on the concrete errorType, different properties are set.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-GenericIssueDetails
type GenericIssueErrorType ¶
type GenericIssueErrorType string
GenericIssueErrorType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-GenericIssueErrorType
const ( GenericIssueErrorTypeFormLabelForNameError GenericIssueErrorType = "FormLabelForNameError" GenericIssueErrorTypeFormDuplicateIDForInputError GenericIssueErrorType = "FormDuplicateIdForInputError" GenericIssueErrorTypeFormInputWithNoLabelError GenericIssueErrorType = "FormInputWithNoLabelError" GenericIssueErrorTypeFormAutocompleteAttributeEmptyError GenericIssueErrorType = "FormAutocompleteAttributeEmptyError" GenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError GenericIssueErrorType = "FormEmptyIdAndNameAttributesForInputError" GenericIssueErrorTypeFormAriaLabelledByToNonExistingIDError GenericIssueErrorType = "FormAriaLabelledByToNonExistingIdError" GenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError GenericIssueErrorType = "FormInputAssignedAutocompleteValueToIdOrNameAttributeError" GenericIssueErrorTypeFormLabelHasNeitherForNorNestedInputError GenericIssueErrorType = "FormLabelHasNeitherForNorNestedInputError" GenericIssueErrorTypeFormLabelForMatchesNonExistingIDError GenericIssueErrorType = "FormLabelForMatchesNonExistingIdError" GenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError GenericIssueErrorType = "FormInputHasWrongButWellIntendedAutocompleteValueError" GenericIssueErrorTypeResponseWasBlockedByORB GenericIssueErrorType = "ResponseWasBlockedByORB" GenericIssueErrorTypeAutofillAndManualTextPolicyControlledFeaturesInfo GenericIssueErrorType = "AutofillAndManualTextPolicyControlledFeaturesInfo" GenericIssueErrorTypeAutofillPolicyControlledFeatureInfo GenericIssueErrorType = "AutofillPolicyControlledFeatureInfo" GenericIssueErrorTypeManualTextPolicyControlledFeatureInfo GenericIssueErrorType = "ManualTextPolicyControlledFeatureInfo" GenericIssueErrorTypeFormModelContextParameterMissingTitleAndDescription GenericIssueErrorType = "FormModelContextParameterMissingTitleAndDescription" GenericIssueErrorTypeFormModelContextMissingToolName GenericIssueErrorType = "FormModelContextMissingToolName" GenericIssueErrorTypeFormModelContextMissingToolDescription GenericIssueErrorType = "FormModelContextMissingToolDescription" GenericIssueErrorTypeFormModelContextRequiredParameterMissingName GenericIssueErrorType = "FormModelContextRequiredParameterMissingName" GenericIssueErrorTypeFormModelContextParameterMissingName GenericIssueErrorType = "FormModelContextParameterMissingName" )
GenericIssueErrorType values.
func (GenericIssueErrorType) String ¶
func (t GenericIssueErrorType) String() string
String returns the GenericIssueErrorType as string value.
func (*GenericIssueErrorType) UnmarshalJSON ¶
func (t *GenericIssueErrorType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type GetEncodedResponseParams ¶
type GetEncodedResponseParams struct {
RequestID network.RequestID `json:"requestId"` // Identifier of the network request to get content for.
Encoding string `json:"encoding"` // The encoding to use.
Quality float64 `json:"quality,omitempty,omitzero"` // The quality of the encoding (0-1). (defaults to 1)
SizeOnly bool `json:"sizeOnly"` // Whether to only return the size information (defaults to false).
}
GetEncodedResponseParams returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
func GetEncodedResponse ¶
func GetEncodedResponse(requestID network.RequestID, encoding string) *GetEncodedResponseParams
GetEncodedResponse returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-getEncodedResponse
parameters:
requestID - Identifier of the network request to get content for. encoding - The encoding to use.
func (*GetEncodedResponseParams) Do ¶
func (p *GetEncodedResponseParams) Do(ctx context.Context) (body []byte, originalSize int64, encodedSize int64, err error)
Do executes Audits.getEncodedResponse against the provided context.
returns:
body - The encoded body as a base64 string. Omitted if sizeOnly is true. originalSize - Size before re-encoding. encodedSize - Size after re-encoding.
func (GetEncodedResponseParams) WithQuality ¶
func (p GetEncodedResponseParams) WithQuality(quality float64) *GetEncodedResponseParams
WithQuality the quality of the encoding (0-1). (defaults to 1).
func (GetEncodedResponseParams) WithSizeOnly ¶
func (p GetEncodedResponseParams) WithSizeOnly(sizeOnly bool) *GetEncodedResponseParams
WithSizeOnly whether to only return the size information (defaults to false).
type GetEncodedResponseReturns ¶
type GetEncodedResponseReturns struct {
Body string `json:"body,omitempty,omitzero"` // The encoded body as a base64 string. Omitted if sizeOnly is true.
OriginalSize int64 `json:"originalSize,omitempty,omitzero"` // Size before re-encoding.
EncodedSize int64 `json:"encodedSize,omitempty,omitzero"` // Size after re-encoding.
}
GetEncodedResponseReturns return values.
type HeavyAdIssueDetails ¶
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 [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-HeavyAdIssueDetails
type HeavyAdReason ¶
type HeavyAdReason string
HeavyAdReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-HeavyAdReason
const ( HeavyAdReasonNetworkTotalLimit HeavyAdReason = "NetworkTotalLimit" HeavyAdReasonCPUTotalLimit HeavyAdReason = "CpuTotalLimit" HeavyAdReasonCPUPeakLimit HeavyAdReason = "CpuPeakLimit" )
HeavyAdReason values.
func (HeavyAdReason) String ¶
func (t HeavyAdReason) String() string
String returns the HeavyAdReason as string value.
func (*HeavyAdReason) UnmarshalJSON ¶
func (t *HeavyAdReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type HeavyAdResolutionStatus ¶
type HeavyAdResolutionStatus string
HeavyAdResolutionStatus [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-HeavyAdResolutionStatus
const ( HeavyAdResolutionStatusHeavyAdBlocked HeavyAdResolutionStatus = "HeavyAdBlocked" HeavyAdResolutionStatusHeavyAdWarning HeavyAdResolutionStatus = "HeavyAdWarning" )
HeavyAdResolutionStatus values.
func (HeavyAdResolutionStatus) String ¶
func (t HeavyAdResolutionStatus) String() string
String returns the HeavyAdResolutionStatus as string value.
func (*HeavyAdResolutionStatus) UnmarshalJSON ¶
func (t *HeavyAdResolutionStatus) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type InsightType ¶
type InsightType string
InsightType represents the category of insight that a cookie issue falls under.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-InsightType
const ( InsightTypeGitHubResource InsightType = "GitHubResource" InsightTypeGracePeriod InsightType = "GracePeriod" InsightTypeHeuristics InsightType = "Heuristics" )
InsightType values.
func (InsightType) String ¶
func (t InsightType) String() string
String returns the InsightType as string value.
func (*InsightType) UnmarshalJSON ¶
func (t *InsightType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type InspectorIssue ¶
type InspectorIssue struct {
Code InspectorIssueCode `json:"code"`
Details *InspectorIssueDetails `json:"details"`
IssueID IssueID `json:"issueId,omitempty,omitzero"` // 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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-InspectorIssue
type InspectorIssueCode ¶
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-InspectorIssueCode
const ( InspectorIssueCodeCookieIssue InspectorIssueCode = "CookieIssue" InspectorIssueCodeMixedContentIssue InspectorIssueCode = "MixedContentIssue" InspectorIssueCodeBlockedByResponseIssue InspectorIssueCode = "BlockedByResponseIssue" InspectorIssueCodeHeavyAdIssue InspectorIssueCode = "HeavyAdIssue" InspectorIssueCodeContentSecurityPolicyIssue InspectorIssueCode = "ContentSecurityPolicyIssue" InspectorIssueCodeCorsIssue InspectorIssueCode = "CorsIssue" InspectorIssueCodeQuirksModeIssue InspectorIssueCode = "QuirksModeIssue" InspectorIssueCodePartitioningBlobURLIssue InspectorIssueCode = "PartitioningBlobURLIssue" 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" InspectorIssueCodeElementAccessibilityIssue InspectorIssueCode = "ElementAccessibilityIssue" InspectorIssueCodeSRIMessageSignatureIssue InspectorIssueCode = "SRIMessageSignatureIssue" InspectorIssueCodeUnencodedDigestIssue InspectorIssueCode = "UnencodedDigestIssue" InspectorIssueCodeConnectionAllowlistIssue InspectorIssueCode = "ConnectionAllowlistIssue" InspectorIssueCodeUserReidentificationIssue InspectorIssueCode = "UserReidentificationIssue" InspectorIssueCodePermissionElementIssue InspectorIssueCode = "PermissionElementIssue" InspectorIssueCodePerformanceIssue InspectorIssueCode = "PerformanceIssue" InspectorIssueCodeSelectivePermissionsInterventionIssue InspectorIssueCode = "SelectivePermissionsInterventionIssue" InspectorIssueCodeEmailVerificationRequestIssue InspectorIssueCode = "EmailVerificationRequestIssue" InspectorIssueCodeLazyLoadImageIssue InspectorIssueCode = "LazyLoadImageIssue" InspectorIssueCodeWebInstallIssue InspectorIssueCode = "WebInstallIssue" )
InspectorIssueCode values.
func (InspectorIssueCode) String ¶
func (t InspectorIssueCode) String() string
String returns the InspectorIssueCode as string value.
func (*InspectorIssueCode) UnmarshalJSON ¶
func (t *InspectorIssueCode) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type InspectorIssueDetails ¶
type InspectorIssueDetails struct {
CookieIssueDetails *CookieIssueDetails `json:"cookieIssueDetails,omitempty,omitzero"`
MixedContentIssueDetails *MixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty,omitzero"`
BlockedByResponseIssueDetails *BlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty,omitzero"`
HeavyAdIssueDetails *HeavyAdIssueDetails `json:"heavyAdIssueDetails,omitempty,omitzero"`
ContentSecurityPolicyIssueDetails *ContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty,omitzero"`
CorsIssueDetails *CorsIssueDetails `json:"corsIssueDetails,omitempty,omitzero"`
QuirksModeIssueDetails *QuirksModeIssueDetails `json:"quirksModeIssueDetails,omitempty,omitzero"`
PartitioningBlobURLIssueDetails *PartitioningBlobURLIssueDetails `json:"partitioningBlobURLIssueDetails,omitempty,omitzero"`
GenericIssueDetails *GenericIssueDetails `json:"genericIssueDetails,omitempty,omitzero"`
DeprecationIssueDetails *DeprecationIssueDetails `json:"deprecationIssueDetails,omitempty,omitzero"`
ClientHintIssueDetails *ClientHintIssueDetails `json:"clientHintIssueDetails,omitempty,omitzero"`
FederatedAuthRequestIssueDetails *FederatedAuthRequestIssueDetails `json:"federatedAuthRequestIssueDetails,omitempty,omitzero"`
BounceTrackingIssueDetails *BounceTrackingIssueDetails `json:"bounceTrackingIssueDetails,omitempty,omitzero"`
CookieDeprecationMetadataIssueDetails *CookieDeprecationMetadataIssueDetails `json:"cookieDeprecationMetadataIssueDetails,omitempty,omitzero"`
StylesheetLoadingIssueDetails *StylesheetLoadingIssueDetails `json:"stylesheetLoadingIssueDetails,omitempty,omitzero"`
PropertyRuleIssueDetails *PropertyRuleIssueDetails `json:"propertyRuleIssueDetails,omitempty,omitzero"`
FederatedAuthUserInfoRequestIssueDetails *FederatedAuthUserInfoRequestIssueDetails `json:"federatedAuthUserInfoRequestIssueDetails,omitempty,omitzero"`
ElementAccessibilityIssueDetails *ElementAccessibilityIssueDetails `json:"elementAccessibilityIssueDetails,omitempty,omitzero"`
SriMessageSignatureIssueDetails *SRIMessageSignatureIssueDetails `json:"sriMessageSignatureIssueDetails,omitempty,omitzero"`
UnencodedDigestIssueDetails *UnencodedDigestIssueDetails `json:"unencodedDigestIssueDetails,omitempty,omitzero"`
ConnectionAllowlistIssueDetails *ConnectionAllowlistIssueDetails `json:"connectionAllowlistIssueDetails,omitempty,omitzero"`
UserReidentificationIssueDetails *UserReidentificationIssueDetails `json:"userReidentificationIssueDetails,omitempty,omitzero"`
PermissionElementIssueDetails *PermissionElementIssueDetails `json:"permissionElementIssueDetails,omitempty,omitzero"`
PerformanceIssueDetails *PerformanceIssueDetails `json:"performanceIssueDetails,omitempty,omitzero"`
SelectivePermissionsInterventionIssueDetails *SelectivePermissionsInterventionIssueDetails `json:"selectivePermissionsInterventionIssueDetails,omitempty,omitzero"`
EmailVerificationRequestIssueDetails *EmailVerificationRequestIssueDetails `json:"emailVerificationRequestIssueDetails,omitempty,omitzero"`
LazyLoadImageIssueDetails *LazyLoadImageIssueDetails `json:"lazyLoadImageIssueDetails,omitempty,omitzero"`
WebInstallIssueDetails *WebInstallIssueDetails `json:"webInstallIssueDetails,omitempty,omitzero"`
}
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-InspectorIssueDetails
type IssueID ¶
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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-IssueId
type LazyLoadImageIssueDetails ¶
type LazyLoadImageIssueDetails struct {
NodeID cdp.BackendNodeID `json:"nodeId"` // DOM node of the problematic HTMLImageElement.
URL string `json:"url"` // URL or src attribute of the image.
FrameID cdp.FrameID `json:"frameId"` // Frame containing the image.
}
LazyLoadImageIssueDetails details for issues about lazy-loaded images without explicit dimensions.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-LazyLoadImageIssueDetails
type MixedContentIssueDetails ¶
type MixedContentIssueDetails struct {
ResourceType MixedContentResourceType `json:"resourceType,omitempty,omitzero"` // 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,omitzero"` // The mixed content request. Does not always exist (e.g. for unsafe form submission urls).
Frame *AffectedFrame `json:"frame,omitempty,omitzero"` // Optional because not every mixed content issue is necessarily linked to a frame.
}
MixedContentIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-MixedContentIssueDetails
type MixedContentResolutionStatus ¶
type MixedContentResolutionStatus string
MixedContentResolutionStatus [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-MixedContentResolutionStatus
const ( MixedContentResolutionStatusMixedContentBlocked MixedContentResolutionStatus = "MixedContentBlocked" MixedContentResolutionStatusMixedContentAutomaticallyUpgraded MixedContentResolutionStatus = "MixedContentAutomaticallyUpgraded" MixedContentResolutionStatusMixedContentWarning MixedContentResolutionStatus = "MixedContentWarning" )
MixedContentResolutionStatus values.
func (MixedContentResolutionStatus) String ¶
func (t MixedContentResolutionStatus) String() string
String returns the MixedContentResolutionStatus as string value.
func (*MixedContentResolutionStatus) UnmarshalJSON ¶
func (t *MixedContentResolutionStatus) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type MixedContentResourceType ¶
type MixedContentResourceType string
MixedContentResourceType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-MixedContentResourceType
const ( 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" MixedContentResourceTypeSpeculationRules MixedContentResourceType = "SpeculationRules" MixedContentResourceTypeStylesheet MixedContentResourceType = "Stylesheet" MixedContentResourceTypeTrack MixedContentResourceType = "Track" MixedContentResourceTypeVideo MixedContentResourceType = "Video" MixedContentResourceTypeWorker MixedContentResourceType = "Worker" MixedContentResourceTypeXMLHTTPRequest MixedContentResourceType = "XMLHttpRequest" MixedContentResourceTypeXSLT MixedContentResourceType = "XSLT" )
MixedContentResourceType values.
func (MixedContentResourceType) String ¶
func (t MixedContentResourceType) String() string
String returns the MixedContentResourceType as string value.
func (*MixedContentResourceType) UnmarshalJSON ¶
func (t *MixedContentResourceType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type PartitioningBlobURLInfo ¶
type PartitioningBlobURLInfo string
PartitioningBlobURLInfo [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PartitioningBlobURLInfo
const ( PartitioningBlobURLInfoBlockedCrossPartitionFetching PartitioningBlobURLInfo = "BlockedCrossPartitionFetching" )
PartitioningBlobURLInfo values.
func (PartitioningBlobURLInfo) String ¶
func (t PartitioningBlobURLInfo) String() string
String returns the PartitioningBlobURLInfo as string value.
func (*PartitioningBlobURLInfo) UnmarshalJSON ¶
func (t *PartitioningBlobURLInfo) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type PartitioningBlobURLIssueDetails ¶
type PartitioningBlobURLIssueDetails struct {
URL string `json:"url"` // The BlobURL that failed to load.
PartitioningBlobURLInfo PartitioningBlobURLInfo `json:"partitioningBlobURLInfo"` // Additional information about the Partitioning Blob URL issue.
}
PartitioningBlobURLIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PartitioningBlobURLIssueDetails
type PerformanceIssueDetails ¶
type PerformanceIssueDetails struct {
PerformanceIssueType PerformanceIssueType `json:"performanceIssueType"`
SourceCodeLocation *SourceCodeLocation `json:"sourceCodeLocation,omitempty,omitzero"`
}
PerformanceIssueDetails details for a performance issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PerformanceIssueDetails
type PerformanceIssueType ¶
type PerformanceIssueType string
PerformanceIssueType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PerformanceIssueType
const (
PerformanceIssueTypeDocumentCookie PerformanceIssueType = "DocumentCookie"
)
PerformanceIssueType values.
func (PerformanceIssueType) String ¶
func (t PerformanceIssueType) String() string
String returns the PerformanceIssueType as string value.
func (*PerformanceIssueType) UnmarshalJSON ¶
func (t *PerformanceIssueType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type PermissionElementIssueDetails ¶
type PermissionElementIssueDetails struct {
IssueType PermissionElementIssueType `json:"issueType"`
Type string `json:"type,omitempty,omitzero"` // The value of the type attribute.
NodeID cdp.BackendNodeID `json:"nodeId,omitempty,omitzero"` // The node ID of the <permission> element.
IsWarning bool `json:"isWarning"` // True if the issue is a warning, false if it is an error.
PermissionName string `json:"permissionName,omitempty,omitzero"` // Fields for message construction: Used for messages that reference a specific permission name
OccluderNodeInfo string `json:"occluderNodeInfo,omitempty,omitzero"` // Used for messages about occlusion
OccluderParentNodeInfo string `json:"occluderParentNodeInfo,omitempty,omitzero"` // Used for messages about occluder's parent
DisableReason string `json:"disableReason,omitempty,omitzero"` // Used for messages about activation disabled reason
}
PermissionElementIssueDetails this issue warns about improper usage of the <permission> element.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PermissionElementIssueDetails
type PermissionElementIssueType ¶
type PermissionElementIssueType string
PermissionElementIssueType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PermissionElementIssueType
const ( PermissionElementIssueTypeInvalidType PermissionElementIssueType = "InvalidType" PermissionElementIssueTypeFencedFrameDisallowed PermissionElementIssueType = "FencedFrameDisallowed" PermissionElementIssueTypeCspFrameAncestorsMissing PermissionElementIssueType = "CspFrameAncestorsMissing" PermissionElementIssueTypePermissionsPolicyBlocked PermissionElementIssueType = "PermissionsPolicyBlocked" PermissionElementIssueTypePaddingRightUnsupported PermissionElementIssueType = "PaddingRightUnsupported" PermissionElementIssueTypePaddingBottomUnsupported PermissionElementIssueType = "PaddingBottomUnsupported" PermissionElementIssueTypeInsetBoxShadowUnsupported PermissionElementIssueType = "InsetBoxShadowUnsupported" PermissionElementIssueTypeRequestInProgress PermissionElementIssueType = "RequestInProgress" PermissionElementIssueTypeUntrustedEvent PermissionElementIssueType = "UntrustedEvent" PermissionElementIssueTypeRegistrationFailed PermissionElementIssueType = "RegistrationFailed" PermissionElementIssueTypeTypeNotSupported PermissionElementIssueType = "TypeNotSupported" PermissionElementIssueTypeInvalidTypeActivation PermissionElementIssueType = "InvalidTypeActivation" PermissionElementIssueTypeSecurityChecksFailed PermissionElementIssueType = "SecurityChecksFailed" PermissionElementIssueTypeActivationDisabled PermissionElementIssueType = "ActivationDisabled" PermissionElementIssueTypeGeolocationDeprecated PermissionElementIssueType = "GeolocationDeprecated" PermissionElementIssueTypeInvalidDisplayStyle PermissionElementIssueType = "InvalidDisplayStyle" PermissionElementIssueTypeNonOpaqueColor PermissionElementIssueType = "NonOpaqueColor" PermissionElementIssueTypeLowContrast PermissionElementIssueType = "LowContrast" PermissionElementIssueTypeFontSizeTooSmall PermissionElementIssueType = "FontSizeTooSmall" PermissionElementIssueTypeFontSizeTooLarge PermissionElementIssueType = "FontSizeTooLarge" PermissionElementIssueTypeInvalidSizeValue PermissionElementIssueType = "InvalidSizeValue" PermissionElementIssueTypeNonSecureContext PermissionElementIssueType = "NonSecureContext" PermissionElementIssueTypeMissingTransientUserActivation PermissionElementIssueType = "MissingTransientUserActivation" )
PermissionElementIssueType values.
func (PermissionElementIssueType) String ¶
func (t PermissionElementIssueType) String() string
String returns the PermissionElementIssueType as string value.
func (*PermissionElementIssueType) UnmarshalJSON ¶
func (t *PermissionElementIssueType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type PropertyRuleIssueDetails ¶
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,omitzero"` // 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.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PropertyRuleIssueDetails
type PropertyRuleIssueReason ¶
type PropertyRuleIssueReason string
PropertyRuleIssueReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PropertyRuleIssueReason
const ( PropertyRuleIssueReasonInvalidSyntax PropertyRuleIssueReason = "InvalidSyntax" PropertyRuleIssueReasonInvalidInitialValue PropertyRuleIssueReason = "InvalidInitialValue" PropertyRuleIssueReasonInvalidInherits PropertyRuleIssueReason = "InvalidInherits" PropertyRuleIssueReasonInvalidName PropertyRuleIssueReason = "InvalidName" )
PropertyRuleIssueReason values.
func (PropertyRuleIssueReason) String ¶
func (t PropertyRuleIssueReason) String() string
String returns the PropertyRuleIssueReason as string value.
func (*PropertyRuleIssueReason) UnmarshalJSON ¶
func (t *PropertyRuleIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type QuirksModeIssueDetails ¶
type QuirksModeIssueDetails struct {
IsLimitedQuirksMode bool `json:"isLimitedQuirksMode"` // If false, it means the document's mode is "quirks" instead of "limited-quirks".
DocumentNodeID cdp.BackendNodeID `json:"documentNodeId"`
URL string `json:"url"`
FrameID cdp.FrameID `json:"frameId"`
LoaderID cdp.LoaderID `json:"loaderId"`
}
QuirksModeIssueDetails details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-QuirksModeIssueDetails
type SRIMessageSignatureError ¶
type SRIMessageSignatureError string
SRIMessageSignatureError [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SRIMessageSignatureError
const ( SRIMessageSignatureErrorMissingSignatureHeader SRIMessageSignatureError = "MissingSignatureHeader" SRIMessageSignatureErrorMissingSignatureInputHeader SRIMessageSignatureError = "MissingSignatureInputHeader" SRIMessageSignatureErrorInvalidSignatureHeader SRIMessageSignatureError = "InvalidSignatureHeader" SRIMessageSignatureErrorInvalidSignatureInputHeader SRIMessageSignatureError = "InvalidSignatureInputHeader" SRIMessageSignatureErrorSignatureHeaderValueIsNotByteSequence SRIMessageSignatureError = "SignatureHeaderValueIsNotByteSequence" SRIMessageSignatureErrorSignatureHeaderValueIsParameterized SRIMessageSignatureError = "SignatureHeaderValueIsParameterized" SRIMessageSignatureErrorSignatureHeaderValueIsIncorrectLength SRIMessageSignatureError = "SignatureHeaderValueIsIncorrectLength" SRIMessageSignatureErrorSignatureInputHeaderMissingLabel SRIMessageSignatureError = "SignatureInputHeaderMissingLabel" SRIMessageSignatureErrorSignatureInputHeaderValueNotInnerList SRIMessageSignatureError = "SignatureInputHeaderValueNotInnerList" SRIMessageSignatureErrorSignatureInputHeaderValueMissingComponents SRIMessageSignatureError = "SignatureInputHeaderValueMissingComponents" SRIMessageSignatureErrorSignatureInputHeaderInvalidComponentType SRIMessageSignatureError = "SignatureInputHeaderInvalidComponentType" SRIMessageSignatureErrorSignatureInputHeaderInvalidComponentName SRIMessageSignatureError = "SignatureInputHeaderInvalidComponentName" SRIMessageSignatureErrorSignatureInputHeaderInvalidHeaderComponentParameter SRIMessageSignatureError = "SignatureInputHeaderInvalidHeaderComponentParameter" SRIMessageSignatureErrorSignatureInputHeaderInvalidDerivedComponentParameter SRIMessageSignatureError = "SignatureInputHeaderInvalidDerivedComponentParameter" SRIMessageSignatureErrorSignatureInputHeaderKeyIDLength SRIMessageSignatureError = "SignatureInputHeaderKeyIdLength" SRIMessageSignatureErrorSignatureInputHeaderInvalidParameter SRIMessageSignatureError = "SignatureInputHeaderInvalidParameter" SRIMessageSignatureErrorSignatureInputHeaderMissingRequiredParameters SRIMessageSignatureError = "SignatureInputHeaderMissingRequiredParameters" SRIMessageSignatureErrorValidationFailedSignatureExpired SRIMessageSignatureError = "ValidationFailedSignatureExpired" SRIMessageSignatureErrorValidationFailedInvalidLength SRIMessageSignatureError = "ValidationFailedInvalidLength" SRIMessageSignatureErrorValidationFailedSignatureMismatch SRIMessageSignatureError = "ValidationFailedSignatureMismatch" SRIMessageSignatureErrorValidationFailedIntegrityMismatch SRIMessageSignatureError = "ValidationFailedIntegrityMismatch" SRIMessageSignatureErrorSignatureBaseUnknownDerivedComponent SRIMessageSignatureError = "SignatureBaseUnknownDerivedComponent" SRIMessageSignatureErrorSignatureBaseMissingHeader SRIMessageSignatureError = "SignatureBaseMissingHeader" SRIMessageSignatureErrorSignatureBaseInvalidUnencodedDigest SRIMessageSignatureError = "SignatureBaseInvalidUnencodedDigest" SRIMessageSignatureErrorSignatureBaseUnsupportedComponent SRIMessageSignatureError = "SignatureBaseUnsupportedComponent" )
SRIMessageSignatureError values.
func (SRIMessageSignatureError) String ¶
func (t SRIMessageSignatureError) String() string
String returns the SRIMessageSignatureError as string value.
func (*SRIMessageSignatureError) UnmarshalJSON ¶
func (t *SRIMessageSignatureError) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type SRIMessageSignatureIssueDetails ¶
type SRIMessageSignatureIssueDetails struct {
Error SRIMessageSignatureError `json:"error"`
SignatureBase string `json:"signatureBase"`
IntegrityAssertions []string `json:"integrityAssertions"`
Request *AffectedRequest `json:"request"`
}
SRIMessageSignatureIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SRIMessageSignatureIssueDetails
type SelectivePermissionsInterventionIssueDetails ¶
type SelectivePermissionsInterventionIssueDetails struct {
APIName string `json:"apiName"` // Which API was intervened on.
AdAncestry *cdp.AdAncestry `json:"adAncestry"` // Why the ad script using the API is considered an ad.
StackTrace *runtime.StackTrace `json:"stackTrace,omitempty,omitzero"` // The stack trace at the time of the intervention.
}
SelectivePermissionsInterventionIssueDetails the issue warns about blocked calls to privacy sensitive APIs via the Selective Permissions Intervention.
type SharedArrayBufferIssueDetails ¶
type SharedArrayBufferIssueDetails struct {
}
SharedArrayBufferIssueDetails details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SharedArrayBufferIssueDetails
type SharedArrayBufferIssueType ¶
type SharedArrayBufferIssueType string
SharedArrayBufferIssueType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SharedArrayBufferIssueType
const ( )
SharedArrayBufferIssueType values.
func (SharedArrayBufferIssueType) String ¶
func (t SharedArrayBufferIssueType) String() string
String returns the SharedArrayBufferIssueType as string value.
func (*SharedArrayBufferIssueType) UnmarshalJSON ¶
func (t *SharedArrayBufferIssueType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type SharedDictionaryError ¶
type SharedDictionaryError string
SharedDictionaryError [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SharedDictionaryError
const ( )
SharedDictionaryError values.
func (SharedDictionaryError) String ¶
func (t SharedDictionaryError) String() string
String returns the SharedDictionaryError as string value.
func (*SharedDictionaryError) UnmarshalJSON ¶
func (t *SharedDictionaryError) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type SharedDictionaryIssueDetails ¶
type SharedDictionaryIssueDetails struct {
}
SharedDictionaryIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SharedDictionaryIssueDetails
type SourceCodeLocation ¶
type SourceCodeLocation struct {
ScriptID cdp.ScriptID `json:"scriptId,omitempty,omitzero"`
URL string `json:"url"`
LineNumber int64 `json:"lineNumber"`
ColumnNumber int64 `json:"columnNumber"`
}
SourceCodeLocation [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SourceCodeLocation
type StyleSheetLoadingIssueReason ¶
type StyleSheetLoadingIssueReason string
StyleSheetLoadingIssueReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-StyleSheetLoadingIssueReason
const ( StyleSheetLoadingIssueReasonLateImportRule StyleSheetLoadingIssueReason = "LateImportRule" StyleSheetLoadingIssueReasonRequestFailed StyleSheetLoadingIssueReason = "RequestFailed" )
StyleSheetLoadingIssueReason values.
func (StyleSheetLoadingIssueReason) String ¶
func (t StyleSheetLoadingIssueReason) String() string
String returns the StyleSheetLoadingIssueReason as string value.
func (*StyleSheetLoadingIssueReason) UnmarshalJSON ¶
func (t *StyleSheetLoadingIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type StylesheetLoadingIssueDetails ¶
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,omitzero"` // Contains additional info when the failure was due to a request.
}
StylesheetLoadingIssueDetails this issue warns when a referenced stylesheet couldn't be loaded.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-StylesheetLoadingIssueDetails
type UnencodedDigestError ¶
type UnencodedDigestError string
UnencodedDigestError [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-UnencodedDigestError
const ( UnencodedDigestErrorMalformedDictionary UnencodedDigestError = "MalformedDictionary" UnencodedDigestErrorUnknownAlgorithm UnencodedDigestError = "UnknownAlgorithm" UnencodedDigestErrorIncorrectDigestType UnencodedDigestError = "IncorrectDigestType" UnencodedDigestErrorIncorrectDigestLength UnencodedDigestError = "IncorrectDigestLength" )
UnencodedDigestError values.
func (UnencodedDigestError) String ¶
func (t UnencodedDigestError) String() string
String returns the UnencodedDigestError as string value.
func (*UnencodedDigestError) UnmarshalJSON ¶
func (t *UnencodedDigestError) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type UnencodedDigestIssueDetails ¶
type UnencodedDigestIssueDetails struct {
Error UnencodedDigestError `json:"error"`
Request *AffectedRequest `json:"request"`
}
UnencodedDigestIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-UnencodedDigestIssueDetails
type UserReidentificationIssueDetails ¶
type UserReidentificationIssueDetails struct {
Type UserReidentificationIssueType `json:"type"`
Request *AffectedRequest `json:"request,omitempty,omitzero"` // Applies to BlockedFrameNavigation and BlockedSubresource issue types.
SourceCodeLocation *SourceCodeLocation `json:"sourceCodeLocation,omitempty,omitzero"` // Applies to NoisedCanvasReadback issue type.
}
UserReidentificationIssueDetails this issue warns about uses of APIs that may be considered misuse to re-identify users.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-UserReidentificationIssueDetails
type UserReidentificationIssueType ¶
type UserReidentificationIssueType string
UserReidentificationIssueType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-UserReidentificationIssueType
const ( UserReidentificationIssueTypeBlockedSubresource UserReidentificationIssueType = "BlockedSubresource" UserReidentificationIssueTypeNoisedCanvasReadback UserReidentificationIssueType = "NoisedCanvasReadback" )
UserReidentificationIssueType values.
func (UserReidentificationIssueType) String ¶
func (t UserReidentificationIssueType) String() string
String returns the UserReidentificationIssueType as string value.
func (*UserReidentificationIssueType) UnmarshalJSON ¶
func (t *UserReidentificationIssueType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].
type WebInstallIssueDetails ¶
type WebInstallIssueDetails struct {
ManifestURL string `json:"manifestUrl,omitempty,omitzero"`
Reason WebInstallIssueReason `json:"reason"`
}
WebInstallIssueDetails this issue reports a failure involving a web app manifest used by a Web Install operation.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-WebInstallIssueDetails
type WebInstallIssueReason ¶
type WebInstallIssueReason string
WebInstallIssueReason [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-WebInstallIssueReason
const ( WebInstallIssueReasonManifestParsingOrNetworkError WebInstallIssueReason = "ManifestParsingOrNetworkError" WebInstallIssueReasonStartURLInvalid WebInstallIssueReason = "StartUrlInvalid" WebInstallIssueReasonManifestMissingNameOrShortName WebInstallIssueReason = "ManifestMissingNameOrShortName" WebInstallIssueReasonManifestMissingID WebInstallIssueReason = "ManifestMissingId" WebInstallIssueReasonNoManifest WebInstallIssueReason = "NoManifest" )
WebInstallIssueReason values.
func (WebInstallIssueReason) String ¶
func (t WebInstallIssueReason) String() string
String returns the WebInstallIssueReason as string value.
func (*WebInstallIssueReason) UnmarshalJSON ¶
func (t *WebInstallIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies [json.Unmarshaler].