Skip to content

fix: resolve timezoneId in standalone builders so --fingerprint-timezone is not dropped#401

Open
mvanhorn wants to merge 1 commit into
CloakHQ:mainfrom
mvanhorn:fix/resolve-timezoneid-standalone-builders
Open

fix: resolve timezoneId in standalone builders so --fingerprint-timezone is not dropped#401
mvanhorn wants to merge 1 commit into
CloakHQ:mainfrom
mvanhorn:fix/resolve-timezoneid-standalone-builders

Conversation

@mvanhorn

Copy link
Copy Markdown

Follow-up to #265 (closed in favor of #262). You flagged that standalone callers passing timezoneId instead of timezone miss --fingerprint-timezone. The code has since been refactored, so I traced the gap to where it actually lives now:

  • buildLaunchOptions() (Playwright) is exported and used standalone but didn't call resolveTimezone, so buildLaunchOptions({ timezoneId }) silently dropped the flag.
  • The puppeteer adapter's resolveArgs() — shared by launch/launchContext/launchPersistentContext — never resolved timezoneId at all, so the entire puppeteer surface dropped it (broader than the Playwright side, where the launch wrappers already resolve it).

resolveTimezone() added at the top of both. Tests cover timezoneId on the Playwright standalone builder and the puppeteer launch path. Full suite green locally (422 passed).

…one is not dropped

Follow-up to CloakHQ#262/CloakHQ#265. buildArgs only reads `options.timezone` to emit
--fingerprint-timezone. The launch* wrappers on the Playwright side resolve
`timezoneId` -> `timezone` first, but two paths did not:

- playwright buildLaunchOptions() is exported and used standalone, yet did
  not call resolveTimezone, so buildLaunchOptions({ timezoneId }) silently
  dropped the flag.
- the puppeteer adapter's resolveArgs() (shared by launch / launchContext /
  launchPersistentContext) never resolved timezoneId at all, so the entire
  puppeteer surface dropped it.

Add resolveTimezone() at the top of both. Tests cover timezoneId on the
playwright standalone builder and the puppeteer launch path.
@mvanhorn mvanhorn force-pushed the fix/resolve-timezoneid-standalone-builders branch from 30f260a to 8ff63ef Compare July 9, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant