Skip to content

🐞 Bug: Cockie.sameParty should be nullable #65

@cyparu

Description

@cyparu

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,
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions