@eyeo/get-browser-binary 0.23.0 → 0.23.2
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/RELEASE_NOTES.md +9 -0
- package/package.json +1 -1
- package/src/chromium.js +0 -2
- package/src/edge.js +15 -4
- package/test/browsers.js +4 -0
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Unreleased
|
|
2
2
|
|
|
3
|
+
# 0.23.2
|
|
4
|
+
|
|
5
|
+
- Limit Edge downloads to those seen on the linux fileserver, to solve an issue
|
|
6
|
+
where the binaries of the latest version were removed. (!151)
|
|
7
|
+
|
|
8
|
+
# 0.23.1
|
|
9
|
+
|
|
10
|
+
- Re-enables local network access checks on Chromium v.139 (!149)
|
|
11
|
+
|
|
3
12
|
# 0.23.0
|
|
4
13
|
|
|
5
14
|
- Adds beta and dev channels to Edge on Windows and MacOS (#29)
|
package/package.json
CHANGED
package/src/chromium.js
CHANGED
|
@@ -248,8 +248,6 @@ export class Chromium extends Browser {
|
|
|
248
248
|
await checkExtensionPaths(extensionPaths);
|
|
249
249
|
options.addArguments(`load-extension=${extensionPaths.join(",")}`);
|
|
250
250
|
}
|
|
251
|
-
if (majorVersion >= 139)
|
|
252
|
-
options.addArguments("--disable-features=LocalNetworkAccessChecks");
|
|
253
251
|
if (headless) {
|
|
254
252
|
// https://www.selenium.dev/blog/2023/headless-is-going-away/
|
|
255
253
|
if (majorVersion >= 109)
|
package/src/edge.js
CHANGED
|
@@ -156,9 +156,14 @@ export class Edge extends Browser {
|
|
|
156
156
|
|
|
157
157
|
let {versionNumber, channel} = await Edge.#getVersionForChannel(version);
|
|
158
158
|
let binary = Edge.#getBinaryPath(channel);
|
|
159
|
+
|
|
160
|
+
// Patch versions differ between Debian repo and Enterprise API.
|
|
161
|
+
// We treat same-major versions as installed to avoid re-downloads.
|
|
162
|
+
// Applies to both channel builds and numeric Linux versions.
|
|
159
163
|
try {
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
const installedVersion = await Edge.getInstalledVersion(binary);
|
|
165
|
+
if (getMajorVersion(installedVersion) == getMajorVersion(versionNumber))
|
|
166
|
+
return {binary, versionNumber: installedVersion};
|
|
162
167
|
}
|
|
163
168
|
catch (e) {}
|
|
164
169
|
|
|
@@ -183,8 +188,14 @@ export class Edge extends Browser {
|
|
|
183
188
|
if (product.Product != downloadChannels[version])
|
|
184
189
|
continue;
|
|
185
190
|
|
|
186
|
-
|
|
187
|
-
|
|
191
|
+
// Ideally this would only check platform and architecture, not
|
|
192
|
+
// version. However, we've run into a case where Microsoft has removed a
|
|
193
|
+
// latest stable version of Edge from the download servers without
|
|
194
|
+
// updating this index, so it helps to have some way of checking if a
|
|
195
|
+
// version is probably available.
|
|
196
|
+
let release = product.Releases.find(r => r.Platform == plat &&
|
|
197
|
+
r.Architecture == arch &&
|
|
198
|
+
r.ProductVersion == versionNumber);
|
|
188
199
|
if (!release)
|
|
189
200
|
continue;
|
|
190
201
|
|
package/test/browsers.js
CHANGED
|
@@ -333,6 +333,10 @@ for (let browser of Object.keys(BROWSERS)) {
|
|
|
333
333
|
if (browser == "firefox" && version == "68.0")
|
|
334
334
|
this.skip();
|
|
335
335
|
|
|
336
|
+
// Skipping flaky test until solution is found, see issue #89
|
|
337
|
+
if (process.platform === "win32")
|
|
338
|
+
this.skip();
|
|
339
|
+
|
|
336
340
|
let {extensionPaths, manifest} = getExtension(browser, version);
|
|
337
341
|
driver = await BROWSERS[browser].getDriver(
|
|
338
342
|
version, {headless: false, extensionPaths, incognito: true});
|