New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 809084 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 28 days ago
Closed: Dec 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Coverage indicators not working for inline CSS/JS

Reported by arjun.ga...@ft.com, Feb 5 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce the problem:
1. Go to https://www.ft.com
2. Open Dev tools and start instrumenting the page with the Coverage Tool
3. Once coverage complete, double click the URL for https://www.ft.com/ (of type CSS+JS)
4. Note in sources tab that only the first script block has the red and green indicators.

What is the expected behavior?
Every inline script and style block in the document should have red/green indicators to highlight unused code.

What went wrong?
Note in sources tab that only the first script block has the red and green indicators.

Did this work before? N/A 

Chrome version: 63.0.3239.132  Channel: n/a
OS Version: OS X 10.12.6
Flash Version: 

I _think_ it worked in an older version of Chrome, where inline CSS and JS were separately reported?
 
Screen Shot 2018-02-05 at 16.23.48.png
186 KB View Download
Screen Shot 2018-02-05 at 16.23.53.png
176 KB View Download
Labels: Needs-Triage-M63
Owner: caseq@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by caseq@chromium.org, Feb 6 2018

Cc: einbinder@chromium.org
Components: -Platform>DevTools Platform>DevTools>Authoring
Labels: -Needs-Triage-M63
Owner: lushnikov@chromium.org
Please note this is only the case when the sources are pretty-printed (you can still close the tab titled :formatted and open ft.com's main resource via Sources panel, all scripts will be decorated, albeit not formatted). Also note that the first script is properly decorated even in the pretty-printed version. This is the limitation of our current implementation of source mapping for pretty-print -- we do not properly support multiple scripts with pretty-print.

Status: WontFix (was: Assigned)
DevTools bug triage: closing low-pri bugs with low demand.

Sign in to add a comment