-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
report: source-location for linkifying #9354
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is awesome!! a few concerns with the new attribution method, but I think this approach puts us in a much better place to be able to handle those challenges 👍
can we deal with these separately? They seem related but with significantly different concerns (audit internals vs report rendering/devtools integration) |
Done! #9356 |
This reverts commit 30a7daf.
"value": "'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead." | ||
}, | ||
{ | ||
"source": "deprecation", | ||
"value": "/deep/ combinator is no longer supported in CSS dynamic profile.It is now effectively no-op, acting as if it were a descendant combinator. /deep/ combinator will be removed, and will be invalid at M65. You should remove it. See https://www.chromestatus.com/features/4964279606312960 for more details." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this message is missing a space so i fixed it: https://chromium-review.googlesource.com/c/chromium/src/+/1790201
@brendankenny can you take a look |
@brendankenny we're gonna merge tomorrow, FYI |
Linkify source code in DevTools.
Fixes: #6436, second half of #5443,
I've done
font-size
here. I haven't explored what other audits this could be done for.font-size
only applies to CSS, but the changes here should be sufficient for JS/HTML too.I've also made the line/columns that
font-size
reports more accurate. Namely:startColumn
was always being add to the rule's column. However, this is only valid if the stylesheet and the rule begin on the same line in the HTML.{url: <source mapped url>, line: <line relative to script tag>, column: <ditto>}
is necessary for DevTools to link to this file in the Source panel, so without this change that gets complicated.LH report (outside DevTools) before/after ...
Before:
After:
http://misc-hoten.surge.sh/lh-reports/pr-9354.html

GIF of it working in DevTools:
Associated Chromium changes: https://chromium-review.googlesource.com/c/chromium/src/+/1694144
Test it out: