commit | 933525c2bdcf22d49b5688c04cad7bc30c476b3d | [log] [tgz] |
---|---|---|
author | Connor Clark <cjamcl@chromium.org> | Thu Feb 27 15:27:39 2020 -0800 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 28 20:18:38 2020 +0000 |
tree | 8dc01db7c847b138833dd13507900d4a446304f0 | |
parent | 96c6bce9e4f3585c82a10baa59dcb972265e37bd [diff] [blame] |
Audits: Roll Lighthouse to front_end/third_party Cherry-picked https://github.com/GoogleChrome/lighthouse/pull/10036 to the 5.7.1 branch. Bug: 772558 Change-Id: Ia363faf4789d776ddb190126df5d3cb525bd434a Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1933901 Commit-Queue: Connor Clark <cjamcl@chromium.org> Reviewed-by: John Emau <John.Emau@microsoft.com> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
diff --git a/front_end/lighthouse/LighthouseReportRenderer.js b/front_end/lighthouse/LighthouseReportRenderer.js index c31dd2b..942c5d3 100644 --- a/front_end/lighthouse/LighthouseReportRenderer.js +++ b/front_end/lighthouse/LighthouseReportRenderer.js
@@ -153,7 +153,7 @@ const clonedReport = document.querySelector('.lh-root').cloneNode(true /* deep */); const printWindow = window.open('', '_blank', 'channelmode=1,status=1,resizable=1'); const style = printWindow.document.createElement('style'); - style.textContent = Root.Runtime.cachedResources['lighthouse/lighthouse/report.css']; + style.textContent = Root.Runtime.cachedResources['third_party/lighthouse/report-assets/report.css']; printWindow.document.head.appendChild(style); printWindow.document.body.replaceWith(clonedReport); // Linkified nodes are shadow elements, which aren't exposed via `cloneNode`.