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.
Files changed (150) hide show
  1. package/front_end/core/common/ResolverBase.ts +2 -2
  2. package/front_end/core/i18n/locales/af.json +55 -22
  3. package/front_end/core/i18n/locales/am.json +55 -22
  4. package/front_end/core/i18n/locales/ar.json +55 -22
  5. package/front_end/core/i18n/locales/as.json +55 -22
  6. package/front_end/core/i18n/locales/az.json +55 -22
  7. package/front_end/core/i18n/locales/be.json +55 -22
  8. package/front_end/core/i18n/locales/bg.json +55 -22
  9. package/front_end/core/i18n/locales/bn.json +33 -0
  10. package/front_end/core/i18n/locales/bs.json +53 -20
  11. package/front_end/core/i18n/locales/ca.json +55 -22
  12. package/front_end/core/i18n/locales/cs.json +54 -21
  13. package/front_end/core/i18n/locales/cy.json +55 -22
  14. package/front_end/core/i18n/locales/da.json +54 -21
  15. package/front_end/core/i18n/locales/de.json +55 -22
  16. package/front_end/core/i18n/locales/el.json +55 -22
  17. package/front_end/core/i18n/locales/en-GB.json +33 -0
  18. package/front_end/core/i18n/locales/es-419.json +55 -22
  19. package/front_end/core/i18n/locales/es.json +55 -22
  20. package/front_end/core/i18n/locales/et.json +55 -22
  21. package/front_end/core/i18n/locales/eu.json +33 -0
  22. package/front_end/core/i18n/locales/fa.json +56 -23
  23. package/front_end/core/i18n/locales/fi.json +55 -22
  24. package/front_end/core/i18n/locales/fil.json +55 -22
  25. package/front_end/core/i18n/locales/fr-CA.json +55 -22
  26. package/front_end/core/i18n/locales/fr.json +55 -22
  27. package/front_end/core/i18n/locales/gl.json +55 -22
  28. package/front_end/core/i18n/locales/gu.json +33 -0
  29. package/front_end/core/i18n/locales/he.json +55 -22
  30. package/front_end/core/i18n/locales/hi.json +33 -0
  31. package/front_end/core/i18n/locales/hr.json +33 -0
  32. package/front_end/core/i18n/locales/hu.json +55 -22
  33. package/front_end/core/i18n/locales/hy.json +55 -22
  34. package/front_end/core/i18n/locales/id.json +55 -22
  35. package/front_end/core/i18n/locales/is.json +55 -22
  36. package/front_end/core/i18n/locales/it.json +55 -22
  37. package/front_end/core/i18n/locales/ja.json +63 -30
  38. package/front_end/core/i18n/locales/ka.json +55 -22
  39. package/front_end/core/i18n/locales/kk.json +55 -22
  40. package/front_end/core/i18n/locales/km.json +55 -22
  41. package/front_end/core/i18n/locales/kn.json +55 -22
  42. package/front_end/core/i18n/locales/ko.json +55 -22
  43. package/front_end/core/i18n/locales/ky.json +55 -22
  44. package/front_end/core/i18n/locales/lo.json +55 -22
  45. package/front_end/core/i18n/locales/lt.json +55 -22
  46. package/front_end/core/i18n/locales/lv.json +55 -22
  47. package/front_end/core/i18n/locales/mk.json +55 -22
  48. package/front_end/core/i18n/locales/ml.json +33 -0
  49. package/front_end/core/i18n/locales/mn.json +33 -0
  50. package/front_end/core/i18n/locales/mr.json +54 -21
  51. package/front_end/core/i18n/locales/ms.json +55 -22
  52. package/front_end/core/i18n/locales/my.json +55 -22
  53. package/front_end/core/i18n/locales/ne.json +54 -21
  54. package/front_end/core/i18n/locales/nl.json +55 -22
  55. package/front_end/core/i18n/locales/no.json +55 -22
  56. package/front_end/core/i18n/locales/or.json +55 -22
  57. package/front_end/core/i18n/locales/pa.json +55 -22
  58. package/front_end/core/i18n/locales/pl.json +33 -0
  59. package/front_end/core/i18n/locales/pt-PT.json +55 -22
  60. package/front_end/core/i18n/locales/pt.json +55 -22
  61. package/front_end/core/i18n/locales/ro.json +33 -0
  62. package/front_end/core/i18n/locales/ru.json +55 -22
  63. package/front_end/core/i18n/locales/si.json +55 -22
  64. package/front_end/core/i18n/locales/sk.json +55 -22
  65. package/front_end/core/i18n/locales/sl.json +55 -22
  66. package/front_end/core/i18n/locales/sq.json +55 -22
  67. package/front_end/core/i18n/locales/sr-Latn.json +55 -22
  68. package/front_end/core/i18n/locales/sr.json +55 -22
  69. package/front_end/core/i18n/locales/sv.json +55 -22
  70. package/front_end/core/i18n/locales/sw.json +55 -22
  71. package/front_end/core/i18n/locales/ta.json +55 -22
  72. package/front_end/core/i18n/locales/te.json +42 -9
  73. package/front_end/core/i18n/locales/th.json +33 -0
  74. package/front_end/core/i18n/locales/tr.json +55 -22
  75. package/front_end/core/i18n/locales/uk.json +55 -22
  76. package/front_end/core/i18n/locales/ur.json +55 -22
  77. package/front_end/core/i18n/locales/uz.json +55 -22
  78. package/front_end/core/i18n/locales/vi.json +54 -21
  79. package/front_end/core/i18n/locales/zh-HK.json +55 -22
  80. package/front_end/core/i18n/locales/zh-TW.json +54 -21
  81. package/front_end/core/i18n/locales/zh.json +55 -22
  82. package/front_end/core/i18n/locales/zu.json +55 -22
  83. package/front_end/core/sdk/CSSProperty.ts +8 -8
  84. package/front_end/core/sdk/RemoteObject.ts +1 -1
  85. package/front_end/core/sdk/Resource.ts +5 -2
  86. package/front_end/core/sdk/RuntimeModel.ts +10 -0
  87. package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +9 -3
  88. package/front_end/legacy_test_runner/sources_test_runner/DebuggerTestRunner.js +5 -5
  89. package/front_end/models/bindings/ContentProviderBasedProject.ts +2 -3
  90. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
  91. package/front_end/models/workspace/WorkspaceImpl.ts +62 -37
  92. package/front_end/panels/console/ConsoleViewMessage.ts +33 -6
  93. package/front_end/panels/console/ErrorStackParser.ts +34 -0
  94. package/front_end/panels/emulation/DeviceModeView.ts +6 -2
  95. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +1 -2
  96. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +954 -885
  97. package/front_end/third_party/lighthouse/locales/ar-XB.json +40 -4
  98. package/front_end/third_party/lighthouse/locales/ar.json +59 -23
  99. package/front_end/third_party/lighthouse/locales/bg.json +40 -4
  100. package/front_end/third_party/lighthouse/locales/ca.json +45 -9
  101. package/front_end/third_party/lighthouse/locales/cs.json +39 -3
  102. package/front_end/third_party/lighthouse/locales/da.json +43 -7
  103. package/front_end/third_party/lighthouse/locales/de.json +42 -6
  104. package/front_end/third_party/lighthouse/locales/el.json +59 -23
  105. package/front_end/third_party/lighthouse/locales/en-GB.json +43 -7
  106. package/front_end/third_party/lighthouse/locales/en-US.json +48 -6
  107. package/front_end/third_party/lighthouse/locales/en-XA.json +40 -4
  108. package/front_end/third_party/lighthouse/locales/en-XL.json +48 -6
  109. package/front_end/third_party/lighthouse/locales/es-419.json +39 -3
  110. package/front_end/third_party/lighthouse/locales/es.json +46 -10
  111. package/front_end/third_party/lighthouse/locales/fi.json +57 -21
  112. package/front_end/third_party/lighthouse/locales/fil.json +40 -4
  113. package/front_end/third_party/lighthouse/locales/fr.json +45 -9
  114. package/front_end/third_party/lighthouse/locales/he.json +41 -5
  115. package/front_end/third_party/lighthouse/locales/hi.json +59 -23
  116. package/front_end/third_party/lighthouse/locales/hr.json +57 -21
  117. package/front_end/third_party/lighthouse/locales/hu.json +39 -3
  118. package/front_end/third_party/lighthouse/locales/id.json +40 -4
  119. package/front_end/third_party/lighthouse/locales/it.json +40 -4
  120. package/front_end/third_party/lighthouse/locales/ja.json +39 -3
  121. package/front_end/third_party/lighthouse/locales/ko.json +40 -4
  122. package/front_end/third_party/lighthouse/locales/lt.json +40 -4
  123. package/front_end/third_party/lighthouse/locales/lv.json +56 -20
  124. package/front_end/third_party/lighthouse/locales/nl.json +40 -4
  125. package/front_end/third_party/lighthouse/locales/no.json +56 -20
  126. package/front_end/third_party/lighthouse/locales/pl.json +56 -20
  127. package/front_end/third_party/lighthouse/locales/pt-PT.json +57 -21
  128. package/front_end/third_party/lighthouse/locales/pt.json +41 -5
  129. package/front_end/third_party/lighthouse/locales/ro.json +39 -3
  130. package/front_end/third_party/lighthouse/locales/ru.json +40 -4
  131. package/front_end/third_party/lighthouse/locales/sk.json +39 -3
  132. package/front_end/third_party/lighthouse/locales/sl.json +39 -3
  133. package/front_end/third_party/lighthouse/locales/sr-Latn.json +40 -4
  134. package/front_end/third_party/lighthouse/locales/sr.json +40 -4
  135. package/front_end/third_party/lighthouse/locales/sv.json +39 -3
  136. package/front_end/third_party/lighthouse/locales/ta.json +47 -11
  137. package/front_end/third_party/lighthouse/locales/te.json +61 -25
  138. package/front_end/third_party/lighthouse/locales/th.json +39 -3
  139. package/front_end/third_party/lighthouse/locales/tr.json +40 -4
  140. package/front_end/third_party/lighthouse/locales/uk.json +40 -4
  141. package/front_end/third_party/lighthouse/locales/vi.json +63 -27
  142. package/front_end/third_party/lighthouse/locales/zh-HK.json +40 -4
  143. package/front_end/third_party/lighthouse/locales/zh-TW.json +45 -9
  144. package/front_end/third_party/lighthouse/locales/zh.json +41 -5
  145. package/front_end/third_party/lighthouse/report/bundle.d.ts +1 -0
  146. package/front_end/third_party/lighthouse/report/bundle.js +23 -11
  147. package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -1
  148. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +3 -3
  149. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +2 -2
  150. 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 && audit.result.warnings.length);
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 && thumbnailAudit.result;
4180
- if (thumbnailResult && thumbnailResult.details) {
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 && audit.result.details) {
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 && metric.result.title;
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'] && report.audits['full-page-screenshot'].details &&
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._topbar) {
5810
- this._topbar.resetUIState();
5819
+ if (!this._opts.getStandaloneReportHTML) {
5820
+ throw new Error('`getStandaloneReportHTML` is not set');
5811
5821
  }
5812
- return `<!doctype html><body style="margin: 0">${this._dom.rootEl.outerHTML}`;
5822
+
5823
+ this.resetUIState();
5824
+ return this._opts.getStandaloneReportHTML();
5813
5825
  }
5814
5826
 
5815
5827
  /**