playwright-core 1.57.0-alpha-2025-10-29 → 1.57.0-alpha-2025-10-30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,5 @@
1
1
  $ErrorActionPreference = 'Stop'
2
2
 
3
- # WebKit WSL Installation Script
4
- # See webkit-wsl-transport-server.ts for the complete architecture diagram.
5
3
  # This script sets up a WSL distribution that will be used to run WebKit.
6
4
 
7
5
  $Distribution = "playwright"
@@ -25,9 +23,9 @@ if [ ! -f "/home/$Username/node/bin/node" ]; then
25
23
  mkdir -p /home/$Username/node
26
24
  curl -fsSL https://nodejs.org/dist/v22.17.0/node-v22.17.0-linux-x64.tar.xz -o /home/$Username/node/node-v22.17.0-linux-x64.tar.xz
27
25
  tar -xJf /home/$Username/node/node-v22.17.0-linux-x64.tar.xz -C /home/$Username/node --strip-components=1
26
+ echo 'export PATH=/home/$Username/node/bin:$PATH' >> /home/$Username/.bashrc
28
27
  fi
29
28
  /home/$Username/node/bin/node cli.js install-deps webkit
30
- cp lib/server/webkit/wsl/webkit-wsl-transport-client.js /home/$Username/
31
29
  sudo -u $Username PLAYWRIGHT_SKIP_BROWSER_GC=1 /home/$Username/node/bin/node cli.js install webkit
32
30
  "@ -replace "\r\n", "`n"
33
31
 
@@ -781,9 +781,8 @@ ${(0, import_ascii.wrapInASCIIBox)(prettyMessage, 1)}`);
781
781
  name: "webkit-wsl",
782
782
  browserName: "webkit",
783
783
  directory: webkit.dir,
784
- executablePath: () => process.execPath,
785
- executablePathOrDie: () => process.execPath,
786
- wslExecutablePath: `/home/pwuser/.cache/ms-playwright/webkit-${webkit.revision}/pw_run.sh`,
784
+ executablePath: () => webkitExecutable,
785
+ executablePathOrDie: (sdkLanguage) => executablePathOrDie("webkit", webkitExecutable, webkit.installByDefault, sdkLanguage),
787
786
  installType: "download-on-demand",
788
787
  _validateHostRequirements: (sdkLanguage) => Promise.resolve(),
789
788
  _isHermeticInstallation: true,
@@ -38,7 +38,6 @@ var import_ascii = require("../utils/ascii");
38
38
  var import_browserType = require("../browserType");
39
39
  var import_wkBrowser = require("../webkit/wkBrowser");
40
40
  var import_spawnAsync = require("../utils/spawnAsync");
41
- var import_registry = require("../registry");
42
41
  class WebKit extends import_browserType.BrowserType {
43
42
  constructor(parent) {
44
43
  super(parent, "webkit");
@@ -49,8 +48,7 @@ class WebKit extends import_browserType.BrowserType {
49
48
  amendEnvironment(env, userDataDir, isPersistent, options) {
50
49
  return {
51
50
  ...env,
52
- CURL_COOKIE_JAR_PATH: process.platform === "win32" && isPersistent ? import_path.default.join(userDataDir, "cookiejar.db") : void 0,
53
- WEBKIT_EXECUTABLE: options.channel === "webkit-wsl" ? import_registry.registry.findExecutable("webkit-wsl").wslExecutablePath : void 0
51
+ CURL_COOKIE_JAR_PATH: process.platform === "win32" && isPersistent ? import_path.default.join(userDataDir, "cookiejar.db") : void 0
54
52
  };
55
53
  }
56
54
  doRewriteStartupLog(error) {
@@ -71,13 +69,6 @@ class WebKit extends import_browserType.BrowserType {
71
69
  if (args.find((arg) => !arg.startsWith("-")))
72
70
  throw new Error("Arguments can not specify page to be opened");
73
71
  const webkitArguments = ["--inspector-pipe"];
74
- if (options.channel === "webkit-wsl") {
75
- if (options.executablePath)
76
- throw new Error('Cannot specify executablePath when using the "webkit-wsl" channel.');
77
- webkitArguments.unshift(
78
- import_path.default.join(__dirname, "wsl/webkit-wsl-transport-server.js")
79
- );
80
- }
81
72
  if (process.platform === "win32" && options.channel !== "webkit-wsl")
82
73
  webkitArguments.push("--disable-accelerated-compositing");
83
74
  if (headless)