# fix\(desktop\): import an unset SameSite as unspecified, not none · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/02e3fc056b282c5ac57f389db2b53f451d1b35d6)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 02e3fc056b282c5ac57f389db2b53f451d1b35d6

Requested commit: 02e3fc056b282c5ac57f389db2b53f451d1b35d6

Commit: 02e3fc056b282c5ac57f389db2b53f451d1b35d6

Tree: cb648a648f617e76c7007ecc74946bcefd837358

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(desktop): import an unset SameSite as unspecified, not none

Firefox stores nsICookie::SAMESITE_UNSET (256) for a cookie that carried no
SameSite attribute, distinct from SAMESITE_NONE (0), an explicit opt-in to
cross-site use. The reader collapsed the unknown value onto Lax, and the
reviewed suggestion would have made it None — both change the cookie's
meaning. `ImportedCookie` now carries Electron's own `unspecified`, which lets
the target browser apply its default exactly as the source did, and both
engines map their "no attribute" sentinel (Firefox 256, Chromium -1) to it.

Also drops a doubled `/**` opener left above `cookieDatabaseCandidatePaths`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

- [92bfdf8804c5e2c6da756af0190e7f854bb7593a](https://git.cafe/pingdotgg/t3code/commit/92bfdf8804c5e2c6da756af0190e7f854bb7593a?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/02e3fc056b282c5ac57f389db2b53f451d1b35d6?format=markdown)
