diff --git a/packages/server/lib/browsers/chrome.ts b/packages/server/lib/browsers/chrome.ts index 7b72bf29d070..ae7c2a90e394 100644 --- a/packages/server/lib/browsers/chrome.ts +++ b/packages/server/lib/browsers/chrome.ts @@ -146,6 +146,12 @@ let browserCriClient: BrowserCriClient | undefined * @param userDir */ const _getChromePreferences = (userDir: string): Bluebird => { + if (process.env.IGNORE_CHROME_PREFERENCES) { + debug('ignoring chrome preferences...') + + return Bluebird.resolve(_.mapValues(CHROME_PREFERENCE_PATHS, () => ({}))) + } + debug('reading chrome preferences... %o', { userDir, CHROME_PREFERENCE_PATHS }) return Bluebird.props(_.mapValues(CHROME_PREFERENCE_PATHS, (prefPath) => {