browsertime 23.3.1 → 23.3.3

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,8 +1,18 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
- ## 23.3.0 - 2024-11-13
3
+ ## 23.3.3 - 2024-11-22
4
4
  ### Fixed
5
- * Disable security warning in Firefxo 132 [#2208](https://github.com/sitespeedio/browsertime/pull/2208) that fixes [#2207](https://github.com/sitespeedio/browsertime/issues/2207).
5
+ * Disable search suggestion requests for Firefox [#2215](https://github.com/sitespeedio/browsertime/pull/2215)
6
+ * Fix for including HTTP requests in the Firefox profile [#2214](https://github.com/sitespeedio/browsertime/pull/2214).
7
+ * Fix when running --enabkleProfileRun and get visual metrics. It used to generate an error log, this fixes that [#2213](https://github.com/sitespeedio/browsertime/pull/2213).
8
+
9
+ ## 23.3.2 - 2024-11-21
10
+ ### Fixed
11
+ * Disable some calls back to home from Firefox [#2212](https://github.com/sitespeedio/browsertime/pull/2212).
12
+
13
+ ## 23.3.1 - 2024-11-13
14
+ ### Fixed
15
+ * Disable security warning in Firefox 132 [#2208](https://github.com/sitespeedio/browsertime/pull/2208) that fixes [#2207](https://github.com/sitespeedio/browsertime/issues/2207).
6
16
 
7
17
  ## 23.3.0 - 2024-11-12
8
18
  ### Added
@@ -162,6 +162,7 @@ async function run(urls, options) {
162
162
  if (options.enableProfileRun) {
163
163
  if (options.browser === 'firefox') {
164
164
  options.firefox.geckoProfiler = true;
165
+ options.firefox.collectMozLog = true;
165
166
  } else if (options.browser === 'chrome') {
166
167
  options.chrome.timeline = true;
167
168
  options.cpu = true;
@@ -1,4 +1,5 @@
1
1
  export const defaultFirefoxPreferences = {
2
+ // https://searchfox.org/mozilla-central/source/testing/profiles/common/user.js
2
3
  // Common preferences file used by both unittest and perf harnesses.
3
4
  'app.update.checkInstallTime': false,
4
5
  'app.update.disabledForTesting': true,
@@ -179,5 +180,23 @@ export const defaultFirefoxPreferences = {
179
180
  'network.captive-portal-service.enabled': false,
180
181
  'network.connectivity-service.enabled': false,
181
182
  // https://bugzilla.mozilla.org/show_bug.cgi?id=1930110
182
- 'security.sandbox.warn_unprivileged_namespaces': false
183
+ 'security.sandbox.warn_unprivileged_namespaces': false,
184
+
185
+ // No need to delay wakelock releasing for testing
186
+ 'media.wakelock.audio.delay-releasing.ms': 0,
187
+ 'geo.provider.network.compare.url': '',
188
+ 'browser.region.network.url': '',
189
+ // Don't pull Top Sites content from the network
190
+ 'browser.topsites.contile.enabled': false,
191
+ // Don't pull weather data from the network
192
+ 'browser.newtabpage.activity-stream.discoverystream.region-weather-config':
193
+ '',
194
+ // Don't pull wallpaper content from the network
195
+ 'browser.newtabpage.activity-stream.newtabWallpapers.enabled': false,
196
+ 'browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled': false,
197
+ // Don't pull sponsored Top Sites content from the network
198
+ 'browser.newtabpage.activity-stream.showSponsoredTopSites': false,
199
+ // See https://bugzilla.mozilla.org/show_bug.cgi?id=1930110
200
+ // See https://github.com/sitespeedio/browsertime/issues/2211
201
+ 'browser.search.serpEventTelemetryCategorization.enabled': false
183
202
  };
@@ -325,7 +325,9 @@ export class Firefox {
325
325
  }
326
326
 
327
327
  if (this.firefoxConfig.geckoProfiler && this.options.visualMetrics) {
328
- const profileFilename = `geckoProfile-${index}.json.gz`;
328
+ const profileFilename = this.options.enableProfileRun
329
+ ? `geckoProfile-${index}-extra.json.gz`
330
+ : `geckoProfile-${index}.json.gz`;
329
331
  const profileSubdir = pathToFolder(result.url, this.options);
330
332
 
331
333
  try {
@@ -361,7 +363,12 @@ export class Firefox {
361
363
  geckoProfile.meta.visualMetrics = result.visualMetrics;
362
364
 
363
365
  await this.storageManager.writeJson(
364
- path.join(profileSubdir, `geckoProfile-${index}.json`),
366
+ path.join(
367
+ profileSubdir,
368
+ this.options.enableProfileRun
369
+ ? `geckoProfile-${index}-extra.json.gz`
370
+ : `geckoProfile-${index}.json`
371
+ ),
365
372
  geckoProfile,
366
373
  true
367
374
  );
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": "23.3.1",
4
+ "version": "23.3.3",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "types": "./types/scripting.d.ts",