audits

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 7 Imported by: 5

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

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

Types

type AffectedCookie added in v0.26.0

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

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

type AffectedFrame added in v0.29.0

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

AffectedFrame Information about the frame affected by an inspector issue.

type AffectedRequest added in v0.29.0

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

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

type AttributionReportingIssueDetails added in v0.32.0

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

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

type AttributionReportingIssueType added in v0.32.0

type AttributionReportingIssueType string

AttributionReportingIssueType

const (
	AttributionReportingIssueTypeNotSet                               AttributionReportingIssueType = ""
	AttributionReportingIssueTypePermissionPolicyDisabled             AttributionReportingIssueType = "PermissionPolicyDisabled"
	AttributionReportingIssueTypeInvalidAttributionSourceEventID      AttributionReportingIssueType = "InvalidAttributionSourceEventId"
	AttributionReportingIssueTypeInvalidAttributionData               AttributionReportingIssueType = "InvalidAttributionData"
	AttributionReportingIssueTypeAttributionSourceUntrustworthyOrigin AttributionReportingIssueType = "AttributionSourceUntrustworthyOrigin"
	AttributionReportingIssueTypeAttributionUntrustworthyOrigin       AttributionReportingIssueType = "AttributionUntrustworthyOrigin"
)

AttributionReportingIssueType as enums.

func (AttributionReportingIssueType) String added in v0.32.0

func (AttributionReportingIssueType) Valid added in v0.32.0

type BlockedByResponseIssueDetails added in v0.29.0

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

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

type BlockedByResponseReason added in v0.29.0

type BlockedByResponseReason string

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

const (
	BlockedByResponseReasonNotSet                                            BlockedByResponseReason = ""
	BlockedByResponseReasonCoepFrameResourceNeedsCoepHeader                  BlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader"
	BlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage       BlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage"
	BlockedByResponseReasonCorpNotSameOrigin                                 BlockedByResponseReason = "CorpNotSameOrigin"
	BlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep"
	BlockedByResponseReasonCorpNotSameSite                                   BlockedByResponseReason = "CorpNotSameSite"
)

BlockedByResponseReason as enums.

func (BlockedByResponseReason) String added in v0.29.0

func (e BlockedByResponseReason) String() string

func (BlockedByResponseReason) Valid added in v0.29.0

func (e BlockedByResponseReason) Valid() bool

type CORSIssueDetails added in v0.31.0

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

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

type CheckContrastArgs added in v0.31.0

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

CheckContrastArgs represents the arguments for CheckContrast in the Audits domain.

func NewCheckContrastArgs added in v0.31.0

func NewCheckContrastArgs() *CheckContrastArgs

NewCheckContrastArgs initializes CheckContrastArgs with the required arguments.

func (*CheckContrastArgs) SetReportAAA added in v0.31.0

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

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

type ContentSecurityPolicyIssueDetails added in v0.31.0

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

ContentSecurityPolicyIssueDetails

type ContentSecurityPolicyViolationType added in v0.31.0

type ContentSecurityPolicyViolationType string

ContentSecurityPolicyViolationType

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

ContentSecurityPolicyViolationType as enums.

func (ContentSecurityPolicyViolationType) String added in v0.31.0

func (ContentSecurityPolicyViolationType) Valid added in v0.31.0

type GetEncodedResponseArgs

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

GetEncodedResponseArgs represents the arguments for GetEncodedResponse in the Audits domain.

func NewGetEncodedResponseArgs

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

NewGetEncodedResponseArgs initializes GetEncodedResponseArgs with the required arguments.

func (*GetEncodedResponseArgs) SetQuality

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

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

func (*GetEncodedResponseArgs) SetSizeOnly

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

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

type GetEncodedResponseReply

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

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

type HeavyAdIssueDetails added in v0.31.0

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

HeavyAdIssueDetails

type HeavyAdReason added in v0.31.0

type HeavyAdReason string

HeavyAdReason

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

HeavyAdReason as enums.

func (HeavyAdReason) String added in v0.31.0

func (e HeavyAdReason) String() string

func (HeavyAdReason) Valid added in v0.31.0

func (e HeavyAdReason) Valid() bool

type HeavyAdResolutionStatus added in v0.31.0

type HeavyAdResolutionStatus string

HeavyAdResolutionStatus

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

HeavyAdResolutionStatus as enums.

