lighthouse 9.5.0-dev.20221130 → 9.5.0-dev.20221202

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 (86) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/core/audits/bootup-time.js +1 -1
  3. package/core/audits/byte-efficiency/duplicated-javascript.js +1 -1
  4. package/core/audits/byte-efficiency/efficient-animated-content.js +1 -1
  5. package/core/audits/byte-efficiency/legacy-javascript.js +1 -1
  6. package/core/audits/byte-efficiency/modern-image-formats.js +1 -1
  7. package/core/audits/byte-efficiency/offscreen-images.js +1 -1
  8. package/core/audits/byte-efficiency/render-blocking-resources.js +1 -1
  9. package/core/audits/byte-efficiency/total-byte-weight.js +1 -1
  10. package/core/audits/byte-efficiency/unminified-css.js +1 -1
  11. package/core/audits/byte-efficiency/unminified-javascript.js +1 -1
  12. package/core/audits/byte-efficiency/unused-css-rules.js +1 -1
  13. package/core/audits/byte-efficiency/unused-javascript.js +1 -1
  14. package/core/audits/byte-efficiency/uses-long-cache-ttl.js +1 -1
  15. package/core/audits/byte-efficiency/uses-optimized-images.js +1 -1
  16. package/core/audits/byte-efficiency/uses-responsive-images.js +1 -1
  17. package/core/audits/byte-efficiency/uses-text-compression.js +1 -1
  18. package/core/audits/content-width.js +1 -1
  19. package/core/audits/critical-request-chains.js +1 -1
  20. package/core/audits/csp-xss.js +1 -1
  21. package/core/audits/deprecations.js +1 -1
  22. package/core/audits/dobetterweb/charset.js +1 -1
  23. package/core/audits/dobetterweb/doctype.js +1 -1
  24. package/core/audits/dobetterweb/dom-size.js +1 -1
  25. package/core/audits/dobetterweb/geolocation-on-start.js +1 -1
  26. package/core/audits/dobetterweb/js-libraries.js +1 -1
  27. package/core/audits/dobetterweb/no-document-write.js +1 -1
  28. package/core/audits/dobetterweb/notification-on-start.js +1 -1
  29. package/core/audits/dobetterweb/password-inputs-can-be-pasted-into.js +1 -1
  30. package/core/audits/dobetterweb/uses-http2.js +1 -1
  31. package/core/audits/dobetterweb/uses-passive-event-listeners.js +1 -1
  32. package/core/audits/errors-in-console.js +1 -1
  33. package/core/audits/font-display.js +1 -1
  34. package/core/audits/image-aspect-ratio.js +1 -1
  35. package/core/audits/installable-manifest.js +1 -1
  36. package/core/audits/is-on-https.js +1 -1
  37. package/core/audits/largest-contentful-paint-element.js +1 -1
  38. package/core/audits/mainthread-work-breakdown.js +1 -1
  39. package/core/audits/manual/pwa-cross-browser.js +1 -1
  40. package/core/audits/manual/pwa-each-page-has-url.js +1 -1
  41. package/core/audits/manual/pwa-page-transitions.js +1 -1
  42. package/core/audits/maskable-icon.js +1 -1
  43. package/core/audits/metrics/first-contentful-paint.js +1 -1
  44. package/core/audits/metrics/first-meaningful-paint.js +1 -1
  45. package/core/audits/metrics/interactive.js +1 -1
  46. package/core/audits/metrics/largest-contentful-paint.js +1 -1
  47. package/core/audits/metrics/max-potential-fid.js +1 -1
  48. package/core/audits/metrics/speed-index.js +1 -1
  49. package/core/audits/metrics/total-blocking-time.js +1 -1
  50. package/core/audits/non-composited-animations.js +1 -1
  51. package/core/audits/preload-lcp-image.js +1 -1
  52. package/core/audits/redirects.js +1 -1
  53. package/core/audits/seo/canonical.js +1 -1
  54. package/core/audits/seo/font-size.js +1 -1
  55. package/core/audits/seo/hreflang.js +1 -1
  56. package/core/audits/seo/http-status-code.js +1 -1
  57. package/core/audits/seo/is-crawlable.js +1 -1
  58. package/core/audits/seo/link-text.js +1 -1
  59. package/core/audits/seo/manual/structured-data.js +1 -1
  60. package/core/audits/seo/meta-description.js +1 -1
  61. package/core/audits/seo/plugins.js +1 -1
  62. package/core/audits/seo/robots-txt.js +1 -1
  63. package/core/audits/seo/tap-targets.js +1 -1
  64. package/core/audits/server-response-time.js +1 -1
  65. package/core/audits/service-worker.js +1 -1
  66. package/core/audits/splash-screen.js +1 -1
  67. package/core/audits/themed-omnibox.js +1 -1
  68. package/core/audits/third-party-facades.js +1 -1
  69. package/core/audits/user-timings.js +1 -1
  70. package/core/audits/uses-rel-preconnect.js +1 -1
  71. package/core/audits/uses-rel-preload.js +1 -1
  72. package/core/audits/viewport.js +1 -1
  73. package/core/computed/metrics/largest-contentful-paint.js +1 -1
  74. package/core/config/default-config.js +3 -3
  75. package/core/lib/third-party-web.js +1 -1
  76. package/core/util.cjs +1 -1
  77. package/dist/report/bundle.esm.js +1 -1
  78. package/dist/report/flow.js +1 -1
  79. package/dist/report/standalone.js +1 -1
  80. package/package.json +2 -2
  81. package/report/renderer/util.js +1 -1
  82. package/report/test/generator/report-generator-test.js +4 -4
  83. package/report/test/renderer/dom-test.js +7 -0
  84. package/report/test/renderer/performance-category-renderer-test.js +1 -1
  85. package/shared/localization/locales/en-US.json +73 -73
  86. package/shared/localization/locales/en-XL.json +73 -73
