From f47a8a677c02ae990c0c24b030831e1793487191 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Thu, 16 Mar 2023 16:56:25 -0700 Subject: [PATCH] chore: verify chromium builds (#21730) --- packages/playwright-core/src/server/registry/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/playwright-core/src/server/registry/index.ts b/packages/playwright-core/src/server/registry/index.ts index 25c63944bb..f9bbb9813e 100644 --- a/packages/playwright-core/src/server/registry/index.ts +++ b/packages/playwright-core/src/server/registry/index.ts @@ -884,7 +884,8 @@ export class Registry { const usedBrowserPath = descriptor.dir; const browserRevision = parseInt(descriptor.revision, 10); // Old browser installations don't have marker file. - const shouldHaveMarkerFile = (browserName === 'chromium' && browserRevision >= 786218) || + // We switched chromium from 999999 to 1000, 300000 is the new Y2K. + const shouldHaveMarkerFile = (browserName === 'chromium' && (browserRevision >= 786218 || browserRevision < 300000)) || (browserName === 'firefox' && browserRevision >= 1128) || (browserName === 'webkit' && browserRevision >= 1307) || // All new applications have a marker file right away.