Skip to content

chore(driver): roll to 1.62.0 - #3160

Closed
dcrousso wants to merge 1 commit into
microsoft:mainfrom
dcrousso:roll-1.62.0
Closed

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

Conversation

@dcrousso

@dcrousso dcrousso commented Jul 29, 2026

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

@Skn0tt 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.

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
@dcrousso dcrousso changed the title chore: roll to 1.62.0 chore(driver): roll to 1.62.0 Jul 30, 2026
@dcrousso
dcrousso requested a review from Skn0tt July 30, 2026 17:39
)
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.

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.

@Skn0tt

Skn0tt commented Jul 31, 2026

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).

@dcrousso

Copy link
Copy Markdown
Author

closing in favor of #3161

@dcrousso dcrousso closed this Jul 31, 2026
@dcrousso
dcrousso deleted the roll-1.62.0 branch July 31, 2026 16:21
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