908 B
908 B
Updating WebKit Safari Version
The Safari version string used in the WebKit user-agent is declared in one place:
packages/playwright-core/src/server/webkit/wkBrowser.ts — BROWSER_VERSION constant (line ~35).
const BROWSER_VERSION = '26.4';
const DEFAULT_USER_AGENT = `Mozilla/5.0 ... Version/${BROWSER_VERSION} Safari/605.1.15`;
Steps to update
-
Find the latest stable Safari version — search
site:developer.apple.com "Safari X.Y Release Notes"or check the Safari Release Notes index. The highest numbered entry that is not a Technology Preview is the current stable release. -
Update
BROWSER_VERSIONinwkBrowser.ts. -
Run lint to update any generated files that embed the version:
npm run flint