diff --git a/audits/easyjson.go b/audits/easyjson.go index fe421c7..e8b3a0d 100644 --- a/audits/easyjson.go +++ b/audits/easyjson.go @@ -399,7 +399,99 @@ func (v *QuirksModeIssueDetails) UnmarshalJSON(data []byte) error { func (v *QuirksModeIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits3(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(in *jlexer.Lexer, out *MixedContentIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(in *jlexer.Lexer, out *PropertyRuleIssueDetails) { + 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 "sourceCodeLocation": + if in.IsNull() { + in.Skip() + out.SourceCodeLocation = nil + } else { + if out.SourceCodeLocation == nil { + out.SourceCodeLocation = new(SourceCodeLocation) + } + (*out.SourceCodeLocation).UnmarshalEasyJSON(in) + } + case "propertyRuleIssueReason": + (out.PropertyRuleIssueReason).UnmarshalEasyJSON(in) + case "propertyValue": + out.PropertyValue = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(out *jwriter.Writer, in PropertyRuleIssueDetails) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"sourceCodeLocation\":" + out.RawString(prefix[1:]) + if in.SourceCodeLocation == nil { + out.RawString("null") + } else { + (*in.SourceCodeLocation).MarshalEasyJSON(out) + } + } + { + const prefix string = ",\"propertyRuleIssueReason\":" + out.RawString(prefix) + (in.PropertyRuleIssueReason).MarshalEasyJSON(out) + } + if in.PropertyValue != "" { + const prefix string = ",\"propertyValue\":" + out.RawString(prefix) + out.String(string(in.PropertyValue)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PropertyRuleIssueDetails) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PropertyRuleIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PropertyRuleIssueDetails) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PropertyRuleIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(in *jlexer.Lexer, out *MixedContentIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -456,7 +548,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(out *jwriter.Writer, in MixedContentIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(out *jwriter.Writer, in MixedContentIssueDetails) { out.RawByte('{') first := true _ = first @@ -502,27 +594,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v MixedContentIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MixedContentIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MixedContentIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MixedContentIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(in *jlexer.Lexer, out *LowTextContrastIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(in *jlexer.Lexer, out *LowTextContrastIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -565,7 +657,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(out *jwriter.Writer, in LowTextContrastIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(out *jwriter.Writer, in LowTextContrastIssueDetails) { out.RawByte('{') first := true _ = first @@ -610,27 +702,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v LowTextContrastIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v LowTextContrastIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *LowTextContrastIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *LowTextContrastIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(in *jlexer.Lexer, out *InspectorIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(in *jlexer.Lexer, out *InspectorIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -809,6 +901,16 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(in *jlexer.Lexer, out } (*out.StylesheetLoadingIssueDetails).UnmarshalEasyJSON(in) } + case "propertyRuleIssueDetails": + if in.IsNull() { + in.Skip() + out.PropertyRuleIssueDetails = nil + } else { + if out.PropertyRuleIssueDetails == nil { + out.PropertyRuleIssueDetails = new(PropertyRuleIssueDetails) + } + (*out.PropertyRuleIssueDetails).UnmarshalEasyJSON(in) + } case "federatedAuthUserInfoRequestIssueDetails": if in.IsNull() { in.Skip() @@ -829,7 +931,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(out *jwriter.Writer, in InspectorIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(out *jwriter.Writer, in InspectorIssueDetails) { out.RawByte('{') first := true _ = first @@ -989,6 +1091,16 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(out *jwriter.Writer, } (*in.StylesheetLoadingIssueDetails).MarshalEasyJSON(out) } + if in.PropertyRuleIssueDetails != nil { + const prefix string = ",\"propertyRuleIssueDetails\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + (*in.PropertyRuleIssueDetails).MarshalEasyJSON(out) + } if in.FederatedAuthUserInfoRequestIssueDetails != nil { const prefix string = ",\"federatedAuthUserInfoRequestIssueDetails\":" if first { @@ -1005,27 +1117,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v InspectorIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v InspectorIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *InspectorIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *InspectorIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(in *jlexer.Lexer, out *InspectorIssue) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(in *jlexer.Lexer, out *InspectorIssue) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1068,7 +1180,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(out *jwriter.Writer, in InspectorIssue) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(out *jwriter.Writer, in InspectorIssue) { out.RawByte('{') first := true _ = first @@ -1097,27 +1209,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v InspectorIssue) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v InspectorIssue) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *InspectorIssue) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *InspectorIssue) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(in *jlexer.Lexer, out *HeavyAdIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(in *jlexer.Lexer, out *HeavyAdIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1160,7 +1272,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(out *jwriter.Writer, in HeavyAdIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(out *jwriter.Writer, in HeavyAdIssueDetails) { out.RawByte('{') first := true _ = first @@ -1189,27 +1301,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v HeavyAdIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v HeavyAdIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *HeavyAdIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *HeavyAdIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(in *jlexer.Lexer, out *GetEncodedResponseReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(in *jlexer.Lexer, out *GetEncodedResponseReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1244,7 +1356,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(out *jwriter.Writer, in GetEncodedResponseReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(out *jwriter.Writer, in GetEncodedResponseReturns) { out.RawByte('{') first := true _ = first @@ -1280,27 +1392,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetEncodedResponseReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetEncodedResponseReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetEncodedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(in *jlexer.Lexer, out *GetEncodedResponseParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(in *jlexer.Lexer, out *GetEncodedResponseParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1337,7 +1449,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(out *jwriter.Writer, in GetEncodedResponseParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(out *jwriter.Writer, in GetEncodedResponseParams) { out.RawByte('{') first := true _ = first @@ -1367,27 +1479,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(in *jlexer.Lexer, out *GenericIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(in *jlexer.Lexer, out *GenericIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1434,7 +1546,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(out *jwriter.Writer, in GenericIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(out *jwriter.Writer, in GenericIssueDetails) { out.RawByte('{') first := true _ = first @@ -1469,27 +1581,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GenericIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GenericIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GenericIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GenericIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(in *jlexer.Lexer, out *FederatedAuthUserInfoRequestIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(in *jlexer.Lexer, out *FederatedAuthUserInfoRequestIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1520,7 +1632,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(out *jwriter.Writer, in FederatedAuthUserInfoRequestIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(out *jwriter.Writer, in FederatedAuthUserInfoRequestIssueDetails) { out.RawByte('{') first := true _ = first @@ -1535,27 +1647,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v FederatedAuthUserInfoRequestIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FederatedAuthUserInfoRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(in *jlexer.Lexer, out *FederatedAuthRequestIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(in *jlexer.Lexer, out *FederatedAuthRequestIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1586,7 +1698,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(out *jwriter.Writer, in FederatedAuthRequestIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(out *jwriter.Writer, in FederatedAuthRequestIssueDetails) { out.RawByte('{') first := true _ = first @@ -1601,27 +1713,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v FederatedAuthRequestIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FederatedAuthRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FederatedAuthRequestIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FederatedAuthRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(in *jlexer.Lexer, out *FailedRequestInfo) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(in *jlexer.Lexer, out *FailedRequestInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1656,7 +1768,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(out *jwriter.Writer, in FailedRequestInfo) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(out *jwriter.Writer, in FailedRequestInfo) { out.RawByte('{') first := true _ = first @@ -1681,27 +1793,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v FailedRequestInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FailedRequestInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FailedRequestInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FailedRequestInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(in *jlexer.Lexer, out *EventIssueAdded) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(in *jlexer.Lexer, out *EventIssueAdded) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1740,7 +1852,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(out *jwriter.Writer, in EventIssueAdded) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(out *jwriter.Writer, in EventIssueAdded) { out.RawByte('{') first := true _ = first @@ -1759,27 +1871,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventIssueAdded) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventIssueAdded) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventIssueAdded) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventIssueAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1808,7 +1920,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -1818,27 +1930,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1867,7 +1979,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -1877,27 +1989,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(in *jlexer.Lexer, out *DeprecationIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(in *jlexer.Lexer, out *DeprecationIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1948,7 +2060,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(out *jwriter.Writer, in DeprecationIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(out *jwriter.Writer, in DeprecationIssueDetails) { out.RawByte('{') first := true _ = first @@ -1983,27 +2095,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DeprecationIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DeprecationIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DeprecationIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DeprecationIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(in *jlexer.Lexer, out *CorsIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(in *jlexer.Lexer, out *CorsIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2078,7 +2190,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(out *jwriter.Writer, in CorsIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(out *jwriter.Writer, in CorsIssueDetails) { out.RawByte('{') first := true _ = first @@ -2131,27 +2243,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CorsIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CorsIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CorsIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CorsIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(in *jlexer.Lexer, out *CookieIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(in *jlexer.Lexer, out *CookieIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2254,7 +2366,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(out *jwriter.Writer, in CookieIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(out *jwriter.Writer, in CookieIssueDetails) { out.RawByte('{') first := true _ = first @@ -2337,27 +2449,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CookieIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CookieIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CookieIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CookieIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(in *jlexer.Lexer, out *ContentSecurityPolicyIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(in *jlexer.Lexer, out *ContentSecurityPolicyIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2416,7 +2528,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(out *jwriter.Writer, in ContentSecurityPolicyIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(out *jwriter.Writer, in ContentSecurityPolicyIssueDetails) { out.RawByte('{') first := true _ = first @@ -2467,27 +2579,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ContentSecurityPolicyIssueDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ContentSecurityPolicyIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ContentSecurityPolicyIssueDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(in *jlexer.Lexer, out *ClientHintIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(in *jlexer.Lexer, out *ClientHintIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2528,7 +2640,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(out *jwriter.Writer, in ClientHintIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(out *jwriter.Writer, in ClientHintIssueDetails) { out.RawByte('{') first := true _ = first @@ -2552,27 +2664,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClientHintIssueDetails) 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 ClientHintIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClientHintIssueDetails) 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 *ClientHintIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(in *jlexer.Lexer, out *CheckFormsIssuesReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, out *CheckFormsIssuesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2632,7 +2744,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(out *jwriter.Writer, in CheckFormsIssuesReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, in CheckFormsIssuesReturns) { out.RawByte('{') first := true _ = first @@ -2661,27 +2773,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CheckFormsIssuesReturns) 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 CheckFormsIssuesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CheckFormsIssuesReturns) 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 *CheckFormsIssuesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, out *CheckFormsIssuesParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(in *jlexer.Lexer, out *CheckFormsIssuesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2710,7 +2822,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, in CheckFormsIssuesParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(out *jwriter.Writer, in CheckFormsIssuesParams) { out.RawByte('{') first := true _ = first @@ -2720,27 +2832,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CheckFormsIssuesParams) 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 CheckFormsIssuesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CheckFormsIssuesParams) 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 *CheckFormsIssuesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(in *jlexer.Lexer, out *CheckContrastParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(in *jlexer.Lexer, out *CheckContrastParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2771,7 +2883,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(out *jwriter.Writer, in CheckContrastParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(out *jwriter.Writer, in CheckContrastParams) { out.RawByte('{') first := true _ = first @@ -2787,27 +2899,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CheckContrastParams) 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 CheckContrastParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CheckContrastParams) 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 *CheckContrastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(in *jlexer.Lexer, out *BounceTrackingIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, out *BounceTrackingIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2859,7 +2971,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(out *jwriter.Writer, in BounceTrackingIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, in BounceTrackingIssueDetails) { out.RawByte('{') first := true _ = first @@ -2885,27 +2997,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BounceTrackingIssueDetails) 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 BounceTrackingIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BounceTrackingIssueDetails) 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 *BounceTrackingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, out *BlockedByResponseIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(in *jlexer.Lexer, out *BlockedByResponseIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2966,7 +3078,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, in BlockedByResponseIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(out *jwriter.Writer, in BlockedByResponseIssueDetails) { out.RawByte('{') first := true _ = first @@ -3000,27 +3112,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v BlockedByResponseIssueDetails) 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 BlockedByResponseIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *BlockedByResponseIssueDetails) 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 *BlockedByResponseIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(in *jlexer.Lexer, out *AttributionReportingIssueDetails) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(in *jlexer.Lexer, out *AttributionReportingIssueDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3065,7 +3177,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(out *jwriter.Writer, in AttributionReportingIssueDetails) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(out *jwriter.Writer, in AttributionReportingIssueDetails) { out.RawByte('{') first := true _ = first @@ -3095,27 +3207,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AttributionReportingIssueDetails) 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 AttributionReportingIssueDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttributionReportingIssueDetails) 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 *AttributionReportingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(in *jlexer.Lexer, out *AffectedRequest) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(in *jlexer.Lexer, out *AffectedRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3148,7 +3260,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(out *jwriter.Writer, in AffectedRequest) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(out *jwriter.Writer, in AffectedRequest) { out.RawByte('{') first := true _ = first @@ -3168,27 +3280,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AffectedRequest) 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 AffectedRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AffectedRequest) 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 *AffectedRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(in *jlexer.Lexer, out *AffectedFrame) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(in *jlexer.Lexer, out *AffectedFrame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3219,7 +3331,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(out *jwriter.Writer, in AffectedFrame) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(out *jwriter.Writer, in AffectedFrame) { out.RawByte('{') first := true _ = first @@ -3234,27 +3346,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AffectedFrame) 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 AffectedFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AffectedFrame) 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 *AffectedFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(in *jlexer.Lexer, out *AffectedCookie) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(in *jlexer.Lexer, out *AffectedCookie) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3289,7 +3401,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(out *jwriter.Writer, in AffectedCookie) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(out *jwriter.Writer, in AffectedCookie) { out.RawByte('{') first := true _ = first @@ -3314,23 +3426,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AffectedCookie) 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 AffectedCookie) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AffectedCookie) 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 *AffectedCookie) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(l, v) } diff --git a/audits/types.go b/audits/types.go index a3f9f59..0307eec 100644 --- a/audits/types.go +++ b/audits/types.go @@ -1071,6 +1071,7 @@ const ( FederatedAuthRequestIssueReasonRpPageNotVisible FederatedAuthRequestIssueReason = "RpPageNotVisible" FederatedAuthRequestIssueReasonSilentMediationFailure FederatedAuthRequestIssueReason = "SilentMediationFailure" FederatedAuthRequestIssueReasonThirdPartyCookiesBlocked FederatedAuthRequestIssueReason = "ThirdPartyCookiesBlocked" + FederatedAuthRequestIssueReasonNotSignedInWithIdp FederatedAuthRequestIssueReason = "NotSignedInWithIdp" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -1157,6 +1158,8 @@ func (t *FederatedAuthRequestIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = FederatedAuthRequestIssueReasonSilentMediationFailure case FederatedAuthRequestIssueReasonThirdPartyCookiesBlocked: *t = FederatedAuthRequestIssueReasonThirdPartyCookiesBlocked + case FederatedAuthRequestIssueReasonNotSignedInWithIdp: + *t = FederatedAuthRequestIssueReasonNotSignedInWithIdp default: in.AddError(fmt.Errorf("unknown FederatedAuthRequestIssueReason value: %v", v)) @@ -1318,6 +1321,67 @@ type StylesheetLoadingIssueDetails struct { FailedRequestInfo *FailedRequestInfo `json:"failedRequestInfo,omitempty"` // Contains additional info when the failure was due to a request. } +// PropertyRuleIssueReason [no description]. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PropertyRuleIssueReason +type PropertyRuleIssueReason string + +// String returns the PropertyRuleIssueReason as string value. +func (t PropertyRuleIssueReason) String() string { + return string(t) +} + +// PropertyRuleIssueReason values. +const ( + PropertyRuleIssueReasonInvalidSyntax PropertyRuleIssueReason = "InvalidSyntax" + PropertyRuleIssueReasonInvalidInitialValue PropertyRuleIssueReason = "InvalidInitialValue" + PropertyRuleIssueReasonInvalidInherits PropertyRuleIssueReason = "InvalidInherits" + PropertyRuleIssueReasonInvalidName PropertyRuleIssueReason = "InvalidName" +) + +// MarshalEasyJSON satisfies easyjson.Marshaler. +func (t PropertyRuleIssueReason) MarshalEasyJSON(out *jwriter.Writer) { + out.String(string(t)) +} + +// MarshalJSON satisfies json.Marshaler. +func (t PropertyRuleIssueReason) MarshalJSON() ([]byte, error) { + return easyjson.Marshal(t) +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *PropertyRuleIssueReason) UnmarshalEasyJSON(in *jlexer.Lexer) { + v := in.String() + switch PropertyRuleIssueReason(v) { + case PropertyRuleIssueReasonInvalidSyntax: + *t = PropertyRuleIssueReasonInvalidSyntax + case PropertyRuleIssueReasonInvalidInitialValue: + *t = PropertyRuleIssueReasonInvalidInitialValue + case PropertyRuleIssueReasonInvalidInherits: + *t = PropertyRuleIssueReasonInvalidInherits + case PropertyRuleIssueReasonInvalidName: + *t = PropertyRuleIssueReasonInvalidName + + default: + in.AddError(fmt.Errorf("unknown PropertyRuleIssueReason value: %v", v)) + } +} + +// UnmarshalJSON satisfies json.Unmarshaler. +func (t *PropertyRuleIssueReason) UnmarshalJSON(buf []byte) error { + return easyjson.Unmarshal(buf, t) +} + +// PropertyRuleIssueDetails this issue warns about errors in property rules +// that lead to property registrations being ignored. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Audits#type-PropertyRuleIssueDetails +type 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 +} + // 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. @@ -1350,6 +1414,7 @@ const ( InspectorIssueCodeBounceTrackingIssue InspectorIssueCode = "BounceTrackingIssue" InspectorIssueCodeStylesheetLoadingIssue InspectorIssueCode = "StylesheetLoadingIssue" InspectorIssueCodeFederatedAuthUserInfoRequestIssue InspectorIssueCode = "FederatedAuthUserInfoRequestIssue" + InspectorIssueCodePropertyRuleIssue InspectorIssueCode = "PropertyRuleIssue" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -1402,6 +1467,8 @@ func (t *InspectorIssueCode) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = InspectorIssueCodeStylesheetLoadingIssue case InspectorIssueCodeFederatedAuthUserInfoRequestIssue: *t = InspectorIssueCodeFederatedAuthUserInfoRequestIssue + case InspectorIssueCodePropertyRuleIssue: + *t = InspectorIssueCodePropertyRuleIssue default: in.AddError(fmt.Errorf("unknown InspectorIssueCode value: %v", v)) @@ -1435,6 +1502,7 @@ type InspectorIssueDetails struct { FederatedAuthRequestIssueDetails *FederatedAuthRequestIssueDetails `json:"federatedAuthRequestIssueDetails,omitempty"` BounceTrackingIssueDetails *BounceTrackingIssueDetails `json:"bounceTrackingIssueDetails,omitempty"` StylesheetLoadingIssueDetails *StylesheetLoadingIssueDetails `json:"stylesheetLoadingIssueDetails,omitempty"` + PropertyRuleIssueDetails *PropertyRuleIssueDetails `json:"propertyRuleIssueDetails,omitempty"` FederatedAuthUserInfoRequestIssueDetails *FederatedAuthUserInfoRequestIssueDetails `json:"federatedAuthUserInfoRequestIssueDetails,omitempty"` } diff --git a/cdproto.go b/cdproto.go index b283fae..d4c8163 100644 --- a/cdproto.go +++ b/cdproto.go @@ -251,12 +251,10 @@ const ( CommandDOMDebuggerGetEventListeners = domdebugger.CommandGetEventListeners CommandDOMDebuggerRemoveDOMBreakpoint = domdebugger.CommandRemoveDOMBreakpoint CommandDOMDebuggerRemoveEventListenerBreakpoint = domdebugger.CommandRemoveEventListenerBreakpoint - CommandDOMDebuggerRemoveInstrumentationBreakpoint = domdebugger.CommandRemoveInstrumentationBreakpoint CommandDOMDebuggerRemoveXHRBreakpoint = domdebugger.CommandRemoveXHRBreakpoint CommandDOMDebuggerSetBreakOnCSPViolation = domdebugger.CommandSetBreakOnCSPViolation CommandDOMDebuggerSetDOMBreakpoint = domdebugger.CommandSetDOMBreakpoint CommandDOMDebuggerSetEventListenerBreakpoint = domdebugger.CommandSetEventListenerBreakpoint - CommandDOMDebuggerSetInstrumentationBreakpoint = domdebugger.CommandSetInstrumentationBreakpoint CommandDOMDebuggerSetXHRBreakpoint = domdebugger.CommandSetXHRBreakpoint CommandDOMSnapshotDisable = domsnapshot.CommandDisable CommandDOMSnapshotEnable = domsnapshot.CommandEnable @@ -348,10 +346,11 @@ const ( EventEmulationVirtualTimeBudgetExpired = "Emulation.virtualTimeBudgetExpired" CommandEventBreakpointsSetInstrumentationBreakpoint = eventbreakpoints.CommandSetInstrumentationBreakpoint CommandEventBreakpointsRemoveInstrumentationBreakpoint = eventbreakpoints.CommandRemoveInstrumentationBreakpoint + CommandEventBreakpointsDisable = eventbreakpoints.CommandDisable CommandFedCmEnable = fedcm.CommandEnable CommandFedCmDisable = fedcm.CommandDisable CommandFedCmSelectAccount = fedcm.CommandSelectAccount - CommandFedCmConfirmIdpSignin = fedcm.CommandConfirmIdpSignin + CommandFedCmConfirmIdpLogin = fedcm.CommandConfirmIdpLogin CommandFedCmDismissDialog = fedcm.CommandDismissDialog CommandFedCmResetCooldown = fedcm.CommandResetCooldown EventFedCmDialogShown = "FedCm.dialogShown" @@ -614,7 +613,6 @@ const ( CommandPreloadDisable = preload.CommandDisable EventPreloadRuleSetUpdated = "Preload.ruleSetUpdated" EventPreloadRuleSetRemoved = "Preload.ruleSetRemoved" - EventPreloadPrerenderAttemptCompleted = "Preload.prerenderAttemptCompleted" EventPreloadPreloadEnabledStateUpdated = "Preload.preloadEnabledStateUpdated" EventPreloadPrefetchStatusUpdated = "Preload.prefetchStatusUpdated" EventPreloadPrerenderStatusUpdated = "Preload.prerenderStatusUpdated" @@ -1334,9 +1332,6 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandDOMDebuggerRemoveEventListenerBreakpoint: return emptyVal, nil - case CommandDOMDebuggerRemoveInstrumentationBreakpoint: - return emptyVal, nil - case CommandDOMDebuggerRemoveXHRBreakpoint: return emptyVal, nil @@ -1349,9 +1344,6 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandDOMDebuggerSetEventListenerBreakpoint: return emptyVal, nil - case CommandDOMDebuggerSetInstrumentationBreakpoint: - return emptyVal, nil - case CommandDOMDebuggerSetXHRBreakpoint: return emptyVal, nil @@ -1625,6 +1617,9 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandEventBreakpointsRemoveInstrumentationBreakpoint: return emptyVal, nil + case CommandEventBreakpointsDisable: + return emptyVal, nil + case CommandFedCmEnable: return emptyVal, nil @@ -1634,7 +1629,7 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandFedCmSelectAccount: return emptyVal, nil - case CommandFedCmConfirmIdpSignin: + case CommandFedCmConfirmIdpLogin: return emptyVal, nil case CommandFedCmDismissDialog: @@ -2423,9 +2418,6 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case EventPreloadRuleSetRemoved: v = new(preload.EventRuleSetRemoved) - case EventPreloadPrerenderAttemptCompleted: - v = new(preload.EventPrerenderAttemptCompleted) - case EventPreloadPreloadEnabledStateUpdated: v = new(preload.EventPreloadEnabledStateUpdated) diff --git a/domdebugger/domdebugger.go b/domdebugger/domdebugger.go index 58ad234..a24cbec 100644 --- a/domdebugger/domdebugger.go +++ b/domdebugger/domdebugger.go @@ -133,31 +133,6 @@ func (p *RemoveEventListenerBreakpointParams) Do(ctx context.Context) (err error return cdp.Execute(ctx, CommandRemoveEventListenerBreakpoint, p, nil) } -// RemoveInstrumentationBreakpointParams removes breakpoint on particular -// native event. -type RemoveInstrumentationBreakpointParams struct { - EventName string `json:"eventName"` // Instrumentation name to stop on. -} - -// RemoveInstrumentationBreakpoint removes breakpoint on particular native -// event. -// -// See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-removeInstrumentationBreakpoint -// -// parameters: -// -// eventName - Instrumentation name to stop on. -func RemoveInstrumentationBreakpoint(eventName string) *RemoveInstrumentationBreakpointParams { - return &RemoveInstrumentationBreakpointParams{ - EventName: eventName, - } -} - -// Do executes DOMDebugger.removeInstrumentationBreakpoint against the provided context. -func (p *RemoveInstrumentationBreakpointParams) Do(ctx context.Context) (err error) { - return cdp.Execute(ctx, CommandRemoveInstrumentationBreakpoint, p, nil) -} - // RemoveXHRBreakpointParams removes breakpoint from XMLHttpRequest. type RemoveXHRBreakpointParams struct { URL string `json:"url"` // Resource URL substring. @@ -261,30 +236,6 @@ func (p *SetEventListenerBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetEventListenerBreakpoint, p, nil) } -// SetInstrumentationBreakpointParams sets breakpoint on particular native -// event. -type SetInstrumentationBreakpointParams struct { - EventName string `json:"eventName"` // Instrumentation name to stop on. -} - -// SetInstrumentationBreakpoint sets breakpoint on particular native event. -// -// See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-setInstrumentationBreakpoint -// -// parameters: -// -// eventName - Instrumentation name to stop on. -func SetInstrumentationBreakpoint(eventName string) *SetInstrumentationBreakpointParams { - return &SetInstrumentationBreakpointParams{ - EventName: eventName, - } -} - -// Do executes DOMDebugger.setInstrumentationBreakpoint against the provided context. -func (p *SetInstrumentationBreakpointParams) Do(ctx context.Context) (err error) { - return cdp.Execute(ctx, CommandSetInstrumentationBreakpoint, p, nil) -} - // SetXHRBreakpointParams sets breakpoint on XMLHttpRequest. type SetXHRBreakpointParams struct { URL string `json:"url"` // Resource URL substring. All XHRs having this substring in the URL will get stopped upon. @@ -310,14 +261,12 @@ func (p *SetXHRBreakpointParams) Do(ctx context.Context) (err error) { // Command names. const ( - CommandGetEventListeners = "DOMDebugger.getEventListeners" - CommandRemoveDOMBreakpoint = "DOMDebugger.removeDOMBreakpoint" - CommandRemoveEventListenerBreakpoint = "DOMDebugger.removeEventListenerBreakpoint" - CommandRemoveInstrumentationBreakpoint = "DOMDebugger.removeInstrumentationBreakpoint" - CommandRemoveXHRBreakpoint = "DOMDebugger.removeXHRBreakpoint" - CommandSetBreakOnCSPViolation = "DOMDebugger.setBreakOnCSPViolation" - CommandSetDOMBreakpoint = "DOMDebugger.setDOMBreakpoint" - CommandSetEventListenerBreakpoint = "DOMDebugger.setEventListenerBreakpoint" - CommandSetInstrumentationBreakpoint = "DOMDebugger.setInstrumentationBreakpoint" - CommandSetXHRBreakpoint = "DOMDebugger.setXHRBreakpoint" + CommandGetEventListeners = "DOMDebugger.getEventListeners" + CommandRemoveDOMBreakpoint = "DOMDebugger.removeDOMBreakpoint" + CommandRemoveEventListenerBreakpoint = "DOMDebugger.removeEventListenerBreakpoint" + CommandRemoveXHRBreakpoint = "DOMDebugger.removeXHRBreakpoint" + CommandSetBreakOnCSPViolation = "DOMDebugger.setBreakOnCSPViolation" + CommandSetDOMBreakpoint = "DOMDebugger.setDOMBreakpoint" + CommandSetEventListenerBreakpoint = "DOMDebugger.setEventListenerBreakpoint" + CommandSetXHRBreakpoint = "DOMDebugger.setXHRBreakpoint" ) diff --git a/domdebugger/easyjson.go b/domdebugger/easyjson.go index f33a454..b7b3366 100644 --- a/domdebugger/easyjson.go +++ b/domdebugger/easyjson.go @@ -84,73 +84,7 @@ func (v *SetXHRBreakpointParams) UnmarshalJSON(data []byte) error { func (v *SetXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger1(in *jlexer.Lexer, out *SetInstrumentationBreakpointParams) { - 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 "eventName": - out.EventName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger1(out *jwriter.Writer, in SetInstrumentationBreakpointParams) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"eventName\":" - out.RawString(prefix[1:]) - out.String(string(in.EventName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetInstrumentationBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger1(l, v) -} -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger2(in *jlexer.Lexer, out *SetEventListenerBreakpointParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger1(in *jlexer.Lexer, out *SetEventListenerBreakpointParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -183,7 +117,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger2(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger2(out *jwriter.Writer, in SetEventListenerBreakpointParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger1(out *jwriter.Writer, in SetEventListenerBreakpointParams) { out.RawByte('{') first := true _ = first @@ -203,27 +137,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger2(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v SetEventListenerBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger2(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger2(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetEventListenerBreakpointParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger2(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger2(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger1(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger3(in *jlexer.Lexer, out *SetDOMBreakpointParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger2(in *jlexer.Lexer, out *SetDOMBreakpointParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -256,7 +190,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger3(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3(out *jwriter.Writer, in SetDOMBreakpointParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger2(out *jwriter.Writer, in SetDOMBreakpointParams) { out.RawByte('{') first := true _ = first @@ -276,27 +210,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v SetDOMBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetDOMBreakpointParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger3(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger3(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger2(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger4(in *jlexer.Lexer, out *SetBreakOnCSPViolationParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger3(in *jlexer.Lexer, out *SetBreakOnCSPViolationParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -348,7 +282,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger4(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger4(out *jwriter.Writer, in SetBreakOnCSPViolationParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3(out *jwriter.Writer, in SetBreakOnCSPViolationParams) { out.RawByte('{') first := true _ = first @@ -374,27 +308,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger4(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v SetBreakOnCSPViolationParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger4(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetBreakOnCSPViolationParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger4(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetBreakOnCSPViolationParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger4(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetBreakOnCSPViolationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger4(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger3(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger5(in *jlexer.Lexer, out *RemoveXHRBreakpointParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger4(in *jlexer.Lexer, out *RemoveXHRBreakpointParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -425,7 +359,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger5(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger5(out *jwriter.Writer, in RemoveXHRBreakpointParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger4(out *jwriter.Writer, in RemoveXHRBreakpointParams) { out.RawByte('{') first := true _ = first @@ -440,93 +374,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger5(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v RemoveXHRBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger5(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoveXHRBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger5(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoveXHRBreakpointParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger5(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoveXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger5(l, v) -} -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger6(in *jlexer.Lexer, out *RemoveInstrumentationBreakpointParams) { - 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 "eventName": - out.EventName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger6(out *jwriter.Writer, in RemoveInstrumentationBreakpointParams) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"eventName\":" - out.RawString(prefix[1:]) - out.String(string(in.EventName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveInstrumentationBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger6(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger4(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7(in *jlexer.Lexer, out *RemoveEventListenerBreakpointParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger5(in *jlexer.Lexer, out *RemoveEventListenerBreakpointParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -559,7 +427,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger7(out *jwriter.Writer, in RemoveEventListenerBreakpointParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger5(out *jwriter.Writer, in RemoveEventListenerBreakpointParams) { out.RawByte('{') first := true _ = first @@ -579,27 +447,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger7(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v RemoveEventListenerBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger7(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoveEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger7(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoveEventListenerBreakpointParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoveEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger8(in *jlexer.Lexer, out *RemoveDOMBreakpointParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger6(in *jlexer.Lexer, out *RemoveDOMBreakpointParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -632,7 +500,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger8(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger8(out *jwriter.Writer, in RemoveDOMBreakpointParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger6(out *jwriter.Writer, in RemoveDOMBreakpointParams) { out.RawByte('{') first := true _ = first @@ -652,27 +520,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger8(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v RemoveDOMBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger8(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoveDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger8(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoveDOMBreakpointParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger8(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoveDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger8(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger6(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger9(in *jlexer.Lexer, out *GetEventListenersReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7(in *jlexer.Lexer, out *GetEventListenersReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -732,7 +600,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger9(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger9(out *jwriter.Writer, in GetEventListenersReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger7(out *jwriter.Writer, in GetEventListenersReturns) { out.RawByte('{') first := true _ = first @@ -761,27 +629,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger9(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v GetEventListenersReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger9(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetEventListenersReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger9(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetEventListenersReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger9(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetEventListenersReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger9(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger7(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger10(in *jlexer.Lexer, out *GetEventListenersParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger8(in *jlexer.Lexer, out *GetEventListenersParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -816,7 +684,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger10(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger10(out *jwriter.Writer, in GetEventListenersParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger8(out *jwriter.Writer, in GetEventListenersParams) { out.RawByte('{') first := true _ = first @@ -841,27 +709,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger10(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v GetEventListenersParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger10(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetEventListenersParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger10(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetEventListenersParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger10(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetEventListenersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger10(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger8(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger11(in *jlexer.Lexer, out *EventListener) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger9(in *jlexer.Lexer, out *EventListener) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -926,7 +794,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger11(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger11(out *jwriter.Writer, in EventListener) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger9(out *jwriter.Writer, in EventListener) { out.RawByte('{') first := true _ = first @@ -986,23 +854,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger11(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v EventListener) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger11(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventListener) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger11(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventListener) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger11(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventListener) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger11(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomdebugger9(l, v) } diff --git a/eventbreakpoints/easyjson.go b/eventbreakpoints/easyjson.go index 77d0205..b94294e 100644 --- a/eventbreakpoints/easyjson.go +++ b/eventbreakpoints/easyjson.go @@ -149,3 +149,62 @@ func (v *RemoveInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error func (v *RemoveInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoEventbreakpoints1(l, v) } +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoEventbreakpoints2(in *jlexer.Lexer, out *DisableParams) { + 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 { + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoEventbreakpoints2(out *jwriter.Writer, in DisableParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoEventbreakpoints2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoEventbreakpoints2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoEventbreakpoints2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoEventbreakpoints2(l, v) +} diff --git a/eventbreakpoints/eventbreakpoints.go b/eventbreakpoints/eventbreakpoints.go index baa2d5c..ec9eff0 100644 --- a/eventbreakpoints/eventbreakpoints.go +++ b/eventbreakpoints/eventbreakpoints.go @@ -1,10 +1,10 @@ // Package eventbreakpoints provides the Chrome DevTools Protocol // commands, types, and events for the EventBreakpoints domain. // -// EventBreakpoints permits setting breakpoints on particular operations and -// events in targets that run JavaScript but do not have a DOM. JavaScript -// execution will stop on these operations as if there was a regular breakpoint -// set. +// EventBreakpoints permits setting JavaScript breakpoints on operations and +// events occurring in native code invoked from JavaScript. Once breakpoint is +// hit, it is reported through Debugger domain, similarly to regular breakpoints +// being hit. // // Generated by the cdproto-gen command. package eventbreakpoints @@ -66,8 +66,24 @@ func (p *RemoveInstrumentationBreakpointParams) Do(ctx context.Context) (err err return cdp.Execute(ctx, CommandRemoveInstrumentationBreakpoint, p, nil) } +// DisableParams removes all breakpoints. +type DisableParams struct{} + +// Disable removes all breakpoints. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/EventBreakpoints#method-disable +func Disable() *DisableParams { + return &DisableParams{} +} + +// Do executes EventBreakpoints.disable against the provided context. +func (p *DisableParams) Do(ctx context.Context) (err error) { + return cdp.Execute(ctx, CommandDisable, nil, nil) +} + // Command names. const ( CommandSetInstrumentationBreakpoint = "EventBreakpoints.setInstrumentationBreakpoint" CommandRemoveInstrumentationBreakpoint = "EventBreakpoints.removeInstrumentationBreakpoint" + CommandDisable = "EventBreakpoints.disable" ) diff --git a/fedcm/easyjson.go b/fedcm/easyjson.go index c0433e9..2bf03cb 100644 --- a/fedcm/easyjson.go +++ b/fedcm/easyjson.go @@ -486,7 +486,7 @@ func (v *DisableParams) UnmarshalJSON(data []byte) error { func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm6(in *jlexer.Lexer, out *ConfirmIdpSigninParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm6(in *jlexer.Lexer, out *ConfirmIdpLoginParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -517,7 +517,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm6(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoFedcm6(out *jwriter.Writer, in ConfirmIdpSigninParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoFedcm6(out *jwriter.Writer, in ConfirmIdpLoginParams) { out.RawByte('{') first := true _ = first @@ -530,26 +530,26 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoFedcm6(out *jwriter.Writer, i } // MarshalJSON supports json.Marshaler interface -func (v ConfirmIdpSigninParams) MarshalJSON() ([]byte, error) { +func (v ConfirmIdpLoginParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComChromedpCdprotoFedcm6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfirmIdpSigninParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v ConfirmIdpLoginParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComChromedpCdprotoFedcm6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfirmIdpSigninParams) UnmarshalJSON(data []byte) error { +func (v *ConfirmIdpLoginParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfirmIdpSigninParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ConfirmIdpLoginParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm6(l, v) } func easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm7(in *jlexer.Lexer, out *Account) { @@ -583,8 +583,8 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoFedcm7(in *jlexer.Lexer, out out.PictureURL = string(in.String()) case "idpConfigUrl": out.IdpConfigURL = string(in.String()) - case "idpSigninUrl": - out.IdpSigninURL = string(in.String()) + case "idpLoginUrl": + out.IdpLoginURL = string(in.String()) case "loginState": (out.LoginState).UnmarshalEasyJSON(in) case "termsOfServiceUrl": @@ -636,9 +636,9 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoFedcm7(out *jwriter.Writer, i out.String(string(in.IdpConfigURL)) } { - const prefix string = ",\"idpSigninUrl\":" + const prefix string = ",\"idpLoginUrl\":" out.RawString(prefix) - out.String(string(in.IdpSigninURL)) + out.String(string(in.IdpLoginURL)) } { const prefix string = ",\"loginState\":" diff --git a/fedcm/fedcm.go b/fedcm/fedcm.go index a9e56a8..fdd9e1f 100644 --- a/fedcm/fedcm.go +++ b/fedcm/fedcm.go @@ -82,29 +82,29 @@ func (p *SelectAccountParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSelectAccount, p, nil) } -// ConfirmIdpSigninParams only valid if the dialog type is ConfirmIdpSignin. +// ConfirmIdpLoginParams only valid if the dialog type is ConfirmIdpLogin. // Acts as if the user had clicked the continue button. -type ConfirmIdpSigninParams struct { +type ConfirmIdpLoginParams struct { DialogID string `json:"dialogId"` } -// ConfirmIdpSignin only valid if the dialog type is ConfirmIdpSignin. Acts -// as if the user had clicked the continue button. +// ConfirmIdpLogin only valid if the dialog type is ConfirmIdpLogin. Acts as +// if the user had clicked the continue button. // -// See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-confirmIdpSignin +// See: https://chromedevtools.github.io/devtools-protocol/tot/FedCm#method-confirmIdpLogin // // parameters: // // dialogID -func ConfirmIdpSignin(dialogID string) *ConfirmIdpSigninParams { - return &ConfirmIdpSigninParams{ +func ConfirmIdpLogin(dialogID string) *ConfirmIdpLoginParams { + return &ConfirmIdpLoginParams{ DialogID: dialogID, } } -// Do executes FedCm.confirmIdpSignin against the provided context. -func (p *ConfirmIdpSigninParams) Do(ctx context.Context) (err error) { - return cdp.Execute(ctx, CommandConfirmIdpSignin, p, nil) +// Do executes FedCm.confirmIdpLogin against the provided context. +func (p *ConfirmIdpLoginParams) Do(ctx context.Context) (err error) { + return cdp.Execute(ctx, CommandConfirmIdpLogin, p, nil) } // DismissDialogParams [no description]. @@ -156,10 +156,10 @@ func (p *ResetCooldownParams) Do(ctx context.Context) (err error) { // Command names. const ( - CommandEnable = "FedCm.enable" - CommandDisable = "FedCm.disable" - CommandSelectAccount = "FedCm.selectAccount" - CommandConfirmIdpSignin = "FedCm.confirmIdpSignin" - CommandDismissDialog = "FedCm.dismissDialog" - CommandResetCooldown = "FedCm.resetCooldown" + CommandEnable = "FedCm.enable" + CommandDisable = "FedCm.disable" + CommandSelectAccount = "FedCm.selectAccount" + CommandConfirmIdpLogin = "FedCm.confirmIdpLogin" + CommandDismissDialog = "FedCm.dismissDialog" + CommandResetCooldown = "FedCm.resetCooldown" ) diff --git a/fedcm/types.go b/fedcm/types.go index 04aaa0a..d0251a1 100644 --- a/fedcm/types.go +++ b/fedcm/types.go @@ -69,9 +69,9 @@ func (t DialogType) String() string { // DialogType values. const ( - DialogTypeAccountChooser DialogType = "AccountChooser" - DialogTypeAutoReauthn DialogType = "AutoReauthn" - DialogTypeConfirmIdpSignin DialogType = "ConfirmIdpSignin" + DialogTypeAccountChooser DialogType = "AccountChooser" + DialogTypeAutoReauthn DialogType = "AutoReauthn" + DialogTypeConfirmIdpLogin DialogType = "ConfirmIdpLogin" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -92,8 +92,8 @@ func (t *DialogType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = DialogTypeAccountChooser case DialogTypeAutoReauthn: *t = DialogTypeAutoReauthn - case DialogTypeConfirmIdpSignin: - *t = DialogTypeConfirmIdpSignin + case DialogTypeConfirmIdpLogin: + *t = DialogTypeConfirmIdpLogin default: in.AddError(fmt.Errorf("unknown DialogType value: %v", v)) @@ -115,7 +115,7 @@ type Account struct { GivenName string `json:"givenName"` PictureURL string `json:"pictureUrl"` IdpConfigURL string `json:"idpConfigUrl"` - IdpSigninURL string `json:"idpSigninUrl"` + IdpLoginURL string `json:"idpLoginUrl"` LoginState LoginState `json:"loginState"` TermsOfServiceURL string `json:"termsOfServiceUrl,omitempty"` // These two are only set if the loginState is signUp PrivacyPolicyURL string `json:"privacyPolicyUrl,omitempty"` diff --git a/network/types.go b/network/types.go index 2218c36..3016d5a 100644 --- a/network/types.go +++ b/network/types.go @@ -1137,6 +1137,7 @@ const ( SetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax SetCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax" SetCookieBlockedReasonSameSiteNoneInsecure SetCookieBlockedReason = "SameSiteNoneInsecure" SetCookieBlockedReasonUserPreferences SetCookieBlockedReason = "UserPreferences" + SetCookieBlockedReasonThirdPartyPhaseout SetCookieBlockedReason = "ThirdPartyPhaseout" SetCookieBlockedReasonThirdPartyBlockedInFirstPartySet SetCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet" SetCookieBlockedReasonSyntaxError SetCookieBlockedReason = "SyntaxError" SetCookieBlockedReasonSchemeNotSupported SetCookieBlockedReason = "SchemeNotSupported" @@ -1151,6 +1152,7 @@ const ( SetCookieBlockedReasonSamePartyConflictsWithOtherAttributes SetCookieBlockedReason = "SamePartyConflictsWithOtherAttributes" SetCookieBlockedReasonNameValuePairExceedsMaxSize SetCookieBlockedReason = "NameValuePairExceedsMaxSize" SetCookieBlockedReasonDisallowedCharacter SetCookieBlockedReason = "DisallowedCharacter" + SetCookieBlockedReasonNoCookieContent SetCookieBlockedReason = "NoCookieContent" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -1179,6 +1181,8 @@ func (t *SetCookieBlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = SetCookieBlockedReasonSameSiteNoneInsecure case SetCookieBlockedReasonUserPreferences: *t = SetCookieBlockedReasonUserPreferences + case SetCookieBlockedReasonThirdPartyPhaseout: + *t = SetCookieBlockedReasonThirdPartyPhaseout case SetCookieBlockedReasonThirdPartyBlockedInFirstPartySet: *t = SetCookieBlockedReasonThirdPartyBlockedInFirstPartySet case SetCookieBlockedReasonSyntaxError: @@ -1207,6 +1211,8 @@ func (t *SetCookieBlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = SetCookieBlockedReasonNameValuePairExceedsMaxSize case SetCookieBlockedReasonDisallowedCharacter: *t = SetCookieBlockedReasonDisallowedCharacter + case SetCookieBlockedReasonNoCookieContent: + *t = SetCookieBlockedReasonNoCookieContent default: in.AddError(fmt.Errorf("unknown SetCookieBlockedReason value: %v", v)) @@ -1239,6 +1245,7 @@ const ( CookieBlockedReasonSameSiteUnspecifiedTreatedAsLax CookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax" CookieBlockedReasonSameSiteNoneInsecure CookieBlockedReason = "SameSiteNoneInsecure" CookieBlockedReasonUserPreferences CookieBlockedReason = "UserPreferences" + CookieBlockedReasonThirdPartyPhaseout CookieBlockedReason = "ThirdPartyPhaseout" CookieBlockedReasonThirdPartyBlockedInFirstPartySet CookieBlockedReason = "ThirdPartyBlockedInFirstPartySet" CookieBlockedReasonUnknownError CookieBlockedReason = "UnknownError" CookieBlockedReasonSchemefulSameSiteStrict CookieBlockedReason = "SchemefulSameSiteStrict" @@ -1278,6 +1285,8 @@ func (t *CookieBlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CookieBlockedReasonSameSiteNoneInsecure case CookieBlockedReasonUserPreferences: *t = CookieBlockedReasonUserPreferences + case CookieBlockedReasonThirdPartyPhaseout: + *t = CookieBlockedReasonThirdPartyPhaseout case CookieBlockedReasonThirdPartyBlockedInFirstPartySet: *t = CookieBlockedReasonThirdPartyBlockedInFirstPartySet case CookieBlockedReasonUnknownError: diff --git a/preload/easyjson.go b/preload/easyjson.go index ed5509e..6affaaf 100644 --- a/preload/easyjson.go +++ b/preload/easyjson.go @@ -613,113 +613,7 @@ func (v *EventPrerenderStatusUpdated) UnmarshalJSON(data []byte) error { func (v *EventPrerenderStatusUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6(in *jlexer.Lexer, out *EventPrerenderAttemptCompleted) { - 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 "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(IngAttemptKey) - } - (*out.Key).UnmarshalEasyJSON(in) - } - case "initiatingFrameId": - (out.InitiatingFrameID).UnmarshalEasyJSON(in) - case "prerenderingUrl": - out.PrerenderingURL = string(in.String()) - case "finalStatus": - (out.FinalStatus).UnmarshalEasyJSON(in) - case "disallowedApiMethod": - out.DisallowedAPIMethod = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6(out *jwriter.Writer, in EventPrerenderAttemptCompleted) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - (*in.Key).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"initiatingFrameId\":" - out.RawString(prefix) - out.String(string(in.InitiatingFrameID)) - } - { - const prefix string = ",\"prerenderingUrl\":" - out.RawString(prefix) - out.String(string(in.PrerenderingURL)) - } - { - const prefix string = ",\"finalStatus\":" - out.RawString(prefix) - (in.FinalStatus).MarshalEasyJSON(out) - } - if in.DisallowedAPIMethod != "" { - const prefix string = ",\"disallowedApiMethod\":" - out.RawString(prefix) - out.String(string(in.DisallowedAPIMethod)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventPrerenderAttemptCompleted) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventPrerenderAttemptCompleted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventPrerenderAttemptCompleted) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventPrerenderAttemptCompleted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6(l, v) -} -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(in *jlexer.Lexer, out *EventPreloadingAttemptSourcesUpdated) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6(in *jlexer.Lexer, out *EventPreloadingAttemptSourcesUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -781,7 +675,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(out *jwriter.Writer, in EventPreloadingAttemptSourcesUpdated) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6(out *jwriter.Writer, in EventPreloadingAttemptSourcesUpdated) { out.RawByte('{') first := true _ = first @@ -816,27 +710,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventPreloadingAttemptSourcesUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventPreloadingAttemptSourcesUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventPreloadingAttemptSourcesUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventPreloadingAttemptSourcesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(in *jlexer.Lexer, out *EventPreloadEnabledStateUpdated) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(in *jlexer.Lexer, out *EventPreloadEnabledStateUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -875,7 +769,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(out *jwriter.Writer, in EventPreloadEnabledStateUpdated) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(out *jwriter.Writer, in EventPreloadEnabledStateUpdated) { out.RawByte('{') first := true _ = first @@ -910,27 +804,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventPreloadEnabledStateUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventPreloadEnabledStateUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventPreloadEnabledStateUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventPreloadEnabledStateUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(in *jlexer.Lexer, out *EventPrefetchStatusUpdated) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(in *jlexer.Lexer, out *EventPrefetchStatusUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -979,7 +873,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(out *jwriter.Writer, in EventPrefetchStatusUpdated) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(out *jwriter.Writer, in EventPrefetchStatusUpdated) { out.RawByte('{') first := true _ = first @@ -1023,27 +917,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventPrefetchStatusUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventPrefetchStatusUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventPrefetchStatusUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventPrefetchStatusUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1072,7 +966,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -1082,27 +976,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload11(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1131,7 +1025,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload11(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload11(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -1141,23 +1035,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload11(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload11(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload11(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload11(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload11(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(l, v) } diff --git a/preload/events.go b/preload/events.go index 6e5762e..ff84efb 100644 --- a/preload/events.go +++ b/preload/events.go @@ -22,18 +22,6 @@ type EventRuleSetRemoved struct { ID RuleSetID `json:"id"` } -// EventPrerenderAttemptCompleted fired when a prerender attempt is -// completed. -// -// See: https://chromedevtools.github.io/devtools-protocol/tot/Preload#event-prerenderAttemptCompleted -type EventPrerenderAttemptCompleted struct { - Key *IngAttemptKey `json:"key"` - InitiatingFrameID cdp.FrameID `json:"initiatingFrameId"` // The frame id of the frame initiating prerendering. - PrerenderingURL string `json:"prerenderingUrl"` - FinalStatus PrerenderFinalStatus `json:"finalStatus"` - DisallowedAPIMethod string `json:"disallowedApiMethod,omitempty"` // This is used to give users more information about the name of the API call that is incompatible with prerender and has caused the cancellation of the attempt -} - // EventPreloadEnabledStateUpdated fired when a preload enabled state is // updated. // diff --git a/preload/types.go b/preload/types.go index 5e665ef..c79987a 100644 --- a/preload/types.go +++ b/preload/types.go @@ -217,7 +217,6 @@ const ( PrerenderFinalStatusLowEndDevice PrerenderFinalStatus = "LowEndDevice" PrerenderFinalStatusInvalidSchemeRedirect PrerenderFinalStatus = "InvalidSchemeRedirect" PrerenderFinalStatusInvalidSchemeNavigation PrerenderFinalStatus = "InvalidSchemeNavigation" - PrerenderFinalStatusInProgressNavigation PrerenderFinalStatus = "InProgressNavigation" PrerenderFinalStatusNavigationRequestBlockedByCsp PrerenderFinalStatus = "NavigationRequestBlockedByCsp" PrerenderFinalStatusMainFrameNavigation PrerenderFinalStatus = "MainFrameNavigation" PrerenderFinalStatusMojoBinderPolicy PrerenderFinalStatus = "MojoBinderPolicy" @@ -241,7 +240,7 @@ const ( PrerenderFinalStatusTriggerBackgrounded PrerenderFinalStatus = "TriggerBackgrounded" PrerenderFinalStatusMemoryLimitExceeded PrerenderFinalStatus = "MemoryLimitExceeded" PrerenderFinalStatusDataSaverEnabled PrerenderFinalStatus = "DataSaverEnabled" - PrerenderFinalStatusHasEffectiveURL PrerenderFinalStatus = "HasEffectiveUrl" + PrerenderFinalStatusTriggerURLHasEffectiveURL PrerenderFinalStatus = "TriggerUrlHasEffectiveUrl" PrerenderFinalStatusActivatedBeforeStarted PrerenderFinalStatus = "ActivatedBeforeStarted" PrerenderFinalStatusInactivePageRestriction PrerenderFinalStatus = "InactivePageRestriction" PrerenderFinalStatusStartFailed PrerenderFinalStatus = "StartFailed" @@ -276,6 +275,9 @@ const ( PrerenderFinalStatusMaxNumOfRunningEagerPrerendersExceeded PrerenderFinalStatus = "MaxNumOfRunningEagerPrerendersExceeded" PrerenderFinalStatusMaxNumOfRunningNonEagerPrerendersExceeded PrerenderFinalStatus = "MaxNumOfRunningNonEagerPrerendersExceeded" PrerenderFinalStatusMaxNumOfRunningEmbedderPrerendersExceeded PrerenderFinalStatus = "MaxNumOfRunningEmbedderPrerendersExceeded" + PrerenderFinalStatusPrerenderingURLHasEffectiveURL PrerenderFinalStatus = "PrerenderingUrlHasEffectiveUrl" + PrerenderFinalStatusRedirectedPrerenderingURLHasEffectiveURL PrerenderFinalStatus = "RedirectedPrerenderingUrlHasEffectiveUrl" + PrerenderFinalStatusActivationURLHasEffectiveURL PrerenderFinalStatus = "ActivationUrlHasEffectiveUrl" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -302,8 +304,6 @@ func (t *PrerenderFinalStatus) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PrerenderFinalStatusInvalidSchemeRedirect case PrerenderFinalStatusInvalidSchemeNavigation: *t = PrerenderFinalStatusInvalidSchemeNavigation - case PrerenderFinalStatusInProgressNavigation: - *t = PrerenderFinalStatusInProgressNavigation case PrerenderFinalStatusNavigationRequestBlockedByCsp: *t = PrerenderFinalStatusNavigationRequestBlockedByCsp case PrerenderFinalStatusMainFrameNavigation: @@ -350,8 +350,8 @@ func (t *PrerenderFinalStatus) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PrerenderFinalStatusMemoryLimitExceeded case PrerenderFinalStatusDataSaverEnabled: *t = PrerenderFinalStatusDataSaverEnabled - case PrerenderFinalStatusHasEffectiveURL: - *t = PrerenderFinalStatusHasEffectiveURL + case PrerenderFinalStatusTriggerURLHasEffectiveURL: + *t = PrerenderFinalStatusTriggerURLHasEffectiveURL case PrerenderFinalStatusActivatedBeforeStarted: *t = PrerenderFinalStatusActivatedBeforeStarted case PrerenderFinalStatusInactivePageRestriction: @@ -420,6 +420,12 @@ func (t *PrerenderFinalStatus) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PrerenderFinalStatusMaxNumOfRunningNonEagerPrerendersExceeded case PrerenderFinalStatusMaxNumOfRunningEmbedderPrerendersExceeded: *t = PrerenderFinalStatusMaxNumOfRunningEmbedderPrerendersExceeded + case PrerenderFinalStatusPrerenderingURLHasEffectiveURL: + *t = PrerenderFinalStatusPrerenderingURLHasEffectiveURL + case PrerenderFinalStatusRedirectedPrerenderingURLHasEffectiveURL: + *t = PrerenderFinalStatusRedirectedPrerenderingURLHasEffectiveURL + case PrerenderFinalStatusActivationURLHasEffectiveURL: + *t = PrerenderFinalStatusActivationURLHasEffectiveURL default: in.AddError(fmt.Errorf("unknown PrerenderFinalStatus value: %v", v)) diff --git a/runtime/runtime.go b/runtime/runtime.go index 5e738f9..0e3ba7c 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -90,7 +90,7 @@ type CallFunctionOnParams struct { ObjectGroup string `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"` // Whether to throw an exception if side effect cannot be ruled out during evaluation. UniqueContextID string `json:"uniqueContextId,omitempty"` // An alternative way to specify the execution context to call function on. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental function call in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with executionContextId. - SerializationOptions *SerializationOptions `json:"serializationOptions,omitempty"` // Specifies the result serialization. If provided, overrides generatePreview, returnByValue and generateWebDriverValue. + SerializationOptions *SerializationOptions `json:"serializationOptions,omitempty"` // Specifies the result serialization. If provided, overrides generatePreview and returnByValue. } // CallFunctionOn calls function with given declaration on the given object. @@ -190,7 +190,7 @@ func (p CallFunctionOnParams) WithUniqueContextID(uniqueContextID string) *CallF } // WithSerializationOptions specifies the result serialization. If provided, -// overrides generatePreview, returnByValue and generateWebDriverValue. +// overrides generatePreview and returnByValue. func (p CallFunctionOnParams) WithSerializationOptions(serializationOptions *SerializationOptions) *CallFunctionOnParams { p.SerializationOptions = serializationOptions return &p @@ -342,7 +342,7 @@ type EvaluateParams struct { ReplMode bool `json:"replMode,omitempty"` // Setting this flag to true enables let re-declaration and top-level await. Note that let variables can only be re-declared if they originate from replMode themselves. AllowUnsafeEvalBlockedByCSP bool `json:"allowUnsafeEvalBlockedByCSP,omitempty"` // The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true. UniqueContextID string `json:"uniqueContextId,omitempty"` // An alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with contextId. - SerializationOptions *SerializationOptions `json:"serializationOptions,omitempty"` // Specifies the result serialization. If provided, overrides generatePreview, returnByValue and generateWebDriverValue. + SerializationOptions *SerializationOptions `json:"serializationOptions,omitempty"` // Specifies the result serialization. If provided, overrides generatePreview and returnByValue. } // Evaluate evaluates expression on global object. @@ -465,7 +465,7 @@ func (p EvaluateParams) WithUniqueContextID(uniqueContextID string) *EvaluatePar } // WithSerializationOptions specifies the result serialization. If provided, -// overrides generatePreview, returnByValue and generateWebDriverValue. +// overrides generatePreview and returnByValue. func (p EvaluateParams) WithSerializationOptions(serializationOptions *SerializationOptions) *EvaluateParams { p.SerializationOptions = serializationOptions return &p diff --git a/runtime/types.go b/runtime/types.go index 6dce1bf..36e96b9 100644 --- a/runtime/types.go +++ b/runtime/types.go @@ -24,7 +24,7 @@ func (t ScriptID) String() string { } // SerializationOptions represents options for serialization. Overrides -// generatePreview, returnByValue and generateWebDriverValue. +// generatePreview and returnByValue. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-SerializationOptions type SerializationOptions struct { diff --git a/storage/easyjson.go b/storage/easyjson.go index 0f04554..4938e49 100644 --- a/storage/easyjson.go +++ b/storage/easyjson.go @@ -2100,13 +2100,13 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage26(in *jlexer.Lexer, o } case "joiningOrigin": out.JoiningOrigin = string(in.String()) - case "biddingUrl": - out.BiddingURL = string(in.String()) - case "biddingWasmHelperUrl": + case "biddingLogicURL": + out.BiddingLogicURL = string(in.String()) + case "biddingWasmHelperURL": out.BiddingWasmHelperURL = string(in.String()) - case "updateUrl": + case "updateURL": out.UpdateURL = string(in.String()) - case "trustedBiddingSignalsUrl": + case "trustedBiddingSignalsURL": out.TrustedBiddingSignalsURL = string(in.String()) case "trustedBiddingSignalsKeys": if in.IsNull() { @@ -2233,23 +2233,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage26(out *jwriter.Writer out.RawString(prefix) out.String(string(in.JoiningOrigin)) } - if in.BiddingURL != "" { - const prefix string = ",\"biddingUrl\":" + if in.BiddingLogicURL != "" { + const prefix string = ",\"biddingLogicURL\":" out.RawString(prefix) - out.String(string(in.BiddingURL)) + out.String(string(in.BiddingLogicURL)) } if in.BiddingWasmHelperURL != "" { - const prefix string = ",\"biddingWasmHelperUrl\":" + const prefix string = ",\"biddingWasmHelperURL\":" out.RawString(prefix) out.String(string(in.BiddingWasmHelperURL)) } if in.UpdateURL != "" { - const prefix string = ",\"updateUrl\":" + const prefix string = ",\"updateURL\":" out.RawString(prefix) out.String(string(in.UpdateURL)) } if in.TrustedBiddingSignalsURL != "" { - const prefix string = ",\"trustedBiddingSignalsUrl\":" + const prefix string = ",\"trustedBiddingSignalsURL\":" out.RawString(prefix) out.String(string(in.TrustedBiddingSignalsURL)) } @@ -2359,7 +2359,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage27(in *jlexer.Lexer, o continue } switch key { - case "renderUrl": + case "renderURL": out.RenderURL = string(in.String()) case "metadata": out.Metadata = string(in.String()) @@ -2378,7 +2378,7 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage27(out *jwriter.Writer first := true _ = first { - const prefix string = ",\"renderUrl\":" + const prefix string = ",\"renderURL\":" out.RawString(prefix[1:]) out.String(string(in.RenderURL)) } @@ -5144,8 +5144,6 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage61(in *jlexer.Lexer, o } case "expiry": out.Expiry = int64(in.Int64()) - case "eventReportWindow": - out.EventReportWindow = int64(in.Int64()) case "eventReportWindows": if in.IsNull() { in.Skip() @@ -5278,22 +5276,21 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoStorage61(out *jwriter.Writer (*in.Time).MarshalEasyJSON(out) } } - if in.Expiry != 0 { + { const prefix string = ",\"expiry\":" out.RawString(prefix) out.Int64(int64(in.Expiry)) } - if in.EventReportWindow != 0 { - const prefix string = ",\"eventReportWindow\":" - out.RawString(prefix) - out.Int64(int64(in.EventReportWindow)) - } - if in.EventReportWindows != nil { + { const prefix string = ",\"eventReportWindows\":" out.RawString(prefix) - (*in.EventReportWindows).MarshalEasyJSON(out) + if in.EventReportWindows == nil { + out.RawString("null") + } else { + (*in.EventReportWindows).MarshalEasyJSON(out) + } } - if in.AggregatableReportWindow != 0 { + { const prefix string = ",\"aggregatableReportWindow\":" out.RawString(prefix) out.Int64(int64(in.AggregatableReportWindow)) diff --git a/storage/types.go b/storage/types.go index 37d7cae..7155285 100644 --- a/storage/types.go +++ b/storage/types.go @@ -131,12 +131,15 @@ func (t InterestGroupAccessType) String() string { // InterestGroupAccessType values. const ( - InterestGroupAccessTypeJoin InterestGroupAccessType = "join" - InterestGroupAccessTypeLeave InterestGroupAccessType = "leave" - InterestGroupAccessTypeUpdate InterestGroupAccessType = "update" - InterestGroupAccessTypeLoaded InterestGroupAccessType = "loaded" - InterestGroupAccessTypeBid InterestGroupAccessType = "bid" - InterestGroupAccessTypeWin InterestGroupAccessType = "win" + InterestGroupAccessTypeJoin InterestGroupAccessType = "join" + InterestGroupAccessTypeLeave InterestGroupAccessType = "leave" + InterestGroupAccessTypeUpdate InterestGroupAccessType = "update" + InterestGroupAccessTypeLoaded InterestGroupAccessType = "loaded" + InterestGroupAccessTypeBid InterestGroupAccessType = "bid" + InterestGroupAccessTypeWin InterestGroupAccessType = "win" + InterestGroupAccessTypeAdditionalBid InterestGroupAccessType = "additionalBid" + InterestGroupAccessTypeAdditionalBidWin InterestGroupAccessType = "additionalBidWin" + InterestGroupAccessTypeClear InterestGroupAccessType = "clear" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -165,6 +168,12 @@ func (t *InterestGroupAccessType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = InterestGroupAccessTypeBid case InterestGroupAccessTypeWin: *t = InterestGroupAccessTypeWin + case InterestGroupAccessTypeAdditionalBid: + *t = InterestGroupAccessTypeAdditionalBid + case InterestGroupAccessTypeAdditionalBidWin: + *t = InterestGroupAccessTypeAdditionalBidWin + case InterestGroupAccessTypeClear: + *t = InterestGroupAccessTypeClear default: in.AddError(fmt.Errorf("unknown InterestGroupAccessType value: %v", v)) @@ -180,7 +189,7 @@ func (t *InterestGroupAccessType) UnmarshalJSON(buf []byte) error { // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-InterestGroupAd type InterestGroupAd struct { - RenderURL string `json:"renderUrl"` + RenderURL string `json:"renderURL"` Metadata string `json:"metadata,omitempty"` } @@ -192,10 +201,10 @@ type InterestGroupDetails struct { Name string `json:"name"` ExpirationTime *cdp.TimeSinceEpoch `json:"expirationTime"` JoiningOrigin string `json:"joiningOrigin"` - BiddingURL string `json:"biddingUrl,omitempty"` - BiddingWasmHelperURL string `json:"biddingWasmHelperUrl,omitempty"` - UpdateURL string `json:"updateUrl,omitempty"` - TrustedBiddingSignalsURL string `json:"trustedBiddingSignalsUrl,omitempty"` + BiddingLogicURL string `json:"biddingLogicURL,omitempty"` + BiddingWasmHelperURL string `json:"biddingWasmHelperURL,omitempty"` + UpdateURL string `json:"updateURL,omitempty"` + TrustedBiddingSignalsURL string `json:"trustedBiddingSignalsURL,omitempty"` TrustedBiddingSignalsKeys []string `json:"trustedBiddingSignalsKeys"` UserBiddingSignals string `json:"userBiddingSignals,omitempty"` Ads []*InterestGroupAd `json:"ads"` @@ -508,10 +517,9 @@ type AttributionReportingEventReportWindows struct { // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#type-AttributionReportingSourceRegistration type AttributionReportingSourceRegistration struct { Time *cdp.TimeSinceEpoch `json:"time"` - Expiry int64 `json:"expiry,omitempty"` // duration in seconds - EventReportWindow int64 `json:"eventReportWindow,omitempty"` // eventReportWindow and eventReportWindows are mutually exclusive duration in seconds - EventReportWindows *AttributionReportingEventReportWindows `json:"eventReportWindows,omitempty"` - AggregatableReportWindow int64 `json:"aggregatableReportWindow,omitempty"` // duration in seconds + Expiry int64 `json:"expiry"` // duration in seconds + EventReportWindows *AttributionReportingEventReportWindows `json:"eventReportWindows"` + AggregatableReportWindow int64 `json:"aggregatableReportWindow"` // duration in seconds Type AttributionReportingSourceType `json:"type"` SourceOrigin string `json:"sourceOrigin"` ReportingOrigin string `json:"reportingOrigin"`