Skip to content

fix(transport): reject NaN and Infinity instead of crashing the driver - #3221

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:fix-43095
Oct 5, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:fix-43095

Conversation

@pavelfeldman

Copy link
Copy Markdown
Member

Summary

  • Serialize protocol messages with allow_nan=False so non-finite floats (e.g. timeout=float("inf")) raise a Playwright Error instead of sending invalid JSON that kills the driver.

Fixes microsoft/playwright#43095

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 3705559 into microsoft:main Oct 5, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: NaN, Infinity and -Infinity can produce invalid JSON and terminate the Playwright driver

2 participants