diff --git a/README.md b/README.md
index bd0475b65fe97..b54a1bc7c4d10 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# 🎠Playwright
-[](https://www.npmjs.com/package/playwright) [](https://www.chromium.org/Home) [](https://www.mozilla.org/en-US/firefox/new/) [](https://webkit.org/) [](https://aka.ms/playwright/discord)
+[](https://www.npmjs.com/package/playwright) [](https://www.chromium.org/Home) [](https://www.mozilla.org/en-US/firefox/new/) [](https://webkit.org/) [](https://aka.ms/playwright/discord)
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)
@@ -296,7 +296,7 @@ The [Playwright VS Code extension](https://marketplace.visualstudio.com/items?it
| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
-| Chromium1 151.0.7922.10 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| Chromium1 151.0.7922.19 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit 26.5 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox 152.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
diff --git a/packages/injected/src/injectedScript.ts b/packages/injected/src/injectedScript.ts
index d4a4ccad07017..4c61203318e79 100644
--- a/packages/injected/src/injectedScript.ts
+++ b/packages/injected/src/injectedScript.ts
@@ -1115,7 +1115,7 @@ export class InjectedScript {
}[action];
let result: 'done' | { hitTargetDescription: string } | undefined;
- const listener = (event: PointerEvent | MouseEvent | TouchEvent) => {
+ let listener: ((event: PointerEvent | MouseEvent | TouchEvent) => void) | undefined = (event: PointerEvent | MouseEvent | TouchEvent) => {
// Ignore events that we do not expect to intercept.
if (!events.has(event.type))
return;
@@ -1144,6 +1144,7 @@ export class InjectedScript {
const stop = () => {
if (this._hitTargetInterceptor === listener)
this._hitTargetInterceptor = undefined;
+ listener = undefined;
// If we did not get any events, consider things working. Possible causes:
// - JavaScript is disabled (webkit-only).
// - Some