diff --git a/audits/easyjson.go b/audits/easyjson.go index e8b3a0d..8468d98 100644 --- a/audits/easyjson.go +++ b/audits/easyjson.go @@ -891,6 +891,16 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(in *jlexer.Lexer, out } (*out.BounceTrackingIssueDetails).UnmarshalEasyJSON(in) } + case "cookieDeprecationMetadataIssueDetails": + if in.IsNull() { + in.Skip() + out.CookieDeprecationMetadataIssueDetails = nil + } else { + if out.CookieDeprecationMetadataIssueDetails == nil { + out.CookieDeprecationMetadataIssueDetails = new(CookieDeprecationMetadataIssueDetails) + } + (*out.CookieDeprecationMetadataIssueDetails).UnmarshalEasyJSON(in) + } case "stylesheetLoadingIssueDetails": if in.IsNull() { in.Skip() @@ -1081,6 +1091,16 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(out *jwriter.Writer, } (*in.BounceTrackingIssueDetails).MarshalEasyJSON(out) } + if in.CookieDeprecationMetadataIssueDetails != nil { + const prefix string = ",\"cookieDeprecationMetadataIssueDetails\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + (*in.CookieDeprecationMetadataIssueDetails).MarshalEasyJSON(out) + } if in.StylesheetLoadingIssueDetails != nil { const prefix string = ",\"stylesheetLoadingIssueDetails\":" if first { @@ -2469,7 +2489,105 @@ func (v *CookieIssueDetails) UnmarshalJSON(data []byte) error { func (v *CookieIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(in *jlexer.Lexer, out *ContentSecurityPolicyIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(in *jlexer.Lexer, out *CookieDeprecationMetadataIssueDetails) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "allowedSites": + if in.IsNull() { + in.Skip() + out.AllowedSites = nil + } else { + in.Delim('[') + if out.AllowedSites == nil { + if !in.IsDelim(']') { + out.AllowedSites = make([]string, 0, 4) + } else { + out.AllowedSites = []string{} + } + } else { + out.AllowedSites = (out.AllowedSites)[:0] + } + for !in.IsDelim(']') { + var v7 string + v7 = string(in.String()) + out.AllowedSites = append(out.AllowedSites, v7) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(out *jwriter.Writer, in CookieDeprecationMetadataIssueDetails) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"allowedSites\":" + out.RawString(prefix[1:]) + if in.AllowedSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.AllowedSites { + if v8 > 0 { + out.RawByte(',') + } + out.String(string(v9)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CookieDeprecationMetadataIssueDetails) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CookieDeprecationMetadataIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CookieDeprecationMetadataIssueDetails) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CookieDeprecationMetadataIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(in *jlexer.Lexer, out *ContentSecurityPolicyIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2528,7 +2646,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(out *jwriter.Writer, in ContentSecurityPolicyIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(out *jwriter.Writer, in ContentSecurityPolicyIssueDetails) { out.RawByte('{') first := true _ = first @@ -2579,27 +2697,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ContentSecurityPolicyIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ContentSecurityPolicyIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ContentSecurityPolicyIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(in *jlexer.Lexer, out *ClientHintIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, out *ClientHintIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2640,7 +2758,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(out *jwriter.Writer, in ClientHintIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, in ClientHintIssueDetails) { out.RawByte('{') first := true _ = first @@ -2664,27 +2782,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClientHintIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClientHintIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClientHintIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClientHintIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, out *CheckFormsIssuesReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(in *jlexer.Lexer, out *CheckFormsIssuesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2719,17 +2837,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, ou out.FormIssues = (out.FormIssues)[:0] } for !in.IsDelim(']') { - var v7 *GenericIssueDetails + var v10 *GenericIssueDetails if in.IsNull() { in.Skip() - v7 = nil + v10 = nil } else { - if v7 == nil { - v7 = new(GenericIssueDetails) + if v10 == nil { + v10 = new(GenericIssueDetails) } - (*v7).UnmarshalEasyJSON(in) + (*v10).UnmarshalEasyJSON(in) } - out.FormIssues = append(out.FormIssues, v7) + out.FormIssues = append(out.FormIssues, v10) in.WantComma() } in.Delim(']') @@ -2744,7 +2862,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, in CheckFormsIssuesReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(out *jwriter.Writer, in CheckFormsIssuesReturns) { out.RawByte('{') first := true _ = first @@ -2754,14 +2872,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, out.RawString(prefix[1:]) { out.RawByte('[') - for v8, v9 := range in.FormIssues { - if v8 > 0 { + for v11, v12 := range in.FormIssues { + if v11 > 0 { out.RawByte(',') } - if v9 == nil { + if v12 == nil { out.RawString("null") } else { - (*v9).MarshalEasyJSON(out) + (*v12).MarshalEasyJSON(out) } } out.RawByte(']') @@ -2773,27 +2891,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CheckFormsIssuesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CheckFormsIssuesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CheckFormsIssuesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CheckFormsIssuesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(in *jlexer.Lexer, out *CheckFormsIssuesParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(in *jlexer.Lexer, out *CheckFormsIssuesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2822,7 +2940,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(out *jwriter.Writer, in CheckFormsIssuesParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(out *jwriter.Writer, in CheckFormsIssuesParams) { out.RawByte('{') first := true _ = first @@ -2832,27 +2950,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CheckFormsIssuesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CheckFormsIssuesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CheckFormsIssuesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CheckFormsIssuesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(in *jlexer.Lexer, out *CheckContrastParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, out *CheckContrastParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2883,7 +3001,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(out *jwriter.Writer, in CheckContrastParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, in CheckContrastParams) { out.RawByte('{') first := true _ = first @@ -2899,27 +3017,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CheckContrastParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CheckContrastParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CheckContrastParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CheckContrastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, out *BounceTrackingIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(in *jlexer.Lexer, out *BounceTrackingIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2954,9 +3072,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, ou out.TrackingSites = (out.TrackingSites)[:0] } for !in.IsDelim(']') { - var v10 string - v10 = string(in.String()) - out.TrackingSites = append(out.TrackingSites, v10) + var v13 string + v13 = string(in.String()) + out.TrackingSites = append(out.TrackingSites, v13) in.WantComma() } in.Delim(']') @@ -2971,7 +3089,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, in BounceTrackingIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(out *jwriter.Writer, in BounceTrackingIssueDetails) { out.RawByte('{') first := true _ = first @@ -2982,11 +3100,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v11, v12 := range in.TrackingSites { - if v11 > 0 { + for v14, v15 := range in.TrackingSites { + if v14 > 0 { out.RawByte(',') } - out.String(string(v12)) + out.String(string(v15)) } out.RawByte(']') } @@ -2997,27 +3115,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BounceTrackingIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BounceTrackingIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BounceTrackingIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BounceTrackingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(in *jlexer.Lexer, out *BlockedByResponseIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(in *jlexer.Lexer, out *BlockedByResponseIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3078,7 +3196,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(out *jwriter.Writer, in BlockedByResponseIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(out *jwriter.Writer, in BlockedByResponseIssueDetails) { out.RawByte('{') first := true _ = first @@ -3112,27 +3230,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BlockedByResponseIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v BlockedByResponseIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BlockedByResponseIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *BlockedByResponseIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(in *jlexer.Lexer, out *AttributionReportingIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(in *jlexer.Lexer, out *AttributionReportingIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3177,7 +3295,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(out *jwriter.Writer, in AttributionReportingIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(out *jwriter.Writer, in AttributionReportingIssueDetails) { out.RawByte('{') first := true _ = first @@ -3207,27 +3325,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AttributionReportingIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttributionReportingIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttributionReportingIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttributionReportingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(in *jlexer.Lexer, out *AffectedRequest) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(in *jlexer.Lexer, out *AffectedRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3260,7 +3378,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(out *jwriter.Writer, in AffectedRequest) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(out *jwriter.Writer, in AffectedRequest) { out.RawByte('{') first := true _ = first @@ -3280,27 +3398,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AffectedRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AffectedRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AffectedRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AffectedRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(in *jlexer.Lexer, out *AffectedFrame) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(in *jlexer.Lexer, out *AffectedFrame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3331,7 +3449,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(out *jwriter.Writer, in AffectedFrame) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(out *jwriter.Writer, in AffectedFrame) { out.RawByte('{') first := true _ = first @@ -3346,27 +3464,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AffectedFrame) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AffectedFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AffectedFrame) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AffectedFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(in *jlexer.Lexer, out *AffectedCookie) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits33(in *jlexer.Lexer, out *AffectedCookie) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3401,7 +3519,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(out *jwriter.Writer, in AffectedCookie) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits33(out *jwriter.Writer, in AffectedCookie) { out.RawByte('{') first := true _ = first @@ -3426,23 +3544,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AffectedCookie) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AffectedCookie) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AffectedCookie) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AffectedCookie) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits33(l, v) } diff --git a/audits/types.go b/audits/types.go index 0307eec..b38f80c 100644 --- a/audits/types.go +++ b/audits/types.go @@ -117,17 +117,18 @@ func (t CookieWarningReason) String() string { // CookieWarningReason values. 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" + 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" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -166,6 +167,8 @@ func (t *CookieWarningReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CookieWarningReasonWarnDomainNonASCII case CookieWarningReasonWarnThirdPartyPhaseout: *t = CookieWarningReasonWarnThirdPartyPhaseout + case CookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion: + *t = CookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion default: in.AddError(fmt.Errorf("unknown CookieWarningReason value: %v", v)) @@ -968,6 +971,17 @@ type BounceTrackingIssueDetails struct { TrackingSites []string `json:"trackingSites"` } +// 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. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-CookieDeprecationMetadataIssueDetails +type CookieDeprecationMetadataIssueDetails struct { + AllowedSites []string `json:"allowedSites"` +} + // ClientHintIssueReason [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-ClientHintIssueReason @@ -1412,6 +1426,7 @@ const ( InspectorIssueCodeClientHintIssue InspectorIssueCode = "ClientHintIssue" InspectorIssueCodeFederatedAuthRequestIssue InspectorIssueCode = "FederatedAuthRequestIssue" InspectorIssueCodeBounceTrackingIssue InspectorIssueCode = "BounceTrackingIssue" + InspectorIssueCodeCookieDeprecationMetadataIssue InspectorIssueCode = "CookieDeprecationMetadataIssue" InspectorIssueCodeStylesheetLoadingIssue InspectorIssueCode = "StylesheetLoadingIssue" InspectorIssueCodeFederatedAuthUserInfoRequestIssue InspectorIssueCode = "FederatedAuthUserInfoRequestIssue" InspectorIssueCodePropertyRuleIssue InspectorIssueCode = "PropertyRuleIssue" @@ -1463,6 +1478,8 @@ func (t *InspectorIssueCode) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = InspectorIssueCodeFederatedAuthRequestIssue case InspectorIssueCodeBounceTrackingIssue: *t = InspectorIssueCodeBounceTrackingIssue + case InspectorIssueCodeCookieDeprecationMetadataIssue: + *t = InspectorIssueCodeCookieDeprecationMetadataIssue case InspectorIssueCodeStylesheetLoadingIssue: *t = InspectorIssueCodeStylesheetLoadingIssue case InspectorIssueCodeFederatedAuthUserInfoRequestIssue: @@ -1501,6 +1518,7 @@ type InspectorIssueDetails struct { 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"` diff --git a/page/easyjson.go b/page/easyjson.go index e9c710d..ed76b74 100644 --- a/page/easyjson.go +++ b/page/easyjson.go @@ -8690,6 +8690,37 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(in *jlexer.Lexer, out (out.Reason).UnmarshalEasyJSON(in) case "context": out.Context = string(in.String()) + case "details": + if in.IsNull() { + in.Skip() + out.Details = nil + } else { + in.Delim('[') + if out.Details == nil { + if !in.IsDelim(']') { + out.Details = make([]*BackForwardCacheBlockingDetails, 0, 8) + } else { + out.Details = []*BackForwardCacheBlockingDetails{} + } + } else { + out.Details = (out.Details)[:0] + } + for !in.IsDelim(']') { + var v49 *BackForwardCacheBlockingDetails + if in.IsNull() { + in.Skip() + v49 = nil + } else { + if v49 == nil { + v49 = new(BackForwardCacheBlockingDetails) + } + (*v49).UnmarshalEasyJSON(in) + } + out.Details = append(out.Details, v49) + in.WantComma() + } + in.Delim(']') + } default: in.SkipRecursive() } @@ -8719,6 +8750,24 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage102(out *jwriter.Writer, out.RawString(prefix) out.String(string(in.Context)) } + if len(in.Details) != 0 { + const prefix string = ",\"details\":" + out.RawString(prefix) + { + out.RawByte('[') + for v50, v51 := range in.Details { + if v50 > 0 { + out.RawByte(',') + } + if v51 == nil { + out.RawString("null") + } else { + (*v51).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } out.RawByte('}') } @@ -8745,7 +8794,105 @@ func (v *BackForwardCacheNotRestoredExplanation) UnmarshalJSON(data []byte) erro func (v *BackForwardCacheNotRestoredExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage102(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(in *jlexer.Lexer, out *AppManifestParsedProperties) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(in *jlexer.Lexer, out *BackForwardCacheBlockingDetails) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "url": + out.URL = string(in.String()) + case "function": + out.Function = string(in.String()) + case "lineNumber": + out.LineNumber = int64(in.Int64()) + case "columnNumber": + out.ColumnNumber = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(out *jwriter.Writer, in BackForwardCacheBlockingDetails) { + out.RawByte('{') + first := true + _ = first + if in.URL != "" { + const prefix string = ",\"url\":" + first = false + out.RawString(prefix[1:]) + out.String(string(in.URL)) + } + if in.Function != "" { + const prefix string = ",\"function\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.String(string(in.Function)) + } + { + const prefix string = ",\"lineNumber\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.LineNumber)) + } + { + const prefix string = ",\"columnNumber\":" + out.RawString(prefix) + out.Int64(int64(in.ColumnNumber)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v BackForwardCacheBlockingDetails) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v BackForwardCacheBlockingDetails) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *BackForwardCacheBlockingDetails) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *BackForwardCacheBlockingDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(in *jlexer.Lexer, out *AppManifestParsedProperties) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8776,7 +8923,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(out *jwriter.Writer, in AppManifestParsedProperties) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(out *jwriter.Writer, in AppManifestParsedProperties) { out.RawByte('{') first := true _ = first @@ -8791,27 +8938,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AppManifestParsedProperties) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AppManifestParsedProperties) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage103(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AppManifestParsedProperties) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AppManifestParsedProperties) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage103(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(in *jlexer.Lexer, out *AppManifestError) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(in *jlexer.Lexer, out *AppManifestError) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8848,7 +8995,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(out *jwriter.Writer, in AppManifestError) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(out *jwriter.Writer, in AppManifestError) { out.RawByte('{') first := true _ = first @@ -8878,27 +9025,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AppManifestError) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage104(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AppManifestError) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage104(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -8929,7 +9076,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentReturns) { out.RawByte('{') first := true _ = first @@ -8945,27 +9092,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage105(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage105(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(in *jlexer.Lexer, out *AddScriptToEvaluateOnNewDocumentParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9002,7 +9149,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(out *jwriter.Writer, in AddScriptToEvaluateOnNewDocumentParams) { out.RawByte('{') first := true _ = first @@ -9032,27 +9179,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddScriptToEvaluateOnNewDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage106(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddScriptToEvaluateOnNewDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage106(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(in *jlexer.Lexer, out *AddCompilationCacheParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(in *jlexer.Lexer, out *AddCompilationCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9085,7 +9232,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(out *jwriter.Writer, in AddCompilationCacheParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(out *jwriter.Writer, in AddCompilationCacheParams) { out.RawByte('{') first := true _ = first @@ -9105,27 +9252,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AddCompilationCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AddCompilationCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage107(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AddCompilationCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AddCompilationCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage107(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(in *jlexer.Lexer, out *AdScriptID) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(in *jlexer.Lexer, out *AdScriptID) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -9158,7 +9305,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(out *jwriter.Writer, in AdScriptID) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(out *jwriter.Writer, in AdScriptID) { out.RawByte('{') first := true _ = first @@ -9178,23 +9325,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AdScriptID) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AdScriptID) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage108(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage109(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AdScriptID) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AdScriptID) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage108(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage109(l, v) } diff --git a/page/types.go b/page/types.go index 87d5524..c708fd0 100644 --- a/page/types.go +++ b/page/types.go @@ -1416,6 +1416,16 @@ func (t *BackForwardCacheNotRestoredReasonType) UnmarshalJSON(buf []byte) error return easyjson.Unmarshal(buf, t) } +// BackForwardCacheBlockingDetails [no description]. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-BackForwardCacheBlockingDetails +type BackForwardCacheBlockingDetails struct { + URL string `json:"url,omitempty"` // Url of the file where blockage happened. Optional because of tests. + Function string `json:"function,omitempty"` // Function name where blockage happened. Optional because of anonymous functions and tests. + LineNumber int64 `json:"lineNumber"` // Line number in the script (0-based). + ColumnNumber int64 `json:"columnNumber"` // Column number in the script (0-based). +} + // BackForwardCacheNotRestoredExplanation [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Page#type-BackForwardCacheNotRestoredExplanation @@ -1423,6 +1433,7 @@ type BackForwardCacheNotRestoredExplanation struct { Type BackForwardCacheNotRestoredReasonType `json:"type"` // Type of the reason Reason BackForwardCacheNotRestoredReason `json:"reason"` // Not restored reason Context string `json:"context,omitempty"` // Context associated with the reason. The meaning of this context is dependent on the reason: - EmbedderExtensionSentMessageToCachedFrame: the extension ID. + Details []*BackForwardCacheBlockingDetails `json:"details,omitempty"` } // BackForwardCacheNotRestoredExplanationTree [no description]. diff --git a/storage/easyjson.go b/storage/easyjson.go index 4938e49..541e829 100644 --- a/storage/easyjson.go +++ b/storage/easyjson.go @@ -5253,6 +5253,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, o } case "debugKey": out.DebugKey = UnsignedInt64asBase10(in.String()) + case "triggerDataMatching": + (out.TriggerDataMatching).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -5381,6 +5383,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer out.RawString(prefix) out.String(string(in.DebugKey)) } + { + const prefix string = ",\"triggerDataMatching\":" + out.RawString(prefix) + (in.TriggerDataMatching).MarshalEasyJSON(out) + } out.RawByte('}') } diff --git a/storage/types.go b/storage/types.go index 7155285..fb56380 100644 --- a/storage/types.go +++ b/storage/types.go @@ -512,6 +512,51 @@ type AttributionReportingEventReportWindows struct { Ends []int64 `json:"ends"` // duration in seconds } +// AttributionReportingTriggerDataMatching [no description]. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-AttributionReportingTriggerDataMatching +type AttributionReportingTriggerDataMatching string + +// String returns the AttributionReportingTriggerDataMatching as string value. +func (t AttributionReportingTriggerDataMatching) String() string { + return string(t) +} + +// AttributionReportingTriggerDataMatching values. +const ( + AttributionReportingTriggerDataMatchingExact AttributionReportingTriggerDataMatching = "exact" + AttributionReportingTriggerDataMatchingModulus AttributionReportingTriggerDataMatching = "modulus" +) + +// MarshalEasyJSON satisfies easyjson.Marshaler. +func (t AttributionReportingTriggerDataMatching) MarshalEasyJSON(out *jwriter.Writer) { + out.String(string(t)) +} + +// MarshalJSON satisfies json.Marshaler. +func (t AttributionReportingTriggerDataMatching) MarshalJSON() ([]byte, error) { + return easyjson.Marshal(t) +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *AttributionReportingTriggerDataMatching) UnmarshalEasyJSON(in *jlexer.Lexer) { + v := in.String() + switch AttributionReportingTriggerDataMatching(v) { + case AttributionReportingTriggerDataMatchingExact: + *t = AttributionReportingTriggerDataMatchingExact + case AttributionReportingTriggerDataMatchingModulus: + *t = AttributionReportingTriggerDataMatchingModulus + + default: + in.AddError(fmt.Errorf("unknown AttributionReportingTriggerDataMatching value: %v", v)) + } +} + +// UnmarshalJSON satisfies json.Unmarshaler. +func (t *AttributionReportingTriggerDataMatching) UnmarshalJSON(buf []byte) error { + return easyjson.Unmarshal(buf, t) +} + // AttributionReportingSourceRegistration [no description]. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-AttributionReportingSourceRegistration @@ -529,6 +574,7 @@ type AttributionReportingSourceRegistration struct { FilterData []*AttributionReportingFilterDataEntry `json:"filterData"` AggregationKeys []*AttributionReportingAggregationKeysEntry `json:"aggregationKeys"` DebugKey UnsignedInt64asBase10 `json:"debugKey,omitempty"` + TriggerDataMatching AttributionReportingTriggerDataMatching `json:"triggerDataMatching"` } // AttributionReportingSourceRegistrationResult [no description].