Skip to content

Commit

Permalink
chore: update WebKit version to 14.1 (#4515)
Browse files Browse the repository at this point in the history
Safari Technology Preview now reports WebKit 14.1
  • Loading branch information
aslushnikov authored Nov 24, 2020
1 parent 17bec4f commit f916c98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/
| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |

Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.
Expand Down
4 changes: 2 additions & 2 deletions src/server/webkit/wkBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import { Protocol } from './protocol';
import { kPageProxyMessageReceived, PageProxyMessageReceivedPayload, WKConnection, WKSession } from './wkConnection';
import { WKPage } from './wkPage';

const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15';
const BROWSER_VERSION = '14.0';
const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Safari/605.1.15';
const BROWSER_VERSION = '14.1';

export class WKBrowser extends Browser {
private readonly _connection: WKConnection;
Expand Down
2 changes: 1 addition & 1 deletion utils/print_versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ for (const browserType of [pw.chromium, pw.firefox]) {
const version = child_process.execSync(executablePath + ' --version').toString().trim();
console.log('- ' + version);
}
console.log('- WebKit 14.0');
console.log('- WebKit 14.1');

0 comments on commit f916c98

Please sign in to comment.