FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore(driver): roll to 1.62.0 by dcrousso · Pull Request #3160 · microsoft/playwright-python · GitHub

chore(driver): roll to 1.62.0 - #3160

Closed
Devin Rousso (dcrousso) wants to merge 1 commit into
microsoft:mainfrom
dcrousso:roll-1.62.0
Closed

chore(driver): roll to 1.62.0#3160
Devin Rousso (dcrousso) wants to merge 1 commit into
microsoft:mainfrom
dcrousso:roll-1.62.0

Conversation

Devin Rousso (dcrousso) commented Jul 29, 2026
edited
Loading

Copy link
Copy Markdown

Rolls the driver to 1.62.0 and regenerates the sync and async APIs from the v1.62.0 documentation.

Upstream removed the routeFromHar interceptAPIRequests option before 1.62.0 in microsoft/playwright#41964 and microsoft/playwright#41965. This drops intercept_api_requests, the HarRouter.add_api_request_route helper, the routeAPIRequestsFromHar and unrouteAPIRequestsFromHar calls, and their tests. The tests asserting API requests are not served from HAR by default remain.

Firefox 153 fixes microsoft/playwright#38919, so the worker locale test now uses the context locale expectation for every browser.

The 1.62.0 driver requires each screencastFrame event to be acknowledged after its callback finishes. The Python client now sends screencastFrameAck after sync callbacks and awaited async callbacks, preserving backpressure.

Validation:

  • pre-commit passes for the modified screencast files
  • Chromium screencast coverage passes with 12 tests
  • The async backpressure test passes on Chromium, Firefox, and WebKit
  • tests/async on Chromium passes with 1581 tests and 7 skipped tests
  • HAR coverage passes with 68 tests
  • API generation used PW_SRC_DIR pinned to v1.62.0 at e3950d9c140d007bd52853b45813c6274b24e36f

Simon Knott (Skn0tt) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I believe this is missing the screencast ack, see microsoft/playwright@bc97a13.

roll the driver to `1.62.0` and regenerate the sync and async APIs from the `v1.62.0` documentation

upstream removed the `routeFromHar` `interceptAPIRequests` option before `1.62.0`, so drop `intercept_api_requests`, `HarRouter.add_api_request_route`, and their tests

Firefox `153` fixes <microsoft/playwright#38919>, so use the context locale expectation for every browser

acknowledge each screencast frame after its callback finishes so the driver can apply backpressure and deliver the next frame
Devin Rousso (dcrousso) changed the title chore: roll to 1.62.0 chore(driver): roll to 1.62.0 Jul 30, 2026
)
finally:
if result is not None and hasattr(result, "__await__"):
self._page._loop.create_task(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

this task should be somehow returned into the page._channel.on() caller in L54, otherwise exceptions in onFrame customer code are silently swallowed. This isn't a problem in Node.js land because there's the unhandled rejection concept, this doesn't exist in Python though.

Otherwise this is the same as I came up with in #3161, which is a good sign. Let's figure out why these Chromium tests are hanging.

Simon Knott (Skn0tt) commented Jul 31, 2026
edited
Loading

Copy link
Copy Markdown
Member

The failing CI seems to be related to microsoft/playwright#41303 and page.close() hanging, i'm looking into it.

Edit: See #3161 (comment).

Copy link
Copy Markdown
Author

closing in favor of #3161

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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]: locale is not propagated to workers in firefox

2 participants


Back | FazBrowse Home | New Git URL