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.
- package/core/config/constants.js +1 -0
- package/core/user-flow.js +7 -2
- package/package.json +1 -1
- package/types/lhr/settings.d.ts +2 -0
package/core/config/constants.js
CHANGED
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
|
-
|
|
77
|
-
|
|
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
package/types/lhr/settings.d.ts
CHANGED
|
@@ -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';
|