You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The aim of the generated package github.com/chromedp/cdproto is to drive Chrome through the CDP. According to Network.Cookie, the priority field is mandatory. And according to Network.CookiePriority, the allowed values are: Low, Medium, High. So it's reasonable to return an error when the json does not contain the priority field. Regarding the marshaling part, the browser passed network.Cookie to a CDP client, and it's the browser's responsibility to make sure the value is valid (according to the protocol). So it's working as intended.
I'm not sure why you use it in this way. Closing the issue for now. Let me know if you think differently.
follow code will panic:
same issue from chromedp/cdproto#7
The text was updated successfully, but these errors were encountered: