Skip to content

Commit 66c4695

Browse files
fix: round cookie expiry field (#3938)
Align with WebDriver BiDi spec, which requires the `expiry` to be integer. Addressing #3936
1 parent 96a4ad3 commit 66c4695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bidiMapper/modules/network/NetworkUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export function cdpToBiDiCookie(
195195
cookie.sameSite === undefined
196196
? Network.SameSite.None
197197
: sameSiteCdpToBiDi(cookie.sameSite),
198-
...(cookie.expires >= 0 ? {expiry: cookie.expires} : undefined),
198+
...(cookie.expires >= 0 ? {expiry: Math.round(cookie.expires)} : undefined),
199199
};
200200

201201
// Extending with CDP-specific properties with `goog:` prefix.

0 commit comments

Comments
 (0)