browsertime 24.5.2 → 24.6.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,5 +1,15 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 24.6.0 - 2025-05-05
4
+ ### Added
5
+ * Updated the Docker container to use Chrome 136.0, Firefox 138 and Edge 135.0 [#2277](https://github.com/sitespeedio/browsertime/pull/2277).
6
+ ### Fixed
7
+ * PreURL and pageCompleteCheckNetworkIdle didn't work together as reported in [sitespeed.io #4509](https://github.com/sitespeedio/sitespeed.io/issues/4509). Fixed in [#2278](https://github.com/sitespeedio/browsertime/pull/2278).
8
+
9
+ ## 24.5.3 - 2025-04-30
10
+ ### Fixed
11
+ * Fix for running privileged script in Firefox 138 [#2274](https://github.com/sitespeedio/browsertime/pull/2274).
12
+
3
13
  ## 24.5.2 - 2025-03-20
4
14
  ### Fixed
5
15
  * Bugfix for the missing FCP delta with TTFB [#2273](https://github.com/sitespeedio/browsertime/pull/2273).
@@ -155,7 +155,7 @@ export class Iteration {
155
155
  }
156
156
 
157
157
  if (options.preURL) {
158
- await preURL(browser, options);
158
+ await preURL(browser, engineDelegate, this.pageCompleteCheck, options);
159
159
  }
160
160
 
161
161
  try {
@@ -43,6 +43,8 @@ export async function configureBuilder(builder, baseDir, options) {
43
43
  }
44
44
  }
45
45
 
46
+ serviceBuilder.addArguments('--allow-system-access');
47
+
46
48
  builder.setFirefoxService(serviceBuilder);
47
49
 
48
50
  const ffOptions = new Options();
@@ -2,9 +2,14 @@ import { getLogger } from '@sitespeed.io/log';
2
2
  const log = getLogger('browsertime');
3
3
  const delay = ms => new Promise(res => setTimeout(res, ms));
4
4
 
5
- export async function preURL(browser, options) {
5
+ export async function preURL(
6
+ browser,
7
+ engineDelegate,
8
+ pageCompleteCheck,
9
+ options
10
+ ) {
6
11
  log.info('Accessing preURL %s', options.preURL);
7
- await browser.loadAndWait(options.preURL);
12
+ await browser.loadAndWait(options.preURL, pageCompleteCheck, engineDelegate);
8
13
  if (!options.preURLDisableWhiteBackground) {
9
14
  await browser.runScript(
10
15
  'document.body.innerHTML = ""; document.body.style.backgroundColor = "white";',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "browsertime",
3
3
  "description": "Get performance metrics from your web page using Browsertime.",
4
- "version": "24.5.2",
4
+ "version": "24.6.0",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "types": "./types/scripting.d.ts",