browsertime 26.1.0 → 26.2.0

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/CHANGELOG.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 26.2.0 - 2025-12-18
4
+ ### Added
5
+ * Updated Chromedriver and Edgedriver to 143 [#2354](https://github.com/sitespeedio/browsertime/pull/2354) and[#2355](https://github.com/sitespeedio/browsertime/pull/2355).
6
+ * Updated webdriver to 4.39.0 [#2356](https://github.com/sitespeedio/browsertime/pull/2356).
7
+
8
+ ### Fixed
9
+ * Try to tune the XVFB handling to make it safer that xvfb is always stopped [#2353](https://github.com/sitespeedio/browsertime/pull/2353).
10
+
3
11
  ## 26.1.0- 2025-12-11
4
12
  ### Added
5
13
  * Firefox 146 in the Docker container [#2351](https://github.com/sitespeedio/browsertime/pull/2351).
6
- * Chrone 143 in the Docker container [#2350](https://github.com/sitespeedio/browsertime/pull/2350).
14
+ * Chrome 143 in the Docker container [#2350](https://github.com/sitespeedio/browsertime/pull/2350).
7
15
 
8
16
  ### Fixed
9
17
  * Make sure the user in the Docker container has the correct user rights [#2349](https://github.com/sitespeedio/browsertime/pull/2349).
@@ -42,7 +42,8 @@ export async function startXvfb({ size, options }) {
42
42
  });
43
43
 
44
44
  const xvfbProcess = execa(command, args, {
45
- stdio: silent ? 'ignore' : 'inherit'
45
+ stdio: silent ? 'ignore' : 'inherit',
46
+ forceKillAfterDelay: 1000
46
47
  });
47
48
 
48
49
  xvfbProcess.catch(error => {
@@ -68,21 +69,10 @@ export async function stopXvfb(xvfbSession) {
68
69
  }
69
70
 
70
71
  try {
71
- xvfbSession.process.kill('SIGTERM');
72
+ xvfbSession.process.kill();
72
73
  } catch {
73
74
  // Just swallow
74
75
  }
75
-
76
- const timeout = 1000;
77
- const start = Date.now();
78
- while (Date.now() - start < timeout) {
79
- try {
80
- process.kill(xvfbSession.process.pid, 0);
81
- await new Promise(resolve => setTimeout(resolve, 100));
82
- } catch {
83
- return;
84
- }
85
- }
86
76
  }
87
77
 
88
78
  export class XVFB {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "browsertime",
3
3
  "description": "Get performance metrics from your web page using Browsertime.",
4
- "version": "26.1.0",
4
+ "version": "26.2.0",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "types": "./types/scripting.d.ts",
8
8
  "dependencies": {
9
9
  "@devicefarmer/adbkit": "3.3.8",
10
- "@sitespeed.io/chromedriver": "142.0.7444-59",
11
- "@sitespeed.io/edgedriver": "141.0.3537-71",
10
+ "@sitespeed.io/chromedriver": "143.0.7499",
11
+ "@sitespeed.io/edgedriver": "143.0.3650",
12
12
  "@sitespeed.io/geckodriver": "0.36.0",
13
13
  "@sitespeed.io/log": "1.0.0",
14
14
  "@sitespeed.io/throttle": "5.0.1",
@@ -19,7 +19,7 @@
19
19
  "fast-stats": "0.0.7",
20
20
  "ff-test-bidi-har-export": "0.0.18",
21
21
  "lodash.merge": "4.6.2",
22
- "selenium-webdriver": "4.38.0",
22
+ "selenium-webdriver": "4.39.0",
23
23
  "yargs": "18.0.0"
24
24
  },
25
25
  "optionalDependencies": {
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../lib/support/filters.js"],"names":[],"mappings":"AAKA;;GAEG;AACH,oDACS,aAAQ,aAChB;AACD,2DAGC;AACD,iEAGC"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../lib/support/filters.js"],"names":[],"mappings":"AAKA;;GAEG;AACH,8EAEC;AACD,2DAGC;AACD,iEAGC"}