lighthouse 9.5.0-dev.20230104 → 9.5.0-dev.20230106

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.
@@ -110,6 +110,7 @@ const defaultSettings = {
110
110
  disableStorageReset: false,
111
111
  debugNavigation: false,
112
112
  channel: 'node',
113
+ usePassiveGathering: false,
113
114
  skipAboutBlank: false,
114
115
  blankPage: 'about:blank',
115
116
 
package/core/user-flow.js CHANGED
@@ -73,8 +73,13 @@ class UserFlow {
73
73
  */
74
74
  _getNextFlags(flags) {
75
75
  const clonedFlowFlags = this._options?.flags && deepClone(this._options?.flags);
76
- if (!flags) return clonedFlowFlags;
77
- return mergeConfigFragment(clonedFlowFlags || {}, flags, true);
76
+ const mergedFlags = mergeConfigFragment(clonedFlowFlags || {}, flags || {}, true);
77
+
78
+ if (mergedFlags.usePassiveGathering === undefined) {
79
+ mergedFlags.usePassiveGathering = true;
80
+ }
81
+
82
+ return mergedFlags;
78
83
  }
79
84
 
80
85
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "9.5.0-dev.20230104",
4
+ "version": "9.5.0-dev.20230106",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -73,6 +73,8 @@ export type ScreenEmulationSettings = {
73
73
  debugNavigation?: boolean;
74
74
  /** If set to true, will skip the initial navigation to about:blank. This option is ignored when using the legacy navigation runner. */
75
75
  skipAboutBlank?: boolean;
76
+ /** If set to true, gatherers should avoid any behavior that may be destructive to the page state. (e.g. extra navigations, resizing the viewport) */
77
+ usePassiveGathering?: boolean;
76
78
 
77
79
  /** How Lighthouse should interpret this run in regards to scoring performance metrics and skipping mobile-only tests in desktop. Must be set even if throttling/emulation is being applied outside of Lighthouse. */
78
80
  formFactor?: 'mobile'|'desktop';