func (HeavyAdResolutionStatus) String added in v0.31.0

func (e HeavyAdResolutionStatus) String() string

func (HeavyAdResolutionStatus) Valid added in v0.31.0

func (e HeavyAdResolutionStatus) Valid() bool

type InspectorIssue added in v0.26.0

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

InspectorIssue An inspector issue reported from the back-end.

type InspectorIssueCode added in v0.26.0

type InspectorIssueCode string

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

const (
	InspectorIssueCodeNotSet                            InspectorIssueCode = ""
	InspectorIssueCodeSameSiteCookieIssue               InspectorIssueCode = "SameSiteCookieIssue"
	InspectorIssueCodeMixedContentIssue                 InspectorIssueCode = "MixedContentIssue"
	InspectorIssueCodeBlockedByResponseIssue            InspectorIssueCode = "BlockedByResponseIssue"
	InspectorIssueCodeHeavyAdIssue                      InspectorIssueCode = "HeavyAdIssue"
	InspectorIssueCodeContentSecurityPolicyIssue        InspectorIssueCode = "ContentSecurityPolicyIssue"
	InspectorIssueCodeSharedArrayBufferIssue            InspectorIssueCode = "SharedArrayBufferIssue"
	InspectorIssueCodeTrustedWebActivityIssue           InspectorIssueCode = "TrustedWebActivityIssue"
	InspectorIssueCodeLowTextContrastIssue              InspectorIssueCode = "LowTextContrastIssue"
	InspectorIssueCodeCORSIssue                         InspectorIssueCode = "CorsIssue"
	InspectorIssueCodeAttributionReportingIssue         InspectorIssueCode = "AttributionReportingIssue"
	InspectorIssueCodeQuirksModeIssue                   InspectorIssueCode = "QuirksModeIssue"
	InspectorIssueCodeNavigatorUserAgentIssue           InspectorIssueCode = "NavigatorUserAgentIssue"
	InspectorIssueCodeWASMCrossOriginModuleSharingIssue InspectorIssueCode = "WasmCrossOriginModuleSharingIssue"
)

InspectorIssueCode as enums.

func (InspectorIssueCode) String added in v0.26.0

func (e InspectorIssueCode) String() string

func (InspectorIssueCode) Valid added in v0.26.0

func (e InspectorIssueCode) Valid() bool

type InspectorIssueDetails added in v0.26.0

type InspectorIssueDetails struct {
	SameSiteCookieIssueDetails        *SameSiteCookieIssueDetails               `json:"sameSiteCookieIssueDetails,omitempty"`        // No description.
	MixedContentIssueDetails          *MixedContentIssueDetails                 `json:"mixedContentIssueDetails,omitempty"`          // No description.
	BlockedByResponseIssueDetails     *BlockedByResponseIssueDetails            `json:"blockedByResponseIssueDetails,omitempty"`     // No description.
	HeavyAdIssueDetails               *HeavyAdIssueDetails                      `json:"heavyAdIssueDetails,omitempty"`               // No description.
	ContentSecurityPolicyIssueDetails *ContentSecurityPolicyIssueDetails        `json:"contentSecurityPolicyIssueDetails,omitempty"` // No description.
	SharedArrayBufferIssueDetails     *SharedArrayBufferIssueDetails            `json:"sharedArrayBufferIssueDetails,omitempty"`     // No description.
	TwaQualityEnforcementDetails      *TrustedWebActivityIssueDetails           `json:"twaQualityEnforcementDetails,omitempty"`      // No description.
	LowTextContrastIssueDetails       *LowTextContrastIssueDetails              `json:"lowTextContrastIssueDetails,omitempty"`       // No description.
	CORSIssueDetails                  *CORSIssueDetails                         `json:"corsIssueDetails,omitempty"`                  // No description.
	AttributionReportingIssueDetails  *AttributionReportingIssueDetails         `json:"attributionReportingIssueDetails,omitempty"`  // No description.
	QuirksModeIssueDetails            *QuirksModeIssueDetails                   `json:"quirksModeIssueDetails,omitempty"`            // No description.
	NavigatorUserAgentIssueDetails    *NavigatorUserAgentIssueDetails           `json:"navigatorUserAgentIssueDetails,omitempty"`    // No description.
	WASMCrossOriginModuleSharingIssue *WASMCrossOriginModuleSharingIssueDetails `json:"wasmCrossOriginModuleSharingIssue,omitempty"` // No description.
}

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

