From 9265669a7e1c93393f74d6dc6871e85eab4dcbe8 Mon Sep 17 00:00:00 2001 From: David Munechika Date: Fri, 8 Oct 2021 10:28:14 -0400 Subject: [PATCH] fix: `everyNthFrame` should only be applied for Chrome 89+ (#18392) Co-authored-by: Zach Bloomquist --- packages/server/lib/browsers/cdp_automation.ts | 8 +++++--- packages/server/lib/browsers/chrome.ts | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/server/lib/browsers/cdp_automation.ts b/packages/server/lib/browsers/cdp_automation.ts index 4271e8d6e033..f0a430e1aaa2 100644 --- a/packages/server/lib/browsers/cdp_automation.ts +++ b/packages/server/lib/browsers/cdp_automation.ts @@ -19,9 +19,11 @@ export type CyCookie = Pick= CHROME_VERSION_WITH_FPS_INCREASE ? screencastOpts() : screencastOpts(1)) return client } @@ -528,7 +529,7 @@ export = { await originalBrowserKill.apply(launchedBrowser, args) } - await this._maybeRecordVideo(criClient, options) + await this._maybeRecordVideo(criClient, options, browser.majorVersion) await this._navigateUsingCRI(criClient, url) await this._handleDownloads(criClient, options.downloadsFolder, automation)