lighthouse 11.6.0-dev.20240305 → 11.6.0-dev.20240306
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.
|
@@ -79,7 +79,8 @@ async function runA11yChecks() {
|
|
|
79
79
|
'tabindex': {enabled: true},
|
|
80
80
|
'table-duplicate-name': {enabled: true},
|
|
81
81
|
'table-fake-caption': {enabled: true},
|
|
82
|
-
|
|
82
|
+
// TODO: https://github.com/GoogleChrome/lighthouse/issues/15824
|
|
83
|
+
// 'target-size': {enabled: true},
|
|
83
84
|
'td-has-header': {enabled: true},
|
|
84
85
|
},
|
|
85
86
|
});
|
package/core/gather/session.js
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import EventEmitter from 'events';
|
|
8
8
|
|
|
9
|
+
import log from 'lighthouse-logger';
|
|
10
|
+
|
|
9
11
|
import {LighthouseError} from '../lib/lh-error.js';
|
|
10
12
|
|
|
11
13
|
// Controls how long to wait for a response after sending a DevTools protocol command.
|
|
@@ -107,6 +109,9 @@ class ProtocolSession extends CrdpEventEmitter {
|
|
|
107
109
|
const resultPromise = this._cdpSession.send(method, ...params, {
|
|
108
110
|
// Add 50ms to the Puppeteer timeout to ensure the Lighthouse timeout finishes first.
|
|
109
111
|
timeout: timeoutMs + PPTR_BUFFER,
|
|
112
|
+
}).catch((error) => {
|
|
113
|
+
log.formatProtocol('method <= browser ERR', {method}, 'error');
|
|
114
|
+
throw LighthouseError.fromProtocolMessage(method, error);
|
|
110
115
|
});
|
|
111
116
|
const resultWithTimeoutPromise = Promise.race([resultPromise, timeoutPromise]);
|
|
112
117
|
|
package/core/lib/emulation.js
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {lighthouseVersion} from '../../shared/root.js';
|
|
8
|
-
|
|
9
7
|
const NO_THROTTLING_METRICS = {
|
|
10
8
|
latency: 0,
|
|
11
9
|
downloadThroughput: 0,
|
|
@@ -29,7 +27,6 @@ function parseUseragentIntoMetadata(userAgent, formFactor) {
|
|
|
29
27
|
const brands = [
|
|
30
28
|
{brand: 'Chromium', version},
|
|
31
29
|
{brand: 'Google Chrome', version},
|
|
32
|
-
{brand: 'Lighthouse', version: lighthouseVersion},
|
|
33
30
|
];
|
|
34
31
|
|
|
35
32
|
const motoGPowerDetails = {
|
package/package.json
CHANGED