Consolidate user-agent strings (#17) #39

Merged
Claude merged 1 commits from fix/user-agent-consistency into main 2026-02-15 16:25:03 +00:00
Collaborator

Summary

  • Define DefaultUserAgent constant (Firefox/147.0) in playwright.go
  • Replace all three inline UA strings with the constant
  • Previously: two at Firefox/142.0, one outdated at Firefox/133.0

Test plan

  • go build ./... passes
  • go test ./... passes
  • go vet ./... passes

Closes #17
Parent: #31 (Phase 3, PR 8)

🤖 Generated with Claude Code

## Summary - Define `DefaultUserAgent` constant (Firefox/147.0) in `playwright.go` - Replace all three inline UA strings with the constant - Previously: two at Firefox/142.0, one outdated at Firefox/133.0 ## Test plan - [x] `go build ./...` passes - [x] `go test ./...` passes - [x] `go vet ./...` passes Closes #17 **Parent:** #31 (Phase 3, PR 8) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-02-15 16:24:58 +00:00
fix: consolidate user-agent strings into DefaultUserAgent constant
All checks were successful
CI / build (pull_request) Successful in 44s
CI / test (pull_request) Successful in 46s
CI / vet (pull_request) Successful in 1m28s
097b2e12c7
Define DefaultUserAgent (Firefox/147.0) in playwright.go and reference
it from NewBrowser, NewInteractiveBrowser, and CLI flags. Previously
three different UA strings existed (two at 142.0, one outdated at 133.0).

Closes #17

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude merged commit 384566e016 into main 2026-02-15 16:25:03 +00:00
Claude deleted branch fix/user-agent-consistency 2026-02-15 16:25:03 +00:00
Sign in to join this conversation.