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 AttributionReportingIssueDetails
- func (v AttributionReportingIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
- func (v AttributionReportingIssueDetails) MarshalJSON() ([]byte, error)
- func (v *AttributionReportingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *AttributionReportingIssueDetails) UnmarshalJSON(data []byte) error
- type AttributionReportingIssueType
- func (t AttributionReportingIssueType) MarshalEasyJSON(out *jwriter.Writer)
- func (t AttributionReportingIssueType) MarshalJSON() ([]byte, error)
- func (t AttributionReportingIssueType) String() string
- func (t *AttributionReportingIssueType) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *AttributionReportingIssueType) UnmarshalJSON(buf []byte) error
- type BlockedByResponseIssueDetails
- type BlockedByResponseReason
- func (t BlockedByResponseReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t BlockedByResponseReason) MarshalJSON() ([]byte, error)
- func (t BlockedByResponseReason) String() string
- func (t *BlockedByResponseReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *BlockedByResponseReason) UnmarshalJSON(buf []byte) error
- type BounceTrackingIssueDetails
- type CheckContrastParams
- func (p *CheckContrastParams) Do(ctx context.Context) (err error)
- func (v CheckContrastParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CheckContrastParams) MarshalJSON() ([]byte, error)
- func (v *CheckContrastParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CheckContrastParams) UnmarshalJSON(data []byte) error
- func (p CheckContrastParams) WithReportAAA(reportAAA bool) *CheckContrastParams
- type CheckFormsIssuesParams
- func (p *CheckFormsIssuesParams) Do(ctx context.Context) (formIssues []*GenericIssueDetails, err error)
- func (v CheckFormsIssuesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CheckFormsIssuesParams) MarshalJSON() ([]byte, error)
- func (v *CheckFormsIssuesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CheckFormsIssuesParams) UnmarshalJSON(data []byte) error
- type CheckFormsIssuesReturns
- type ClientHintIssueDetails
- type ClientHintIssueReason
- func (t ClientHintIssueReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t ClientHintIssueReason) MarshalJSON() ([]byte, error)
- func (t ClientHintIssueReason) String() string
- func (t *ClientHintIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *ClientHintIssueReason) UnmarshalJSON(buf []byte) error
- type ContentSecurityPolicyIssueDetails
- func (v ContentSecurityPolicyIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
- func (v ContentSecurityPolicyIssueDetails) MarshalJSON() ([]byte, error)
- func (v *ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ContentSecurityPolicyIssueDetails) UnmarshalJSON(data []byte) error
- type ContentSecurityPolicyViolationType
- func (t ContentSecurityPolicyViolationType) MarshalEasyJSON(out *jwriter.Writer)
- func (t ContentSecurityPolicyViolationType) MarshalJSON() ([]byte, error)
- func (t ContentSecurityPolicyViolationType) String() string
- func (t *ContentSecurityPolicyViolationType) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *ContentSecurityPolicyViolationType) UnmarshalJSON(buf []byte) error
- type CookieDeprecationMetadataIssueDetails
- func (v CookieDeprecationMetadataIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
- func (v CookieDeprecationMetadataIssueDetails) MarshalJSON() ([]byte, error)
- func (v *CookieDeprecationMetadataIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CookieDeprecationMetadataIssueDetails) UnmarshalJSON(data []byte) error
- type CookieExclusionReason
- func (t CookieExclusionReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t CookieExclusionReason) MarshalJSON() ([]byte, error)
- func (t CookieExclusionReason) String() string
- func (t *CookieExclusionReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *CookieExclusionReason) UnmarshalJSON(buf []byte) error
- type CookieIssueDetails
- type CookieOperation
- type CookieWarningReason
- type CorsIssueDetails
- type DeprecationIssueDetails
- type DisableParams
- type EnableParams
- type EventIssueAdded
- type FailedRequestInfo
- type FederatedAuthRequestIssueDetails
- func (v FederatedAuthRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
- func (v FederatedAuthRequestIssueDetails) MarshalJSON() ([]byte, error)
- func (v *FederatedAuthRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *FederatedAuthRequestIssueDetails) UnmarshalJSON(data []byte) error
- type FederatedAuthRequestIssueReason
- func (t FederatedAuthRequestIssueReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t FederatedAuthRequestIssueReason) MarshalJSON() ([]byte, error)
- func (t FederatedAuthRequestIssueReason) String() string
- func (t *FederatedAuthRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *FederatedAuthRequestIssueReason) UnmarshalJSON(buf []byte) error
- type FederatedAuthUserInfoRequestIssueDetails
- func (v FederatedAuthUserInfoRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
- func (v FederatedAuthUserInfoRequestIssueDetails) MarshalJSON() ([]byte, error)
- func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalJSON(data []byte) error
- type FederatedAuthUserInfoRequestIssueReason
- func (t FederatedAuthUserInfoRequestIssueReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t FederatedAuthUserInfoRequestIssueReason) MarshalJSON() ([]byte, error)
- func (t FederatedAuthUserInfoRequestIssueReason) String() string
- func (t *FederatedAuthUserInfoRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *FederatedAuthUserInfoRequestIssueReason) UnmarshalJSON(buf []byte) error
- type GenericIssueDetails
- type GenericIssueErrorType
- func (t GenericIssueErrorType) MarshalEasyJSON(out *jwriter.Writer)
- func (t GenericIssueErrorType) MarshalJSON() ([]byte, error)
- func (t GenericIssueErrorType) String() string
- func (t *GenericIssueErrorType) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *GenericIssueErrorType) UnmarshalJSON(buf []byte) error
- type GetEncodedResponseEncoding
- func (t GetEncodedResponseEncoding) MarshalEasyJSON(out *jwriter.Writer)
- func (t GetEncodedResponseEncoding) MarshalJSON() ([]byte, error)
- func (t GetEncodedResponseEncoding) String() string
- func (t *GetEncodedResponseEncoding) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *GetEncodedResponseEncoding) UnmarshalJSON(buf []byte) error
- type GetEncodedResponseParams
- func (p *GetEncodedResponseParams) Do(ctx context.Context) (body []byte, originalSize int64, encodedSize int64, err error)
- func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error)
- func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error
- func (p GetEncodedResponseParams) WithQuality(quality float64) *GetEncodedResponseParams
- func (p GetEncodedResponseParams) WithSizeOnly(sizeOnly bool) *GetEncodedResponseParams
- type GetEncodedResponseReturns
- type HeavyAdIssueDetails
- type HeavyAdReason
- type HeavyAdResolutionStatus
- func (t HeavyAdResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
- func (t HeavyAdResolutionStatus) MarshalJSON() ([]byte, error)
- func (t HeavyAdResolutionStatus) String() string
- func (t *HeavyAdResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *HeavyAdResolutionStatus) UnmarshalJSON(buf []byte) error
- type InspectorIssue
- type InspectorIssueCode
- type InspectorIssueDetails
- type IssueID
- type LowTextContrastIssueDetails
- type MixedContentIssueDetails
- type MixedContentResolutionStatus
- func (t MixedContentResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
- func (t MixedContentResolutionStatus) MarshalJSON() ([]byte, error)
- func (t MixedContentResolutionStatus) String() string
- func (t *MixedContentResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *MixedContentResolutionStatus) UnmarshalJSON(buf []byte) error
- type MixedContentResourceType
- func (t MixedContentResourceType) MarshalEasyJSON(out *jwriter.Writer)
- func (t MixedContentResourceType) MarshalJSON() ([]byte, error)
- func (t MixedContentResourceType) String() string
- func (t *MixedContentResourceType) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *MixedContentResourceType) UnmarshalJSON(buf []byte) error
- type PropertyRuleIssueDetails
- type PropertyRuleIssueReason
- func (t PropertyRuleIssueReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t PropertyRuleIssueReason) MarshalJSON() ([]byte, error)
- func (t PropertyRuleIssueReason) String() string
- func (t *PropertyRuleIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *PropertyRuleIssueReason) UnmarshalJSON(buf []byte) error
- type QuirksModeIssueDetails
- type SharedArrayBufferIssueDetails
- type SharedArrayBufferIssueType
- func (t SharedArrayBufferIssueType) MarshalEasyJSON(out *jwriter.Writer)
- func (t SharedArrayBufferIssueType) MarshalJSON() ([]byte, error)
- func (t SharedArrayBufferIssueType) String() string
- func (t *SharedArrayBufferIssueType) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *SharedArrayBufferIssueType) UnmarshalJSON(buf []byte) error
- type SharedDictionaryError
- func (t SharedDictionaryError) MarshalEasyJSON(out *jwriter.Writer)
- func (t SharedDictionaryError) MarshalJSON() ([]byte, error)
- func (t SharedDictionaryError) String() string
- func (t *SharedDictionaryError) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *SharedDictionaryError) UnmarshalJSON(buf []byte) error
- type SharedDictionaryIssueDetails
- type SourceCodeLocation
- type StyleSheetLoadingIssueReason
- func (t StyleSheetLoadingIssueReason) MarshalEasyJSON(out *jwriter.Writer)
- func (t StyleSheetLoadingIssueReason) MarshalJSON() ([]byte, error)
- func (t StyleSheetLoadingIssueReason) String() string
- func (t *StyleSheetLoadingIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *StyleSheetLoadingIssueReason) UnmarshalJSON(buf []byte) error
- type StylesheetLoadingIssueDetails
Constants ¶
const ( CommandGetEncodedResponse = "Audits.getEncodedResponse" CommandDisable = "Audits.disable" CommandEnable = "Audits.enable" CommandCheckContrast = "Audits.checkContrast" 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
func (AffectedCookie) MarshalEasyJSON ¶
func (v AffectedCookie) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AffectedCookie) MarshalJSON ¶
func (v AffectedCookie) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AffectedCookie) UnmarshalEasyJSON ¶
func (v *AffectedCookie) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AffectedCookie) UnmarshalJSON ¶
func (v *AffectedCookie) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AffectedFrame ¶
AffectedFrame information about the frame affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedFrame
func (AffectedFrame) MarshalEasyJSON ¶
func (v AffectedFrame) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AffectedFrame) MarshalJSON ¶
func (v AffectedFrame) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AffectedFrame) UnmarshalEasyJSON ¶
func (v *AffectedFrame) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AffectedFrame) UnmarshalJSON ¶
func (v *AffectedFrame) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AffectedRequest ¶
type AffectedRequest struct { RequestID network.RequestID `json:"requestId"` // The unique request id. URL string `json:"url,omitempty"` }
AffectedRequest information about a request that is affected by an inspector issue.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AffectedRequest
func (AffectedRequest) MarshalEasyJSON ¶
func (v AffectedRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AffectedRequest) MarshalJSON ¶
func (v AffectedRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AffectedRequest) UnmarshalEasyJSON ¶
func (v *AffectedRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AffectedRequest) UnmarshalJSON ¶
func (v *AffectedRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AttributionReportingIssueDetails ¶
type AttributionReportingIssueDetails struct { ViolationType AttributionReportingIssueType `json:"violationType"` Request *AffectedRequest `json:"request,omitempty"` ViolatingNodeID cdp.BackendNodeID `json:"violatingNodeId,omitempty"` InvalidParameter string `json:"invalidParameter,omitempty"` }
AttributionReportingIssueDetails details for issues around "Attribution Reporting API" usage. Explainer: https://github.com/WICG/attribution-reporting-api.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AttributionReportingIssueDetails
func (AttributionReportingIssueDetails) MarshalEasyJSON ¶
func (v AttributionReportingIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AttributionReportingIssueDetails) MarshalJSON ¶
func (v AttributionReportingIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AttributionReportingIssueDetails) UnmarshalEasyJSON ¶
func (v *AttributionReportingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AttributionReportingIssueDetails) UnmarshalJSON ¶
func (v *AttributionReportingIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AttributionReportingIssueType ¶
type AttributionReportingIssueType string
AttributionReportingIssueType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-AttributionReportingIssueType
const ( 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" AttributionReportingIssueTypeInvalidInfoHeader AttributionReportingIssueType = "InvalidInfoHeader" AttributionReportingIssueTypeNoRegisterSourceHeader AttributionReportingIssueType = "NoRegisterSourceHeader" AttributionReportingIssueTypeNoRegisterTriggerHeader AttributionReportingIssueType = "NoRegisterTriggerHeader" AttributionReportingIssueTypeNoRegisterOsSourceHeader AttributionReportingIssueType = "NoRegisterOsSourceHeader" AttributionReportingIssueTypeNoRegisterOsTriggerHeader AttributionReportingIssueType = "NoRegisterOsTriggerHeader" )
AttributionReportingIssueType values.
func (AttributionReportingIssueType) MarshalEasyJSON ¶
func (t AttributionReportingIssueType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (AttributionReportingIssueType) MarshalJSON ¶
func (t AttributionReportingIssueType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (AttributionReportingIssueType) String ¶
func (t AttributionReportingIssueType) String() string
String returns the AttributionReportingIssueType as string value.
func (*AttributionReportingIssueType) UnmarshalEasyJSON ¶
func (t *AttributionReportingIssueType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*AttributionReportingIssueType) UnmarshalJSON ¶
func (t *AttributionReportingIssueType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type BlockedByResponseIssueDetails ¶
type BlockedByResponseIssueDetails struct { Request *AffectedRequest `json:"request"` ParentFrame *AffectedFrame `json:"parentFrame,omitempty"` BlockedFrame *AffectedFrame `json:"blockedFrame,omitempty"` 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
func (BlockedByResponseIssueDetails) MarshalEasyJSON ¶
func (v BlockedByResponseIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BlockedByResponseIssueDetails) MarshalJSON ¶
func (v BlockedByResponseIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BlockedByResponseIssueDetails) UnmarshalEasyJSON ¶
func (v *BlockedByResponseIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BlockedByResponseIssueDetails) UnmarshalJSON ¶
func (v *BlockedByResponseIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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" )
BlockedByResponseReason values.
func (BlockedByResponseReason) MarshalEasyJSON ¶
func (t BlockedByResponseReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (BlockedByResponseReason) MarshalJSON ¶
func (t BlockedByResponseReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (BlockedByResponseReason) String ¶
func (t BlockedByResponseReason) String() string
String returns the BlockedByResponseReason as string value.
func (*BlockedByResponseReason) UnmarshalEasyJSON ¶
func (t *BlockedByResponseReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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
func (BounceTrackingIssueDetails) MarshalEasyJSON ¶
func (v BounceTrackingIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BounceTrackingIssueDetails) MarshalJSON ¶
func (v BounceTrackingIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BounceTrackingIssueDetails) UnmarshalEasyJSON ¶
func (v *BounceTrackingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BounceTrackingIssueDetails) UnmarshalJSON ¶
func (v *BounceTrackingIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CheckContrastParams ¶
type CheckContrastParams struct {
ReportAAA bool `json:"reportAAA,omitempty"` // Whether to report WCAG AAA level issues. Default is false.
}
CheckContrastParams runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.
func CheckContrast ¶
func CheckContrast() *CheckContrastParams
CheckContrast runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-checkContrast
parameters:
func (*CheckContrastParams) Do ¶
func (p *CheckContrastParams) Do(ctx context.Context) (err error)
Do executes Audits.checkContrast against the provided context.
func (CheckContrastParams) MarshalEasyJSON ¶
func (v CheckContrastParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CheckContrastParams) MarshalJSON ¶
func (v CheckContrastParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CheckContrastParams) UnmarshalEasyJSON ¶
func (v *CheckContrastParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CheckContrastParams) UnmarshalJSON ¶
func (v *CheckContrastParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (CheckContrastParams) WithReportAAA ¶
func (p CheckContrastParams) WithReportAAA(reportAAA bool) *CheckContrastParams
WithReportAAA whether to report WCAG AAA level issues. Default is false.
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
func (CheckFormsIssuesParams) MarshalEasyJSON ¶
func (v CheckFormsIssuesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CheckFormsIssuesParams) MarshalJSON ¶
func (v CheckFormsIssuesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CheckFormsIssuesParams) UnmarshalEasyJSON ¶
func (v *CheckFormsIssuesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CheckFormsIssuesParams) UnmarshalJSON ¶
func (v *CheckFormsIssuesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CheckFormsIssuesReturns ¶
type CheckFormsIssuesReturns struct {
FormIssues []*GenericIssueDetails `json:"formIssues,omitempty"`
}
CheckFormsIssuesReturns return values.
func (CheckFormsIssuesReturns) MarshalEasyJSON ¶
func (v CheckFormsIssuesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CheckFormsIssuesReturns) MarshalJSON ¶
func (v CheckFormsIssuesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CheckFormsIssuesReturns) UnmarshalEasyJSON ¶
func (v *CheckFormsIssuesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CheckFormsIssuesReturns) UnmarshalJSON ¶
func (v *CheckFormsIssuesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (ClientHintIssueDetails) MarshalEasyJSON ¶
func (v ClientHintIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClientHintIssueDetails) MarshalJSON ¶
func (v ClientHintIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClientHintIssueDetails) UnmarshalEasyJSON ¶
func (v *ClientHintIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClientHintIssueDetails) UnmarshalJSON ¶
func (v *ClientHintIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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) MarshalEasyJSON ¶
func (t ClientHintIssueReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ClientHintIssueReason) MarshalJSON ¶
func (t ClientHintIssueReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ClientHintIssueReason) String ¶
func (t ClientHintIssueReason) String() string
String returns the ClientHintIssueReason as string value.
func (*ClientHintIssueReason) UnmarshalEasyJSON ¶
func (t *ClientHintIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ClientHintIssueReason) UnmarshalJSON ¶
func (t *ClientHintIssueReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ContentSecurityPolicyIssueDetails ¶
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"` ContentSecurityPolicyViolationType ContentSecurityPolicyViolationType `json:"contentSecurityPolicyViolationType"` FrameAncestor *AffectedFrame `json:"frameAncestor,omitempty"` SourceCodeLocation *SourceCodeLocation `json:"sourceCodeLocation,omitempty"` ViolatingNodeID cdp.BackendNodeID `json:"violatingNodeId,omitempty"` }
ContentSecurityPolicyIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ContentSecurityPolicyIssueDetails
func (ContentSecurityPolicyIssueDetails) MarshalEasyJSON ¶
func (v ContentSecurityPolicyIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ContentSecurityPolicyIssueDetails) MarshalJSON ¶
func (v ContentSecurityPolicyIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON ¶
func (v *ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ContentSecurityPolicyIssueDetails) UnmarshalJSON ¶
func (v *ContentSecurityPolicyIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ContentSecurityPolicyViolationType ¶
type ContentSecurityPolicyViolationType string
ContentSecurityPolicyViolationType [no description].
const ( ContentSecurityPolicyViolationTypeKInlineViolation ContentSecurityPolicyViolationType = "kInlineViolation" ContentSecurityPolicyViolationTypeKEvalViolation ContentSecurityPolicyViolationType = "kEvalViolation" ContentSecurityPolicyViolationTypeKURLViolation ContentSecurityPolicyViolationType = "kURLViolation" ContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation ContentSecurityPolicyViolationType = "kTrustedTypesSinkViolation" ContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation ContentSecurityPolicyViolationType = "kTrustedTypesPolicyViolation" ContentSecurityPolicyViolationTypeKWasmEvalViolation ContentSecurityPolicyViolationType = "kWasmEvalViolation" )
ContentSecurityPolicyViolationType values.
func (ContentSecurityPolicyViolationType) MarshalEasyJSON ¶
func (t ContentSecurityPolicyViolationType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ContentSecurityPolicyViolationType) MarshalJSON ¶
func (t ContentSecurityPolicyViolationType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ContentSecurityPolicyViolationType) String ¶
func (t ContentSecurityPolicyViolationType) String() string
String returns the ContentSecurityPolicyViolationType as string value.
func (*ContentSecurityPolicyViolationType) UnmarshalEasyJSON ¶
func (t *ContentSecurityPolicyViolationType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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.
func (CookieDeprecationMetadataIssueDetails) MarshalEasyJSON ¶
func (v CookieDeprecationMetadataIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CookieDeprecationMetadataIssueDetails) MarshalJSON ¶
func (v CookieDeprecationMetadataIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CookieDeprecationMetadataIssueDetails) UnmarshalEasyJSON ¶
func (v *CookieDeprecationMetadataIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CookieDeprecationMetadataIssueDetails) UnmarshalJSON ¶
func (v *CookieDeprecationMetadataIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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" CookieExclusionReasonExcludeInvalidSameParty CookieExclusionReason = "ExcludeInvalidSameParty" CookieExclusionReasonExcludeSamePartyCrossPartyContext CookieExclusionReason = "ExcludeSamePartyCrossPartyContext" CookieExclusionReasonExcludeDomainNonASCII CookieExclusionReason = "ExcludeDomainNonASCII" CookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet CookieExclusionReason = "ExcludeThirdPartyCookieBlockedInFirstPartySet" CookieExclusionReasonExcludeThirdPartyPhaseout CookieExclusionReason = "ExcludeThirdPartyPhaseout" CookieExclusionReasonExcludePortMismatch CookieExclusionReason = "ExcludePortMismatch" CookieExclusionReasonExcludeSchemeMismatch CookieExclusionReason = "ExcludeSchemeMismatch" )
CookieExclusionReason values.
func (CookieExclusionReason) MarshalEasyJSON ¶
func (t CookieExclusionReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (CookieExclusionReason) MarshalJSON ¶
func (t CookieExclusionReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (CookieExclusionReason) String ¶
func (t CookieExclusionReason) String() string
String returns the CookieExclusionReason as string value.
func (*CookieExclusionReason) UnmarshalEasyJSON ¶
func (t *CookieExclusionReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*CookieExclusionReason) UnmarshalJSON ¶
func (t *CookieExclusionReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type CookieIssueDetails ¶
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"` 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"` CookieURL string `json:"cookieUrl,omitempty"` Request *AffectedRequest `json:"request,omitempty"` }
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
func (CookieIssueDetails) MarshalEasyJSON ¶
func (v CookieIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CookieIssueDetails) MarshalJSON ¶
func (v CookieIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CookieIssueDetails) UnmarshalEasyJSON ¶
func (v *CookieIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CookieIssueDetails) UnmarshalJSON ¶
func (v *CookieIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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) MarshalEasyJSON ¶
func (t CookieOperation) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (CookieOperation) MarshalJSON ¶
func (t CookieOperation) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (CookieOperation) String ¶
func (t CookieOperation) String() string
String returns the CookieOperation as string value.
func (*CookieOperation) UnmarshalEasyJSON ¶
func (t *CookieOperation) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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) MarshalEasyJSON ¶
func (t CookieWarningReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (CookieWarningReason) MarshalJSON ¶
func (t CookieWarningReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (CookieWarningReason) String ¶
func (t CookieWarningReason) String() string
String returns the CookieWarningReason as string value.
func (*CookieWarningReason) UnmarshalEasyJSON ¶
func (t *CookieWarningReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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"` InitiatorOrigin string `json:"initiatorOrigin,omitempty"` ResourceIPAddressSpace network.IPAddressSpace `json:"resourceIPAddressSpace,omitempty"` ClientSecurityState *network.ClientSecurityState `json:"clientSecurityState,omitempty"` }
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
func (CorsIssueDetails) MarshalEasyJSON ¶
func (v CorsIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CorsIssueDetails) MarshalJSON ¶
func (v CorsIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CorsIssueDetails) UnmarshalEasyJSON ¶
func (v *CorsIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CorsIssueDetails) UnmarshalJSON ¶
func (v *CorsIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DeprecationIssueDetails ¶
type DeprecationIssueDetails struct { AffectedFrame *AffectedFrame `json:"affectedFrame,omitempty"` 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
func (DeprecationIssueDetails) MarshalEasyJSON ¶
func (v DeprecationIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DeprecationIssueDetails) MarshalJSON ¶
func (v DeprecationIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DeprecationIssueDetails) UnmarshalEasyJSON ¶
func (v *DeprecationIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DeprecationIssueDetails) UnmarshalJSON ¶
func (v *DeprecationIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (*DisableParams) Do ¶
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes Audits.disable against the provided context.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (*EnableParams) Do ¶
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes Audits.enable against the provided context.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventIssueAdded ¶
type EventIssueAdded struct {
Issue *InspectorIssue `json:"issue"`
}
EventIssueAdded [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#event-issueAdded
func (EventIssueAdded) MarshalEasyJSON ¶
func (v EventIssueAdded) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventIssueAdded) MarshalJSON ¶
func (v EventIssueAdded) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventIssueAdded) UnmarshalEasyJSON ¶
func (v *EventIssueAdded) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventIssueAdded) UnmarshalJSON ¶
func (v *EventIssueAdded) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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"` }
FailedRequestInfo [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-FailedRequestInfo
func (FailedRequestInfo) MarshalEasyJSON ¶
func (v FailedRequestInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FailedRequestInfo) MarshalJSON ¶
func (v FailedRequestInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FailedRequestInfo) UnmarshalEasyJSON ¶
func (v *FailedRequestInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FailedRequestInfo) UnmarshalJSON ¶
func (v *FailedRequestInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type FederatedAuthRequestIssueDetails ¶
type FederatedAuthRequestIssueDetails struct {
FederatedAuthRequestIssueReason FederatedAuthRequestIssueReason `json:"federatedAuthRequestIssueReason"`
}
FederatedAuthRequestIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-FederatedAuthRequestIssueDetails
func (FederatedAuthRequestIssueDetails) MarshalEasyJSON ¶
func (v FederatedAuthRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FederatedAuthRequestIssueDetails) MarshalJSON ¶
func (v FederatedAuthRequestIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FederatedAuthRequestIssueDetails) UnmarshalEasyJSON ¶
func (v *FederatedAuthRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FederatedAuthRequestIssueDetails) UnmarshalJSON ¶
func (v *FederatedAuthRequestIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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" 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" FederatedAuthRequestIssueReasonReplacedByActiveMode FederatedAuthRequestIssueReason = "ReplacedByActiveMode" FederatedAuthRequestIssueReasonInvalidFieldsSpecified FederatedAuthRequestIssueReason = "InvalidFieldsSpecified" FederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque FederatedAuthRequestIssueReason = "RelyingPartyOriginIsOpaque" FederatedAuthRequestIssueReasonTypeNotMatching FederatedAuthRequestIssueReason = "TypeNotMatching" )
FederatedAuthRequestIssueReason values.
func (FederatedAuthRequestIssueReason) MarshalEasyJSON ¶
func (t FederatedAuthRequestIssueReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (FederatedAuthRequestIssueReason) MarshalJSON ¶
func (t FederatedAuthRequestIssueReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (FederatedAuthRequestIssueReason) String ¶
func (t FederatedAuthRequestIssueReason) String() string
String returns the FederatedAuthRequestIssueReason as string value.
func (*FederatedAuthRequestIssueReason) UnmarshalEasyJSON ¶
func (t *FederatedAuthRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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].
func (FederatedAuthUserInfoRequestIssueDetails) MarshalEasyJSON ¶
func (v FederatedAuthUserInfoRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (FederatedAuthUserInfoRequestIssueDetails) MarshalJSON ¶
func (v FederatedAuthUserInfoRequestIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*FederatedAuthUserInfoRequestIssueDetails) UnmarshalEasyJSON ¶
func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*FederatedAuthUserInfoRequestIssueDetails) UnmarshalJSON ¶
func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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) MarshalEasyJSON ¶
func (t FederatedAuthUserInfoRequestIssueReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (FederatedAuthUserInfoRequestIssueReason) MarshalJSON ¶
func (t FederatedAuthUserInfoRequestIssueReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (FederatedAuthUserInfoRequestIssueReason) String ¶
func (t FederatedAuthUserInfoRequestIssueReason) String() string
String returns the FederatedAuthUserInfoRequestIssueReason as string value.
func (*FederatedAuthUserInfoRequestIssueReason) UnmarshalEasyJSON ¶
func (t *FederatedAuthUserInfoRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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"` ViolatingNodeID cdp.BackendNodeID `json:"violatingNodeId,omitempty"` ViolatingNodeAttribute string `json:"violatingNodeAttribute,omitempty"` Request *AffectedRequest `json:"request,omitempty"` }
GenericIssueDetails depending on the concrete errorType, different properties are set.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-GenericIssueDetails
func (GenericIssueDetails) MarshalEasyJSON ¶
func (v GenericIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GenericIssueDetails) MarshalJSON ¶
func (v GenericIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GenericIssueDetails) UnmarshalEasyJSON ¶
func (v *GenericIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GenericIssueDetails) UnmarshalJSON ¶
func (v *GenericIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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" GenericIssueErrorTypeFormAriaLabelledByToNonExistingID GenericIssueErrorType = "FormAriaLabelledByToNonExistingId" GenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError GenericIssueErrorType = "FormInputAssignedAutocompleteValueToIdOrNameAttributeError" GenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput GenericIssueErrorType = "FormLabelHasNeitherForNorNestedInput" GenericIssueErrorTypeFormLabelForMatchesNonExistingIDError GenericIssueErrorType = "FormLabelForMatchesNonExistingIdError" GenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError GenericIssueErrorType = "FormInputHasWrongButWellIntendedAutocompleteValueError" GenericIssueErrorTypeResponseWasBlockedByORB GenericIssueErrorType = "ResponseWasBlockedByORB" )
GenericIssueErrorType values.
func (GenericIssueErrorType) MarshalEasyJSON ¶
func (t GenericIssueErrorType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (GenericIssueErrorType) MarshalJSON ¶
func (t GenericIssueErrorType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (GenericIssueErrorType) String ¶
func (t GenericIssueErrorType) String() string
String returns the GenericIssueErrorType as string value.
func (*GenericIssueErrorType) UnmarshalEasyJSON ¶
func (t *GenericIssueErrorType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*GenericIssueErrorType) UnmarshalJSON ¶
func (t *GenericIssueErrorType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type GetEncodedResponseEncoding ¶
type GetEncodedResponseEncoding string
GetEncodedResponseEncoding the encoding to use.
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#method-getEncodedResponse
const ( GetEncodedResponseEncodingWebp GetEncodedResponseEncoding = "webp" GetEncodedResponseEncodingJpeg GetEncodedResponseEncoding = "jpeg" GetEncodedResponseEncodingPng GetEncodedResponseEncoding = "png" )
GetEncodedResponseEncoding values.
func (GetEncodedResponseEncoding) MarshalEasyJSON ¶
func (t GetEncodedResponseEncoding) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (GetEncodedResponseEncoding) MarshalJSON ¶
func (t GetEncodedResponseEncoding) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (GetEncodedResponseEncoding) String ¶
func (t GetEncodedResponseEncoding) String() string
String returns the GetEncodedResponseEncoding as string value.
func (*GetEncodedResponseEncoding) UnmarshalEasyJSON ¶
func (t *GetEncodedResponseEncoding) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*GetEncodedResponseEncoding) UnmarshalJSON ¶
func (t *GetEncodedResponseEncoding) 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 GetEncodedResponseEncoding `json:"encoding"` // The encoding to use. 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). }
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 GetEncodedResponseEncoding) *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) MarshalEasyJSON ¶
func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetEncodedResponseParams) MarshalJSON ¶
func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetEncodedResponseParams) UnmarshalEasyJSON ¶
func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetEncodedResponseParams) UnmarshalJSON ¶
func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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"` // The encoded body as a base64 string. Omitted if sizeOnly is true. OriginalSize int64 `json:"originalSize,omitempty"` // Size before re-encoding. EncodedSize int64 `json:"encodedSize,omitempty"` // Size after re-encoding. }
GetEncodedResponseReturns return values.
func (GetEncodedResponseReturns) MarshalEasyJSON ¶
func (v GetEncodedResponseReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetEncodedResponseReturns) MarshalJSON ¶
func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetEncodedResponseReturns) UnmarshalEasyJSON ¶
func (v *GetEncodedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetEncodedResponseReturns) UnmarshalJSON ¶
func (v *GetEncodedResponseReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (HeavyAdIssueDetails) MarshalEasyJSON ¶
func (v HeavyAdIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HeavyAdIssueDetails) MarshalJSON ¶
func (v HeavyAdIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HeavyAdIssueDetails) UnmarshalEasyJSON ¶
func (v *HeavyAdIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HeavyAdIssueDetails) UnmarshalJSON ¶
func (v *HeavyAdIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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) MarshalEasyJSON ¶
func (t HeavyAdReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (HeavyAdReason) MarshalJSON ¶
func (t HeavyAdReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (HeavyAdReason) String ¶
func (t HeavyAdReason) String() string
String returns the HeavyAdReason as string value.
func (*HeavyAdReason) UnmarshalEasyJSON ¶
func (t *HeavyAdReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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) MarshalEasyJSON ¶
func (t HeavyAdResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (HeavyAdResolutionStatus) MarshalJSON ¶
func (t HeavyAdResolutionStatus) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (HeavyAdResolutionStatus) String ¶
func (t HeavyAdResolutionStatus) String() string
String returns the HeavyAdResolutionStatus as string value.
func (*HeavyAdResolutionStatus) UnmarshalEasyJSON ¶
func (t *HeavyAdResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*HeavyAdResolutionStatus) UnmarshalJSON ¶
func (t *HeavyAdResolutionStatus) 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"` // 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
func (InspectorIssue) MarshalEasyJSON ¶
func (v InspectorIssue) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InspectorIssue) MarshalJSON ¶
func (v InspectorIssue) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InspectorIssue) UnmarshalEasyJSON ¶
func (v *InspectorIssue) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InspectorIssue) UnmarshalJSON ¶
func (v *InspectorIssue) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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" InspectorIssueCodeLowTextContrastIssue InspectorIssueCode = "LowTextContrastIssue" InspectorIssueCodeCorsIssue InspectorIssueCode = "CorsIssue" InspectorIssueCodeAttributionReportingIssue InspectorIssueCode = "AttributionReportingIssue" InspectorIssueCodeQuirksModeIssue InspectorIssueCode = "QuirksModeIssue" 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" )
InspectorIssueCode values.
func (InspectorIssueCode) MarshalEasyJSON ¶
func (t InspectorIssueCode) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (InspectorIssueCode) MarshalJSON ¶
func (t InspectorIssueCode) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (InspectorIssueCode) String ¶
func (t InspectorIssueCode) String() string
String returns the InspectorIssueCode as string value.
func (*InspectorIssueCode) UnmarshalEasyJSON ¶
func (t *InspectorIssueCode) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*InspectorIssueCode) UnmarshalJSON ¶
func (t *InspectorIssueCode) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type InspectorIssueDetails ¶
type InspectorIssueDetails struct { CookieIssueDetails *CookieIssueDetails `json:"cookieIssueDetails,omitempty"` MixedContentIssueDetails *MixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty"` BlockedByResponseIssueDetails *BlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty"` HeavyAdIssueDetails *HeavyAdIssueDetails `json:"heavyAdIssueDetails,omitempty"` ContentSecurityPolicyIssueDetails *ContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty"` LowTextContrastIssueDetails *LowTextContrastIssueDetails `json:"lowTextContrastIssueDetails,omitempty"` CorsIssueDetails *CorsIssueDetails `json:"corsIssueDetails,omitempty"` AttributionReportingIssueDetails *AttributionReportingIssueDetails `json:"attributionReportingIssueDetails,omitempty"` QuirksModeIssueDetails *QuirksModeIssueDetails `json:"quirksModeIssueDetails,omitempty"` GenericIssueDetails *GenericIssueDetails `json:"genericIssueDetails,omitempty"` DeprecationIssueDetails *DeprecationIssueDetails `json:"deprecationIssueDetails,omitempty"` ClientHintIssueDetails *ClientHintIssueDetails `json:"clientHintIssueDetails,omitempty"` FederatedAuthRequestIssueDetails *FederatedAuthRequestIssueDetails `json:"federatedAuthRequestIssueDetails,omitempty"` BounceTrackingIssueDetails *BounceTrackingIssueDetails `json:"bounceTrackingIssueDetails,omitempty"` CookieDeprecationMetadataIssueDetails *CookieDeprecationMetadataIssueDetails `json:"cookieDeprecationMetadataIssueDetails,omitempty"` StylesheetLoadingIssueDetails *StylesheetLoadingIssueDetails `json:"stylesheetLoadingIssueDetails,omitempty"` PropertyRuleIssueDetails *PropertyRuleIssueDetails `json:"propertyRuleIssueDetails,omitempty"` FederatedAuthUserInfoRequestIssueDetails *FederatedAuthUserInfoRequestIssueDetails `json:"federatedAuthUserInfoRequestIssueDetails,omitempty"` }
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
func (InspectorIssueDetails) MarshalEasyJSON ¶
func (v InspectorIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (InspectorIssueDetails) MarshalJSON ¶
func (v InspectorIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*InspectorIssueDetails) UnmarshalEasyJSON ¶
func (v *InspectorIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*InspectorIssueDetails) UnmarshalJSON ¶
func (v *InspectorIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 LowTextContrastIssueDetails ¶
type LowTextContrastIssueDetails struct { ViolatingNodeID cdp.BackendNodeID `json:"violatingNodeId"` ViolatingNodeSelector string `json:"violatingNodeSelector"` ContrastRatio float64 `json:"contrastRatio"` ThresholdAA float64 `json:"thresholdAA"` ThresholdAAA float64 `json:"thresholdAAA"` FontSize string `json:"fontSize"` FontWeight string `json:"fontWeight"` }
LowTextContrastIssueDetails [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-LowTextContrastIssueDetails
func (LowTextContrastIssueDetails) MarshalEasyJSON ¶
func (v LowTextContrastIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (LowTextContrastIssueDetails) MarshalJSON ¶
func (v LowTextContrastIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*LowTextContrastIssueDetails) UnmarshalEasyJSON ¶
func (v *LowTextContrastIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*LowTextContrastIssueDetails) UnmarshalJSON ¶
func (v *LowTextContrastIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type MixedContentIssueDetails ¶
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 [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-MixedContentIssueDetails
func (MixedContentIssueDetails) MarshalEasyJSON ¶
func (v MixedContentIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (MixedContentIssueDetails) MarshalJSON ¶
func (v MixedContentIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*MixedContentIssueDetails) UnmarshalEasyJSON ¶
func (v *MixedContentIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*MixedContentIssueDetails) UnmarshalJSON ¶
func (v *MixedContentIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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) MarshalEasyJSON ¶
func (t MixedContentResolutionStatus) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (MixedContentResolutionStatus) MarshalJSON ¶
func (t MixedContentResolutionStatus) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (MixedContentResolutionStatus) String ¶
func (t MixedContentResolutionStatus) String() string
String returns the MixedContentResolutionStatus as string value.
func (*MixedContentResolutionStatus) UnmarshalEasyJSON ¶
func (t *MixedContentResolutionStatus) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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 ( 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" 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) MarshalEasyJSON ¶
func (t MixedContentResourceType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (MixedContentResourceType) MarshalJSON ¶
func (t MixedContentResourceType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (MixedContentResourceType) String ¶
func (t MixedContentResourceType) String() string
String returns the MixedContentResourceType as string value.
func (*MixedContentResourceType) UnmarshalEasyJSON ¶
func (t *MixedContentResourceType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*MixedContentResourceType) UnmarshalJSON ¶
func (t *MixedContentResourceType) 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"` // 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
func (PropertyRuleIssueDetails) MarshalEasyJSON ¶
func (v PropertyRuleIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PropertyRuleIssueDetails) MarshalJSON ¶
func (v PropertyRuleIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PropertyRuleIssueDetails) UnmarshalEasyJSON ¶
func (v *PropertyRuleIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PropertyRuleIssueDetails) UnmarshalJSON ¶
func (v *PropertyRuleIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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) MarshalEasyJSON ¶
func (t PropertyRuleIssueReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (PropertyRuleIssueReason) MarshalJSON ¶
func (t PropertyRuleIssueReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (PropertyRuleIssueReason) String ¶
func (t PropertyRuleIssueReason) String() string
String returns the PropertyRuleIssueReason as string value.
func (*PropertyRuleIssueReason) UnmarshalEasyJSON ¶
func (t *PropertyRuleIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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
func (QuirksModeIssueDetails) MarshalEasyJSON ¶
func (v QuirksModeIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (QuirksModeIssueDetails) MarshalJSON ¶
func (v QuirksModeIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*QuirksModeIssueDetails) UnmarshalEasyJSON ¶
func (v *QuirksModeIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*QuirksModeIssueDetails) UnmarshalJSON ¶
func (v *QuirksModeIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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
func (SharedArrayBufferIssueDetails) MarshalEasyJSON ¶
func (v SharedArrayBufferIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SharedArrayBufferIssueDetails) MarshalJSON ¶
func (v SharedArrayBufferIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SharedArrayBufferIssueDetails) UnmarshalEasyJSON ¶
func (v *SharedArrayBufferIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SharedArrayBufferIssueDetails) UnmarshalJSON ¶
func (v *SharedArrayBufferIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SharedArrayBufferIssueType ¶
type SharedArrayBufferIssueType string
SharedArrayBufferIssueType [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-SharedArrayBufferIssueType
const ()
SharedArrayBufferIssueType values.
func (SharedArrayBufferIssueType) MarshalEasyJSON ¶
func (t SharedArrayBufferIssueType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (SharedArrayBufferIssueType) MarshalJSON ¶
func (t SharedArrayBufferIssueType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (SharedArrayBufferIssueType) String ¶
func (t SharedArrayBufferIssueType) String() string
String returns the SharedArrayBufferIssueType as string value.
func (*SharedArrayBufferIssueType) UnmarshalEasyJSON ¶
func (t *SharedArrayBufferIssueType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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) MarshalEasyJSON ¶
func (t SharedDictionaryError) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (SharedDictionaryError) MarshalJSON ¶
func (t SharedDictionaryError) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (SharedDictionaryError) String ¶
func (t SharedDictionaryError) String() string
String returns the SharedDictionaryError as string value.
func (*SharedDictionaryError) UnmarshalEasyJSON ¶
func (t *SharedDictionaryError) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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
func (SharedDictionaryIssueDetails) MarshalEasyJSON ¶
func (v SharedDictionaryIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SharedDictionaryIssueDetails) MarshalJSON ¶
func (v SharedDictionaryIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SharedDictionaryIssueDetails) UnmarshalEasyJSON ¶
func (v *SharedDictionaryIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SharedDictionaryIssueDetails) UnmarshalJSON ¶
func (v *SharedDictionaryIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SourceCodeLocation ¶
type SourceCodeLocation struct { ScriptID runtime.ScriptID `json:"scriptId,omitempty"` 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
func (SourceCodeLocation) MarshalEasyJSON ¶
func (v SourceCodeLocation) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SourceCodeLocation) MarshalJSON ¶
func (v SourceCodeLocation) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SourceCodeLocation) UnmarshalEasyJSON ¶
func (v *SourceCodeLocation) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SourceCodeLocation) UnmarshalJSON ¶
func (v *SourceCodeLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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) MarshalEasyJSON ¶
func (t StyleSheetLoadingIssueReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (StyleSheetLoadingIssueReason) MarshalJSON ¶
func (t StyleSheetLoadingIssueReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (StyleSheetLoadingIssueReason) String ¶
func (t StyleSheetLoadingIssueReason) String() string
String returns the StyleSheetLoadingIssueReason as string value.
func (*StyleSheetLoadingIssueReason) UnmarshalEasyJSON ¶
func (t *StyleSheetLoadingIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
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"` // 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
func (StylesheetLoadingIssueDetails) MarshalEasyJSON ¶
func (v StylesheetLoadingIssueDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StylesheetLoadingIssueDetails) MarshalJSON ¶
func (v StylesheetLoadingIssueDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StylesheetLoadingIssueDetails) UnmarshalEasyJSON ¶
func (v *StylesheetLoadingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StylesheetLoadingIssueDetails) UnmarshalJSON ¶
func (v *StylesheetLoadingIssueDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface