Storage.getCookies domain call fails during deserialization due to sameParty field not being nullable.
Here is the corrected dev.kdriver.cdp.domain.Network.Cockie class (Tested with Chrome 142.x->146.x)
@Serializable
data class Cookie(
val name: String,
val value: String,
val domain: String,
val path: String,
val expires: Double,
val size: Int,
val httpOnly: Boolean,
val secure: Boolean,
val session: Boolean,
val sameSite: Network.CookieSameSite? = null,
val priority: Network.CookiePriority,
val sameParty: Boolean?,
val sourceScheme: Network.CookieSourceScheme,
val sourcePort: Int,
val partitionKeyOpaque: Boolean? = null,
)
Storage.getCookiesdomain call fails during deserialization due tosamePartyfield not being nullable.Here is the corrected
dev.kdriver.cdp.domain.Network.Cockieclass (Tested with Chrome 142.x->146.x)