playwright-core 1.57.0-alpha-2025-10-19 → 1.57.0-alpha-2025-10-21

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.
package/browsers.json CHANGED
@@ -15,31 +15,31 @@
15
15
  },
16
16
  {
17
17
  "name": "chromium-tip-of-tree",
18
- "revision": "1371",
18
+ "revision": "1379",
19
19
  "installByDefault": false,
20
- "browserVersion": "142.0.7430.0"
20
+ "browserVersion": "143.0.7476.0"
21
21
  },
22
22
  {
23
23
  "name": "chromium-tip-of-tree-headless-shell",
24
- "revision": "1371",
24
+ "revision": "1379",
25
25
  "installByDefault": false,
26
- "browserVersion": "142.0.7430.0"
26
+ "browserVersion": "143.0.7476.0"
27
27
  },
28
28
  {
29
29
  "name": "firefox",
30
- "revision": "1495",
30
+ "revision": "1496",
31
31
  "installByDefault": true,
32
32
  "browserVersion": "142.0.1"
33
33
  },
34
34
  {
35
35
  "name": "firefox-beta",
36
- "revision": "1490",
36
+ "revision": "1491",
37
37
  "installByDefault": false,
38
38
  "browserVersion": "143.0b10"
39
39
  },
40
40
  {
41
41
  "name": "webkit",
42
- "revision": "2221",
42
+ "revision": "2222",
43
43
  "installByDefault": true,
44
44
  "revisionOverrides": {
45
45
  "debian11-x64": "2105",
@@ -77,34 +77,70 @@ if (process.env.PW_TEST_CDN_THAT_SHOULD_WORK) {
77
77
  }
78
78
  const EXECUTABLE_PATHS = {
79
79
  "chromium": {
80
- "linux": ["chrome-linux", "chrome"],
81
- "mac": ["chrome-mac", "Chromium.app", "Contents", "MacOS", "Chromium"],
82
- "win": ["chrome-win", "chrome.exe"]
80
+ "<unknown>": void 0,
81
+ "linux-x64": ["chrome-linux", "chrome"],
82
+ "linux-arm64": ["chrome-linux", "chrome"],
83
+ "mac-x64": ["chrome-mac", "Chromium.app", "Contents", "MacOS", "Chromium"],
84
+ "mac-arm64": ["chrome-mac", "Chromium.app", "Contents", "MacOS", "Chromium"],
85
+ "win-x64": ["chrome-win", "chrome.exe"]
83
86
  },
84
87
  "chromium-headless-shell": {
85
- "linux": ["chrome-linux", "headless_shell"],
86
- "mac": ["chrome-mac", "headless_shell"],
87
- "win": ["chrome-win", "headless_shell.exe"]
88
+ "<unknown>": void 0,
89
+ "linux-x64": ["chrome-linux", "headless_shell"],
90
+ "linux-arm64": ["chrome-linux", "headless_shell"],
91
+ "mac-x64": ["chrome-mac", "headless_shell"],
92
+ "mac-arm64": ["chrome-mac", "headless_shell"],
93
+ "win-x64": ["chrome-win", "headless_shell.exe"]
94
+ },
95
+ "chromium-tip-of-tree": {
96
+ "<unknown>": void 0,
97
+ "linux-x64": ["chrome-linux64", "chrome"],
98
+ "linux-arm64": ["chrome-linux", "chrome"],
99
+ // non-cft build
100
+ "mac-x64": ["chrome-mac-x64", "Google Chrome for Testing.app", "Contents", "MacOS", "Google Chrome for Testing"],
101
+ "mac-arm64": ["chrome-mac-arm64", "Google Chrome for Testing.app", "Contents", "MacOS", "Google Chrome for Testing"],
102
+ "win-x64": ["chrome-win64", "chrome.exe"]
103
+ },
104
+ "chromium-tip-of-tree-headless-shell": {
105
+ "<unknown>": void 0,
106
+ "linux-x64": ["chrome-headless-shell-linux64", "chrome-headless-shell"],
107
+ "linux-arm64": ["chrome-linux", "chrome"],
108
+ // non-cft build
109
+ "mac-x64": ["chrome-headless-shell-mac-x64", "chrome-headless-shell"],
110
+ "mac-arm64": ["chrome-headless-shell-mac-arm64", "chrome-headless-shell"],
111
+ "win-x64": ["chrome-headless-shell-win64", "chrome-headless-shell.exe"]
88
112
  },
89
113
  "firefox": {
90
- "linux": ["firefox", "firefox"],
91
- "mac": ["firefox", "Nightly.app", "Contents", "MacOS", "firefox"],
92
- "win": ["firefox", "firefox.exe"]
114
+ "<unknown>": void 0,
115
+ "linux-x64": ["firefox", "firefox"],
116
+ "linux-arm64": ["firefox", "firefox"],
117
+ "mac-x64": ["firefox", "Nightly.app", "Contents", "MacOS", "firefox"],
118
+ "mac-arm64": ["firefox", "Nightly.app", "Contents", "MacOS", "firefox"],
119
+ "win-x64": ["firefox", "firefox.exe"]
93
120
  },
94
121
  "webkit": {
95
- "linux": ["pw_run.sh"],
96
- "mac": ["pw_run.sh"],
97
- "win": ["Playwright.exe"]
122
+ "<unknown>": void 0,
123
+ "linux-x64": ["pw_run.sh"],
124
+ "linux-arm64": ["pw_run.sh"],
125
+ "mac-x64": ["pw_run.sh"],
126
+ "mac-arm64": ["pw_run.sh"],
127
+ "win-x64": ["Playwright.exe"]
98
128
  },
99
129
  "ffmpeg": {
100
- "linux": ["ffmpeg-linux"],
101
- "mac": ["ffmpeg-mac"],
102
- "win": ["ffmpeg-win64.exe"]
130
+ "<unknown>": void 0,
131
+ "linux-x64": ["ffmpeg-linux"],
132
+ "linux-arm64": ["ffmpeg-linux"],
133
+ "mac-x64": ["ffmpeg-mac"],
134
+ "mac-arm64": ["ffmpeg-mac"],
135
+ "win-x64": ["ffmpeg-win64.exe"]
103
136
  },
104
137
  "winldd": {
105
- "linux": void 0,
106
- "mac": void 0,
107
- "win": ["PrintDeps.exe"]
138
+ "<unknown>": void 0,
139
+ "linux-x64": void 0,
140
+ "linux-arm64": void 0,
141
+ "mac-x64": void 0,
142
+ "mac-arm64": void 0,
143
+ "win-x64": ["PrintDeps.exe"]
108
144
  }
109
145
  };
110
146
  const DOWNLOAD_PATHS = {
@@ -479,13 +515,7 @@ class Registry {
479
515
  constructor(browsersJSON) {
480
516
  const descriptors = readDescriptors(browsersJSON);
481
517
  const findExecutablePath = (dir, name) => {
482
- let tokens = void 0;
483
- if (process.platform === "linux")
484
- tokens = EXECUTABLE_PATHS[name]["linux"];
485
- else if (process.platform === "darwin")
486
- tokens = EXECUTABLE_PATHS[name]["mac"];
487
- else if (process.platform === "win32")
488
- tokens = EXECUTABLE_PATHS[name]["win"];
518
+ const tokens = EXECUTABLE_PATHS[name][import_hostPlatform.shortPlatform];
489
519
  return tokens ? import_path.default.join(dir, ...tokens) : void 0;
490
520
  };
491
521
  const executablePathOrDie = (name, e, installByDefault, sdkLanguage) => {
@@ -552,7 +582,7 @@ ${(0, import_ascii.wrapInASCIIBox)(prettyMessage, 1)}`);
552
582
  _isHermeticInstallation: true
553
583
  });
554
584
  const chromiumTipOfTreeHeadlessShell = descriptors.find((d) => d.name === "chromium-tip-of-tree-headless-shell");
555
- const chromiumTipOfTreeHeadlessShellExecutable = findExecutablePath(chromiumTipOfTreeHeadlessShell.dir, "chromium-headless-shell");
585
+ const chromiumTipOfTreeHeadlessShellExecutable = findExecutablePath(chromiumTipOfTreeHeadlessShell.dir, "chromium-tip-of-tree-headless-shell");
556
586
  this._executables.push({
557
587
  type: "channel",
558
588
  name: "chromium-tip-of-tree-headless-shell",
@@ -569,7 +599,7 @@ ${(0, import_ascii.wrapInASCIIBox)(prettyMessage, 1)}`);
569
599
  _isHermeticInstallation: true
570
600
  });
571
601
  const chromiumTipOfTree = descriptors.find((d) => d.name === "chromium-tip-of-tree");
572
- const chromiumTipOfTreeExecutable = findExecutablePath(chromiumTipOfTree.dir, "chromium");
602
+ const chromiumTipOfTreeExecutable = findExecutablePath(chromiumTipOfTree.dir, "chromium-tip-of-tree");
573
603
  this._executables.push({
574
604
  type: "tool",
575
605
  name: "chromium-tip-of-tree",
@@ -29,7 +29,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var hostPlatform_exports = {};
30
30
  __export(hostPlatform_exports, {
31
31
  hostPlatform: () => hostPlatform,
32
- isOfficiallySupportedPlatform: () => isOfficiallySupportedPlatform
32
+ isOfficiallySupportedPlatform: () => isOfficiallySupportedPlatform,
33
+ shortPlatform: () => shortPlatform
33
34
  });
34
35
  module.exports = __toCommonJS(hostPlatform_exports);
35
36
  var import_os = __toESM(require("os"));
@@ -104,8 +105,19 @@ function calculatePlatform() {
104
105
  return { hostPlatform: "<unknown>", isOfficiallySupportedPlatform: false };
105
106
  }
106
107
  const { hostPlatform, isOfficiallySupportedPlatform } = calculatePlatform();
108
+ function toShortPlatform(hostPlatform2) {
109
+ if (hostPlatform2 === "<unknown>")
110
+ return "<unknown>";
111
+ if (hostPlatform2 === "win64")
112
+ return "win-x64";
113
+ if (hostPlatform2.startsWith("mac"))
114
+ return hostPlatform2.endsWith("arm64") ? "mac-arm64" : "mac-x64";
115
+ return hostPlatform2.endsWith("arm64") ? "linux-arm64" : "linux-x64";
116
+ }
117
+ const shortPlatform = toShortPlatform(hostPlatform);
107
118
  // Annotate the CommonJS export names for ESM import in node:
108
119
  0 && (module.exports = {
109
120
  hostPlatform,
110
- isOfficiallySupportedPlatform
121
+ isOfficiallySupportedPlatform,
122
+ shortPlatform
111
123
  });
@@ -25,6 +25,9 @@ __export(protocolFormatter_exports, {
25
25
  module.exports = __toCommonJS(protocolFormatter_exports);
26
26
  var import_protocolMetainfo = require("./protocolMetainfo");
27
27
  function formatProtocolParam(params, alternatives) {
28
+ return _formatProtocolParam(params, alternatives)?.replaceAll("\n", "\\n");
29
+ }
30
+ function _formatProtocolParam(params, alternatives) {
28
31
  if (!params)
29
32
  return void 0;
30
33
  for (const name of alternatives.split("|")) {