chrome-devtools-frontend 1.0.965113 → 1.0.965611
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/front_end/core/common/ResolverBase.ts +2 -2
- package/front_end/core/i18n/locales/af.json +55 -22
- package/front_end/core/i18n/locales/am.json +55 -22
- package/front_end/core/i18n/locales/ar.json +55 -22
- package/front_end/core/i18n/locales/as.json +55 -22
- package/front_end/core/i18n/locales/az.json +55 -22
- package/front_end/core/i18n/locales/be.json +55 -22
- package/front_end/core/i18n/locales/bg.json +55 -22
- package/front_end/core/i18n/locales/bn.json +33 -0
- package/front_end/core/i18n/locales/bs.json +53 -20
- package/front_end/core/i18n/locales/ca.json +55 -22
- package/front_end/core/i18n/locales/cs.json +54 -21
- package/front_end/core/i18n/locales/cy.json +55 -22
- package/front_end/core/i18n/locales/da.json +54 -21
- package/front_end/core/i18n/locales/de.json +55 -22
- package/front_end/core/i18n/locales/el.json +55 -22
- package/front_end/core/i18n/locales/en-GB.json +33 -0
- package/front_end/core/i18n/locales/es-419.json +55 -22
- package/front_end/core/i18n/locales/es.json +55 -22
- package/front_end/core/i18n/locales/et.json +55 -22
- package/front_end/core/i18n/locales/eu.json +33 -0
- package/front_end/core/i18n/locales/fa.json +56 -23
- package/front_end/core/i18n/locales/fi.json +55 -22
- package/front_end/core/i18n/locales/fil.json +55 -22
- package/front_end/core/i18n/locales/fr-CA.json +55 -22
- package/front_end/core/i18n/locales/fr.json +55 -22
- package/front_end/core/i18n/locales/gl.json +55 -22
- package/front_end/core/i18n/locales/gu.json +33 -0
- package/front_end/core/i18n/locales/he.json +55 -22
- package/front_end/core/i18n/locales/hi.json +33 -0
- package/front_end/core/i18n/locales/hr.json +33 -0
- package/front_end/core/i18n/locales/hu.json +55 -22
- package/front_end/core/i18n/locales/hy.json +55 -22
- package/front_end/core/i18n/locales/id.json +55 -22
- package/front_end/core/i18n/locales/is.json +55 -22
- package/front_end/core/i18n/locales/it.json +55 -22
- package/front_end/core/i18n/locales/ja.json +63 -30
- package/front_end/core/i18n/locales/ka.json +55 -22
- package/front_end/core/i18n/locales/kk.json +55 -22
- package/front_end/core/i18n/locales/km.json +55 -22
- package/front_end/core/i18n/locales/kn.json +55 -22
- package/front_end/core/i18n/locales/ko.json +55 -22
- package/front_end/core/i18n/locales/ky.json +55 -22
- package/front_end/core/i18n/locales/lo.json +55 -22
- package/front_end/core/i18n/locales/lt.json +55 -22
- package/front_end/core/i18n/locales/lv.json +55 -22
- package/front_end/core/i18n/locales/mk.json +55 -22
- package/front_end/core/i18n/locales/ml.json +33 -0
- package/front_end/core/i18n/locales/mn.json +33 -0
- package/front_end/core/i18n/locales/mr.json +54 -21
- package/front_end/core/i18n/locales/ms.json +55 -22
- package/front_end/core/i18n/locales/my.json +55 -22
- package/front_end/core/i18n/locales/ne.json +54 -21
- package/front_end/core/i18n/locales/nl.json +55 -22
- package/front_end/core/i18n/locales/no.json +55 -22
- package/front_end/core/i18n/locales/or.json +55 -22
- package/front_end/core/i18n/locales/pa.json +55 -22
- package/front_end/core/i18n/locales/pl.json +33 -0
- package/front_end/core/i18n/locales/pt-PT.json +55 -22
- package/front_end/core/i18n/locales/pt.json +55 -22
- package/front_end/core/i18n/locales/ro.json +33 -0
- package/front_end/core/i18n/locales/ru.json +55 -22
- package/front_end/core/i18n/locales/si.json +55 -22
- package/front_end/core/i18n/locales/sk.json +55 -22
- package/front_end/core/i18n/locales/sl.json +55 -22
- package/front_end/core/i18n/locales/sq.json +55 -22
- package/front_end/core/i18n/locales/sr-Latn.json +55 -22
- package/front_end/core/i18n/locales/sr.json +55 -22
- package/front_end/core/i18n/locales/sv.json +55 -22
- package/front_end/core/i18n/locales/sw.json +55 -22
- package/front_end/core/i18n/locales/ta.json +55 -22
- package/front_end/core/i18n/locales/te.json +42 -9
- package/front_end/core/i18n/locales/th.json +33 -0
- package/front_end/core/i18n/locales/tr.json +55 -22
- package/front_end/core/i18n/locales/uk.json +55 -22
- package/front_end/core/i18n/locales/ur.json +55 -22
- package/front_end/core/i18n/locales/uz.json +55 -22
- package/front_end/core/i18n/locales/vi.json +54 -21
- package/front_end/core/i18n/locales/zh-HK.json +55 -22
- package/front_end/core/i18n/locales/zh-TW.json +54 -21
- package/front_end/core/i18n/locales/zh.json +55 -22
- package/front_end/core/i18n/locales/zu.json +55 -22
- package/front_end/core/sdk/CSSProperty.ts +8 -8
- package/front_end/core/sdk/RemoteObject.ts +1 -1
- package/front_end/core/sdk/Resource.ts +5 -2
- package/front_end/core/sdk/RuntimeModel.ts +10 -0
- package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +9 -3
- package/front_end/legacy_test_runner/sources_test_runner/DebuggerTestRunner.js +5 -5
- package/front_end/models/bindings/ContentProviderBasedProject.ts +2 -3
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/workspace/WorkspaceImpl.ts +62 -37
- package/front_end/panels/console/ConsoleViewMessage.ts +33 -6
- package/front_end/panels/console/ErrorStackParser.ts +34 -0
- package/front_end/panels/emulation/DeviceModeView.ts +6 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +1 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +954 -885
- package/front_end/third_party/lighthouse/locales/ar-XB.json +40 -4
- package/front_end/third_party/lighthouse/locales/ar.json +59 -23
- package/front_end/third_party/lighthouse/locales/bg.json +40 -4
- package/front_end/third_party/lighthouse/locales/ca.json +45 -9
- package/front_end/third_party/lighthouse/locales/cs.json +39 -3
- package/front_end/third_party/lighthouse/locales/da.json +43 -7
- package/front_end/third_party/lighthouse/locales/de.json +42 -6
- package/front_end/third_party/lighthouse/locales/el.json +59 -23
- package/front_end/third_party/lighthouse/locales/en-GB.json +43 -7
- package/front_end/third_party/lighthouse/locales/en-US.json +48 -6
- package/front_end/third_party/lighthouse/locales/en-XA.json +40 -4
- package/front_end/third_party/lighthouse/locales/en-XL.json +48 -6
- package/front_end/third_party/lighthouse/locales/es-419.json +39 -3
- package/front_end/third_party/lighthouse/locales/es.json +46 -10
- package/front_end/third_party/lighthouse/locales/fi.json +57 -21
- package/front_end/third_party/lighthouse/locales/fil.json +40 -4
- package/front_end/third_party/lighthouse/locales/fr.json +45 -9
- package/front_end/third_party/lighthouse/locales/he.json +41 -5
- package/front_end/third_party/lighthouse/locales/hi.json +59 -23
- package/front_end/third_party/lighthouse/locales/hr.json +57 -21
- package/front_end/third_party/lighthouse/locales/hu.json +39 -3
- package/front_end/third_party/lighthouse/locales/id.json +40 -4
- package/front_end/third_party/lighthouse/locales/it.json +40 -4
- package/front_end/third_party/lighthouse/locales/ja.json +39 -3
- package/front_end/third_party/lighthouse/locales/ko.json +40 -4
- package/front_end/third_party/lighthouse/locales/lt.json +40 -4
- package/front_end/third_party/lighthouse/locales/lv.json +56 -20
- package/front_end/third_party/lighthouse/locales/nl.json +40 -4
- package/front_end/third_party/lighthouse/locales/no.json +56 -20
- package/front_end/third_party/lighthouse/locales/pl.json +56 -20
- package/front_end/third_party/lighthouse/locales/pt-PT.json +57 -21
- package/front_end/third_party/lighthouse/locales/pt.json +41 -5
- package/front_end/third_party/lighthouse/locales/ro.json +39 -3
- package/front_end/third_party/lighthouse/locales/ru.json +40 -4
- package/front_end/third_party/lighthouse/locales/sk.json +39 -3
- package/front_end/third_party/lighthouse/locales/sl.json +39 -3
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +40 -4
- package/front_end/third_party/lighthouse/locales/sr.json +40 -4
- package/front_end/third_party/lighthouse/locales/sv.json +39 -3
- package/front_end/third_party/lighthouse/locales/ta.json +47 -11
- package/front_end/third_party/lighthouse/locales/te.json +61 -25
- package/front_end/third_party/lighthouse/locales/th.json +39 -3
- package/front_end/third_party/lighthouse/locales/tr.json +40 -4
- package/front_end/third_party/lighthouse/locales/uk.json +40 -4
- package/front_end/third_party/lighthouse/locales/vi.json +63 -27
- package/front_end/third_party/lighthouse/locales/zh-HK.json +40 -4
- package/front_end/third_party/lighthouse/locales/zh-TW.json +45 -9
- package/front_end/third_party/lighthouse/locales/zh.json +41 -5
- package/front_end/third_party/lighthouse/report/bundle.d.ts +1 -0
- package/front_end/third_party/lighthouse/report/bundle.js +23 -11
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -1
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +2 -2
- package/package.json +1 -1
@@ -1398,7 +1398,7 @@ function createTopbarComponent(dom) {
|
|
1398
1398
|
el40.setAttribute('href', '#');
|
1399
1399
|
el40.setAttribute('data-i18n', 'dropdownCopyJSON');
|
1400
1400
|
el40.setAttribute('data-action', 'copy');
|
1401
|
-
const el41 = dom.createElement('a', 'lh-report-icon lh-report-icon--download');
|
1401
|
+
const el41 = dom.createElement('a', 'lh-report-icon lh-report-icon--download lh-hidden');
|
1402
1402
|
el41.setAttribute('role', 'menuitem');
|
1403
1403
|
el41.setAttribute('tabindex', '-1');
|
1404
1404
|
el41.setAttribute('href', '#');
|
@@ -1428,7 +1428,7 @@ function createTopbarComponent(dom) {
|
|
1428
1428
|
el45.setAttribute('href', '#');
|
1429
1429
|
el45.setAttribute('data-i18n', 'dropdownDarkTheme');
|
1430
1430
|
el45.setAttribute('data-action', 'toggle-dark');
|
1431
|
-
el37.append(' ', el38, ' ', el39, ' ', el40, ' ', el41, ' ', el42, ' ', el43, ' ', el44, ' ', el45, ' ');
|
1431
|
+
el37.append(' ', el38, ' ', el39, ' ', el40, ' ', ' ', el41, ' ', el42, ' ', el43, ' ', el44, ' ', el45, ' ');
|
1432
1432
|
el26.append(' ', el27, ' ', el33, ' ', el37, ' ');
|
1433
1433
|
el2.append(' ', ' ', el3, ' ', el25, ' ', el26, ' ');
|
1434
1434
|
el0.append(el2);
|
@@ -2260,7 +2260,7 @@ class CategoryRenderer {
|
|
2260
2260
|
* @return {boolean}
|
2261
2261
|
*/
|
2262
2262
|
_auditHasWarning(audit) {
|
2263
|
-
return Boolean(audit.result.warnings
|
2263
|
+
return Boolean(audit.result.warnings?.length);
|
2264
2264
|
}
|
2265
2265
|
|
2266
2266
|
/**
|
@@ -4176,8 +4176,8 @@ class PerformanceCategoryRenderer extends CategoryRenderer {
|
|
4176
4176
|
// Filmstrip
|
4177
4177
|
const timelineEl = this.dom.createChildOf(element, 'div', 'lh-filmstrip-container');
|
4178
4178
|
const thumbnailAudit = category.auditRefs.find(audit => audit.id === 'screenshot-thumbnails');
|
4179
|
-
const thumbnailResult = thumbnailAudit
|
4180
|
-
if (thumbnailResult
|
4179
|
+
const thumbnailResult = thumbnailAudit?.result;
|
4180
|
+
if (thumbnailResult?.details) {
|
4181
4181
|
timelineEl.id = thumbnailResult.id;
|
4182
4182
|
const filmstripEl = this.detailsRenderer.render(thumbnailResult.details);
|
4183
4183
|
filmstripEl && timelineEl.appendChild(filmstripEl);
|
@@ -4252,7 +4252,7 @@ class PerformanceCategoryRenderer extends CategoryRenderer {
|
|
4252
4252
|
const budgetTableEls = [];
|
4253
4253
|
['performance-budget', 'timing-budget'].forEach((id) => {
|
4254
4254
|
const audit = category.auditRefs.find(audit => audit.id === id);
|
4255
|
-
if (audit
|
4255
|
+
if (audit?.result.details) {
|
4256
4256
|
const table = this.detailsRenderer.render(audit.result.details);
|
4257
4257
|
if (table) {
|
4258
4258
|
table.id = id;
|
@@ -4298,7 +4298,7 @@ class PerformanceCategoryRenderer extends CategoryRenderer {
|
|
4298
4298
|
|
4299
4299
|
const labelEl = this.dom.createChildOf(metricFilterEl, 'label', 'lh-metricfilter__label');
|
4300
4300
|
labelEl.htmlFor = elemId;
|
4301
|
-
labelEl.title = metric.result
|
4301
|
+
labelEl.title = metric.result?.title;
|
4302
4302
|
labelEl.textContent = metric.acronym || metric.id;
|
4303
4303
|
|
4304
4304
|
if (metric.acronym === 'All') {
|
@@ -4773,7 +4773,7 @@ class ReportRenderer {
|
|
4773
4773
|
Util.reportJson = report;
|
4774
4774
|
|
4775
4775
|
const fullPageScreenshot =
|
4776
|
-
report.audits['full-page-screenshot']
|
4776
|
+
report.audits['full-page-screenshot']?.details &&
|
4777
4777
|
report.audits['full-page-screenshot'].details.type === 'full-page-screenshot' ?
|
4778
4778
|
report.audits['full-page-screenshot'].details : undefined;
|
4779
4779
|
const detailsRenderer = new DetailsRenderer(this._dom, {
|
@@ -5767,6 +5767,10 @@ class ReportUIFeatures {
|
|
5767
5767
|
});
|
5768
5768
|
}
|
5769
5769
|
|
5770
|
+
if (this._opts.getStandaloneReportHTML) {
|
5771
|
+
this._dom.find('a[data-action="save-html"]', this._dom.rootEl).classList.remove('lh-hidden');
|
5772
|
+
}
|
5773
|
+
|
5770
5774
|
// Fill in all i18n data.
|
5771
5775
|
for (const node of this._dom.findAll('[data-i18n]', this._dom.rootEl)) {
|
5772
5776
|
// These strings are guaranteed to (at least) have a default English string in Util.UIStrings,
|
@@ -5801,15 +5805,23 @@ class ReportUIFeatures {
|
|
5801
5805
|
return buttonEl;
|
5802
5806
|
}
|
5803
5807
|
|
5808
|
+
resetUIState() {
|
5809
|
+
if (this._topbar) {
|
5810
|
+
this._topbar.resetUIState();
|
5811
|
+
}
|
5812
|
+
}
|
5813
|
+
|
5804
5814
|
/**
|
5805
5815
|
* Returns the html that recreates this report.
|
5806
5816
|
* @return {string}
|
5807
5817
|
*/
|
5808
5818
|
getReportHtml() {
|
5809
|
-
if (this.
|
5810
|
-
|
5819
|
+
if (!this._opts.getStandaloneReportHTML) {
|
5820
|
+
throw new Error('`getStandaloneReportHTML` is not set');
|
5811
5821
|
}
|
5812
|
-
|
5822
|
+
|
5823
|
+
this.resetUIState();
|
5824
|
+
return this._opts.getStandaloneReportHTML();
|
5813
5825
|
}
|
5814
5826
|
|
5815
5827
|
/**
|