type IssueAddedClient added in v0.26.0

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

IssueAddedClient is a client for IssueAdded events.

type IssueAddedReply added in v0.26.0

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

IssueAddedReply is the reply for IssueAdded events.

type IssueID added in v0.32.0

type IssueID string

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

type LowTextContrastIssueDetails added in v0.31.0

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

LowTextContrastIssueDetails

type MixedContentIssueDetails added in v0.29.0

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

MixedContentIssueDetails

type MixedContentResolutionStatus added in v0.29.0

type MixedContentResolutionStatus string

MixedContentResolutionStatus

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

MixedContentResolutionStatus as enums.

func (MixedContentResolutionStatus) String added in v0.29.0

func (MixedContentResolutionStatus) Valid added in v0.29.0

type MixedContentResourceType added in v0.29.0

type MixedContentResourceType string

MixedContentResourceType

const (
	MixedContentResourceTypeNotSet         MixedContentResourceType = ""
	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"
	MixedContentResourceTypeManifest       MixedContentResourceType = "Manifest"
	MixedContentResourceTypePing           MixedContentResourceType = "Ping"
	MixedContentResourceTypePluginData     MixedContentResourceType = "PluginData"
	MixedContentResourceTypePluginResource MixedContentResourceType = "PluginResource"
	MixedContentResourceTypePrefetch       MixedContentResourceType = "Prefetch"
	MixedContentResourceTypeResource       MixedContentResourceType = "Resource"
	MixedContentResourceTypeScript         MixedContentResourceType = "Script"
	MixedContentResourceTypeServiceWorker  MixedContentResourceType = "ServiceWorker"
	MixedContentResourceTypeSharedWorker   MixedContentResourceType = "SharedWorker"
	MixedContentResourceTypeStylesheet     MixedContentResourceType = "Stylesheet"
	MixedContentResourceTypeTrack          MixedContentResourceType = "Track"
	MixedContentResourceTypeVideo          MixedContentResourceType = "Video"
	MixedContentResourceTypeWorker         MixedContentResourceType = "Worker"
	MixedContentResourceTypeXMLHttpRequest MixedContentResourceType = "XMLHttpRequest"
	MixedContentResourceTypeXSLT           MixedContentResourceType = "XSLT"
)

MixedContentResourceType as enums.

func (MixedContentResourceType) String added in v0.29.0

func (e MixedContentResourceType) String() string

func (MixedContentResourceType) Valid added in v0.29.0

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

NavigatorUserAgentIssueDetails

type QuirksModeIssueDetails added in v0.32.0

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

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

type SameSiteCookieExclusionReason added in v0.26.0

type SameSiteCookieExclusionReason string

SameSiteCookieExclusionReason

const (
	SameSiteCookieExclusionReasonNotSet                                 SameSiteCookieExclusionReason = ""
	SameSiteCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax SameSiteCookieExclusionReason = "ExcludeSameSiteUnspecifiedTreatedAsLax"
	SameSiteCookieExclusionReasonExcludeSameSiteNoneInsecure            SameSiteCookieExclusionReason = "ExcludeSameSiteNoneInsecure"
	SameSiteCookieExclusionReasonExcludeSameSiteLax                     SameSiteCookieExclusionReason = "ExcludeSameSiteLax"
	SameSiteCookieExclusionReasonExcludeSameSiteStrict                  SameSiteCookieExclusionReason = "ExcludeSameSiteStrict"
	SameSiteCookieExclusionReasonExcludeInvalidSameParty                SameSiteCookieExclusionReason = "ExcludeInvalidSameParty"
)

SameSiteCookieExclusionReason as enums.

func (SameSiteCookieExclusionReason) String added in v0.26.0

func (SameSiteCookieExclusionReason) Valid added in v0.26.0

type SameSiteCookieIssueDetails added in v0.26.0

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

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

type SameSiteCookieOperation added in v0.29.0

type SameSiteCookieOperation string

SameSiteCookieOperation

const (
	SameSiteCookieOperationNotSet     SameSiteCookieOperation = ""
	SameSiteCookieOperationSetCookie  SameSiteCookieOperation = "SetCookie"
	SameSiteCookieOperationReadCookie SameSiteCookieOperation = "ReadCookie"
)

SameSiteCookieOperation as enums.

