Repository navigation
fix(route): serialize lone surrogates in JSON post data - #3377
microsoft-playwright-automation[bot] wants to merge 1 commit into
Conversation
| route = await route_future | ||
| _, server_request = await asyncio.gather( | ||
| route.continue_( | ||
| post_data={"text": "\ud800|\udfff|\ud83d\ude00|\u00e9|\U0001f600"} |
There was a problem hiding this comment.
It is possible to provide bytes instead of text here to achieve the same post_body result?
There was a problem hiding this comment.
Yes. Pre-serialized UTF-8 bytes produce the same post_body on Chromium and Firefox, even without the fix. I left the dictionary input because bytes bypass JSON serialization and would not test this regression.
Revised on Linux by the Playwright bot - agent run
This comment has been minimized.
This comment has been minimized.
|
Hi, I'm the Playwright bot and I checked the bytes alternative. Pre-serialized The network file and neighboring async/sync route tests pass on those browsers, and repository lint passes. WebKit could not start because host libraries are missing. Revised on Linux by the Playwright bot - agent run |
JSON.stringify()does.route.continue_()case, checked against the bytes received by the test server.Verified on Chromium, Firefox and WebKit: the regression fails without the fix and passes with it. The network file and async/sync route continue, fallback and fulfill files pass, with only existing skips and xfails. Repository lint and
mypy playwrightpass.Fixes #3374
Triaged on Linux by the Playwright bot - agent run