@@ -113,10 +113,10 @@ category,score
113
113
  \\"pwa\\",\\"0.33\\"
114
114
 
115
115
  category,audit,score,displayValue,description
116
- \\"performance\\",\\"first-contentful-paint\\",\\"0.01\\",\\"6.8 s\\",\\"First Contentful Paint marks the time at which the first text or image is painted. [Learn more about the First Contentful Paint metric](https://web.dev/first-contentful-paint/).\\"
117
- \\"performance\\",\\"interactive\\",\\"0.41\\",\\"8.2 s\\",\\"Time to Interactive is the amount of time it takes for the page to become fully interactive. [Learn more about the Time to Interactive metric](https://web.dev/interactive/).\\"
118
- \\"performance\\",\\"speed-index\\",\\"0.21\\",\\"8.1 s\\",\\"Speed Index shows how quickly the contents of a page are visibly populated. [Learn more about the Speed Index metric](https://web.dev/speed-index/).\\"
119
- \\"performance\\",\\"total-blocking-time\\",\\"0.2\\",\\"1,220 ms\\",\\"Sum of all time periods between FCP and Time to Interactive, when task length exceeded 50ms, expressed in milliseconds. [Learn more about the Total Blocking Time metric](https://web.dev/lighthouse-total-blocking-time/).\\"
116
+ \\"performance\\",\\"first-contentful-paint\\",\\"0.01\\",\\"6.8 s\\",\\"First Contentful Paint marks the time at which the first text or image is painted. [Learn more about the First Contentful Paint metric](https://developer.chrome.com/docs/lighthouse/performance/first-contentful-paint/).\\"
117
+ \\"performance\\",\\"interactive\\",\\"0.41\\",\\"8.2 s\\",\\"Time to Interactive is the amount of time it takes for the page to become fully interactive. [Learn more about the Time to Interactive metric](https://developer.chrome.com/docs/lighthouse/performance/interactive/).\\"
118
+ \\"performance\\",\\"speed-index\\",\\"0.21\\",\\"8.1 s\\",\\"Speed Index shows how quickly the contents of a page are visibly populated. [Learn more about the Speed Index metric](https://developer.chrome.com/docs/lighthouse/performance/speed-index/).\\"
119
+ \\"performance\\",\\"total-blocking-time\\",\\"0.2\\",\\"1,220 ms\\",\\"Sum of all time periods between FCP and Time to Interactive, when task length exceeded 50ms, expressed in milliseconds. [Learn more about the Total Blocking Time metric](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-total-blocking-time/).\\"
120
120
  "
121
121
  `);
122
122
 
@@ -154,6 +154,13 @@ describe('DOM', () => {
154
154
  assert.equal(result.innerHTML, '<a rel="noopener" target="_blank" href="https://web.dev/tap-targets/?utm_source=lighthouse&amp;utm_medium=someChannel">Learn more</a>.');
155
155
  });
156
156
 
157
+ it('appends utm params to the URLs with https://developer.chrome.com origin', () => {
158
+ const text = '[Learn more](https://developer.chrome.com/docs/lighthouse/seo/tap-targets/).';
159
+
160
+ const result = dom.convertMarkdownLinkSnippets(text);
161
+ assert.equal(result.innerHTML, '<a rel="noopener" target="_blank" href="https://developer.chrome.com/docs/lighthouse/seo/tap-targets/?utm_source=lighthouse&amp;utm_medium=someChannel">Learn more</a>.');
162
+ });
163
+
157
164
  it('doesn\'t append utm params to other (non-docs) origins', () => {
158
165
  const text = '[Learn more](https://example.com/info).';
159
166
 
@@ -119,7 +119,7 @@ describe('PerfCategoryRenderer', () => {
119
119
  const disclamerLink = disclaimerEl.querySelector('a');
120
120
  assert.ok(disclamerLink, 'disclaimer contains coverted markdown link');
121
121
  const disclamerUrl = new URL(disclamerLink.href);
122
- assert.strictEqual(disclamerUrl.hostname, 'web.dev');
122
+ assert.strictEqual(disclamerUrl.hostname, 'developer.chrome.com');
123
123
  const calcLink = disclaimerEl.querySelector('a.lh-calclink');
124
124
  assert.ok(calcLink, 'disclaimer contains scorecalc link');
125
125
  assert.strictEqual(new URL(calcLink.href).hostname, 'googlechrome.github.io');