From b54925695200cad32f470f8eb407259606447a85 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Tue, 27 Oct 2020 10:15:31 -0700 Subject: [PATCH] feat(chromium): roll Chromium to r818858 (#6526) This corresponds to Chromium 88.0.4298.0. This roll includes: - DevTools: Wait for a frame before sending touch and wheel events https://chromium-review.googlesource.com/c/chromium/src/+/2437695 --- package.json | 2 +- src/common/Input.ts | 9 --------- src/revisions.ts | 2 +- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index b346690ba7d..3e2372c53a2 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "license": "Apache-2.0", "dependencies": { "debug": "^4.1.0", - "devtools-protocol": "0.0.809251", + "devtools-protocol": "0.0.818844", "extract-zip": "^2.0.0", "https-proxy-agent": "^4.0.0", "node-fetch": "^2.6.1", diff --git a/src/common/Input.ts b/src/common/Input.ts index 495bd28442a..31237062561 100644 --- a/src/common/Input.ts +++ b/src/common/Input.ts @@ -510,15 +510,6 @@ export class Touchscreen { * @param y - Vertical position of the tap. */ async tap(x: number, y: number): Promise { - // Touches appear to be lost during the first frame after navigation. - // This waits a frame before sending the tap. - // @see https://crbug.com/613219 - await this._client.send('Runtime.evaluate', { - expression: - 'new Promise(x => requestAnimationFrame(() => requestAnimationFrame(x)))', - awaitPromise: true, - }); - const touchPoints = [{ x: Math.round(x), y: Math.round(y) }]; await this._client.send('Input.dispatchTouchEvent', { type: 'touchStart', diff --git a/src/revisions.ts b/src/revisions.ts index a1e4daaf80e..5e9169adb0c 100644 --- a/src/revisions.ts +++ b/src/revisions.ts @@ -20,6 +20,6 @@ type Revisions = Readonly<{ }>; export const PUPPETEER_REVISIONS: Revisions = { - chromium: '809590', + chromium: '818858', firefox: 'latest', };