diff --git a/cdp/network/types.go b/cdp/network/types.go index c436bc5..24fa630 100644 --- a/cdp/network/types.go +++ b/cdp/network/types.go @@ -482,9 +482,10 @@ func (t InitiatorType) String() string { // InitiatorType values. const ( - InitiatorTypeParser InitiatorType = "parser" - InitiatorTypeScript InitiatorType = "script" - InitiatorTypeOther InitiatorType = "other" + InitiatorTypeParser InitiatorType = "parser" + InitiatorTypeScript InitiatorType = "script" + InitiatorTypePreload InitiatorType = "preload" + InitiatorTypeOther InitiatorType = "other" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -504,6 +505,8 @@ func (t *InitiatorType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = InitiatorTypeParser case InitiatorTypeScript: *t = InitiatorTypeScript + case InitiatorTypePreload: + *t = InitiatorTypePreload case InitiatorTypeOther: *t = InitiatorTypeOther diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 009ed6c..b201788 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -2405,6 +2405,7 @@ "enum": [ "parser", "script", + "preload", "other" ], "description": "Type of this initiator."