browsertime 14.11.0 → 14.12.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,12 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 14.12.0 - 2021-11-30
4
+ ### Fixed
5
+ * Adding error log message for Chrome/Edge when document request fails (faulty domain etc) [#1682](https://github.com/sitespeedio/browsertime/pull/1682).
6
+ * Added `'devtools.netmonitor.persistlog': true` preference for Firefox to fix the HAR issue introduced in Firefox 94 [#1684](https://github.com/sitespeedio/browsertime/pull/1684).
7
+
8
+ ### Added
9
+ * Updated to Firefox 94 in the Docker image.
3
10
  ## 14.11.0 - 2021-11-23
4
11
  ### Fixed
5
12
  * Use the viewport to determine if more cropping is needed in visual metrics. Thank you [Gregory Mierzwinski](https://github.com/gmierz) for PR [#1680](https://github.com/sitespeedio/browsertime/pull/1680).
@@ -161,6 +161,14 @@ class ChromeDevtoolsProtocol {
161
161
  return this.cdpClient.Network.clearBrowserCookies();
162
162
  }
163
163
 
164
+ async loadingFailed() {
165
+ return this.cdpClient.Network.loadingFailed(param => {
166
+ if (param.type === 'Document') {
167
+ log.error('Could not load document:' + param.errorText);
168
+ }
169
+ });
170
+ }
171
+
164
172
  async setRequestHeaders(requestHeaders) {
165
173
  // Our cli don't validate parameters
166
174
  // so -run will become -r etc
@@ -107,6 +107,8 @@ class Chromium {
107
107
 
108
108
  await this.cdpClient.setupLongTask();
109
109
 
110
+ await this.cdpClient.loadingFailed();
111
+
110
112
  // Make sure we clear the console log
111
113
  // Hopefully one time is enough?
112
114
  return runner.getLogs(Type.BROWSER);
@@ -179,5 +179,8 @@ module.exports = {
179
179
 
180
180
  // disable calls to detectportal.firefox.com
181
181
  'network.captive-portal-service.enabled': false,
182
- 'network.connectivity-service.enabled': false
182
+ 'network.connectivity-service.enabled': false,
183
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1740116#c15
184
+ // https://github.com/sitespeedio/browsertime/issues/1671
185
+ 'devtools.netmonitor.persistlog': true
183
186
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "description": "Browsertime",
3
- "version": "14.11.0",
3
+ "version": "14.12.0",
4
4
  "bin": "./bin/browsertime.js",
5
5
  "dependencies": {
6
6
  "@sitespeed.io/throttle": "3.0.0",