func (SameSiteCookieOperation) String added in v0.29.0

func (e SameSiteCookieOperation) String() string

func (SameSiteCookieOperation) Valid added in v0.29.0

func (e SameSiteCookieOperation) Valid() bool

type SameSiteCookieWarningReason added in v0.26.0

type SameSiteCookieWarningReason string

SameSiteCookieWarningReason

const (
	SameSiteCookieWarningReasonNotSet                                  SameSiteCookieWarningReason = ""
	SameSiteCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext SameSiteCookieWarningReason = "WarnSameSiteUnspecifiedCrossSiteContext"
	SameSiteCookieWarningReasonWarnSameSiteNoneInsecure                SameSiteCookieWarningReason = "WarnSameSiteNoneInsecure"
	SameSiteCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe   SameSiteCookieWarningReason = "WarnSameSiteUnspecifiedLaxAllowUnsafe"
	SameSiteCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict    SameSiteCookieWarningReason = "WarnSameSiteStrictLaxDowngradeStrict"
	SameSiteCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict  SameSiteCookieWarningReason = "WarnSameSiteStrictCrossDowngradeStrict"
	SameSiteCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax     SameSiteCookieWarningReason = "WarnSameSiteStrictCrossDowngradeLax"
	SameSiteCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict     SameSiteCookieWarningReason = "WarnSameSiteLaxCrossDowngradeStrict"
	SameSiteCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax        SameSiteCookieWarningReason = "WarnSameSiteLaxCrossDowngradeLax"
)

SameSiteCookieWarningReason as enums.

func (SameSiteCookieWarningReason) String added in v0.26.0

func (SameSiteCookieWarningReason) Valid added in v0.26.0

type SharedArrayBufferIssueDetails added in v0.31.0

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

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

type SharedArrayBufferIssueType added in v0.31.0

type SharedArrayBufferIssueType string

SharedArrayBufferIssueType

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

SharedArrayBufferIssueType as enums.

func (SharedArrayBufferIssueType) String added in v0.31.0

func (SharedArrayBufferIssueType) Valid added in v0.31.0

func (e SharedArrayBufferIssueType) Valid() bool

type SourceCodeLocation added in v0.31.0

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

SourceCodeLocation

type TrustedWebActivityIssueDetails added in v0.31.0

type TrustedWebActivityIssueDetails struct {
	URL            string                             `json:"url"`                      // The url that triggers the violation.
	ViolationType  TwaQualityEnforcementViolationType `json:"violationType"`            // No description.
	HTTPStatusCode *int                               `json:"httpStatusCode,omitempty"` // No description.
	PackageName    *string                            `json:"packageName,omitempty"`    // The package name of the Trusted Web Activity client app. This field is only used when violation type is kDigitalAssetLinks.
	Signature      *string                            `json:"signature,omitempty"`      // The signature of the Trusted Web Activity client app. This field is only used when violation type is kDigitalAssetLinks.
}

TrustedWebActivityIssueDetails

type TwaQualityEnforcementViolationType added in v0.31.0

type TwaQualityEnforcementViolationType string

TwaQualityEnforcementViolationType

const (
	TwaQualityEnforcementViolationTypeNotSet              TwaQualityEnforcementViolationType = ""
	TwaQualityEnforcementViolationTypeKHttpError          TwaQualityEnforcementViolationType = "kHttpError"
	TwaQualityEnforcementViolationTypeKUnavailableOffline TwaQualityEnforcementViolationType = "kUnavailableOffline"
	TwaQualityEnforcementViolationTypeKDigitalAssetLinks  TwaQualityEnforcementViolationType = "kDigitalAssetLinks"
)

TwaQualityEnforcementViolationType as enums.

func (TwaQualityEnforcementViolationType) String added in v0.31.0

func (TwaQualityEnforcementViolationType) Valid added in v0.31.0

type WASMCrossOriginModuleSharingIssueDetails added in v0.32.0

type WASMCrossOriginModuleSharingIssueDetails struct {
	WASMModuleURL string `json:"wasmModuleUrl"` // No description.
	SourceOrigin  string `json:"sourceOrigin"`  // No description.
	TargetOrigin  string `json:"targetOrigin"`  // No description.
	IsWarning     bool   `json:"isWarning"`     // No description.
}

WASMCrossOriginModuleSharingIssueDetails

Jump to

Keyboard shortcuts

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